Querying the CTAN Database with JSON – Author
The information about a single author can be obtained under the URL like
The last element in the URl is the key of the author as used by CTAN. Those keys are also listed in the list of authors.
The result is a JSON term as in the following listing:
The entry is an object. It has several attributes:
- This attribute contains the key of the author. This attribute is mandatory.
- This attribute contains the given name. It is optional and can be empty.
- This attribute is the family name. It is optional and can be empty.
Note that the authors information does not contain the email address of the author to protect the privacy.
You can request that more information about the authors is
provided. This information is the list of packages in which the
author is mentioned. This is accomplished with the parameter
. It can be set to
as in the following example:
This results in an json file like in the following listing;
In this case an additional attribute is included.
- This attribute which contains the list of package ids.