Port-tags version 0.11 α (alpha) API

Port list mode

If you add a m=pl ("mode = portlist") parameter to the URL, it will return a newline separated list of matching ports:

http://bsd2.be/port-tags/index.cgi/devel+mail?m=pl

For performance reasons, the number of returned ports is limited to 200 by default.

So that

http://bsd2.be/port-tags/index.cgi/japanese?m=pl

will return

        E(too many)[433]

instead of all 433 ports. This can be overridden like this:

http://bsd2.be/port-tags/index.cgi/japanese?m=pl&n=450

The same goes for tag-less queries:

http://bsd2.be/port-tags/index.cgi/?m=pl

will produce

        E(too many)[13598]

But if you feel really adventurous,

http://bsd2.be/port-tags/index.cgi/?m=pl&n=60000

will return all 13598 ports. Please note that "n" parameter does not specify how many ports to return, it specifies the upper limit only, so if that is exceeded, "E(too many)" is returned.

Related tags mode

If you add a m=reltags ("mode = related tags") parameter to the URL, it will return a newline separated list of related tags:

http://bsd2.be/port-tags/index.cgi/devel+mail?m=reltags

For tag-less queries, the reltags call will return an empty list.

Port tags mode

If you add a m=pt ("mode = related tags") parameter to the URL, it will return a newline separated list of tags for a port specified in path info:

http://bsd2.be/port-tags/index.cgi/lang/perl5.8?m=pt

If the port is not found, returns an empty list.