CTAN
Comprehensive TeX Archive Network

Query­ing the CTAN Database with JSON – Topic

The in­for­ma­tion about a sin­gle topic can be ob­tained un­der the URL like

http://www.ctan.org/json/topic/cv

The last el­e­ment in the URl is the key of the topic as used by CTAN. Those keys are also listed in the list of top­ics.

The re­sult is a JSON ob­ject as in the fol­low­ing list­ing:

{"key":"cv","details":"curriculum vitae/Resumé"}  

The en­try has sev­eral at­tributes:

key
This at­tribute con­tains the key of the au­thor. This at­tribute is manda­tory.
details
This at­tribute con­tains a short de­scrip­tion of the topic.

Ref­er­ences

You can re­quest that more in­for­ma­tion about the top­ics is pro­vided. This in­for­ma­tion is the list of pack­ages in which the topic is men­tioned. This is ac­com­plished with the pa­ram­e­ter ref. It can be set to true as in the fol­low­ing ex­am­ple:

http://www.ctan.org/json/topic/cv?ref=true

This re­sults in a JSON ob­ject like in the fol­low­ing list­ing;

{"key":"cv",
 "details":"curriculum vitae/Resumé",
 "packages":["currvita","cvsty","cv","curve","ecv","esieecv","europecv","harnon-cv","ibmres-tex","koma-moderncvclassic","moderntimeline","mycv","moderncv","resumemac","res","simplecv","translation-ecv-de","translation-europecv-de","tucv","vita","vita209","resumecls","cv4tw","pas-cv"]}  

In this case the at­tribute packages con­tains a list of pack­age names.

Guest Book Sitemap Contact Contact Author