Philotopie's data
Philotopie's entries can be read as JSON, with no key and no registration, under the CC BY-SA 4.0 license. What the API gives and on what terms.
The site's entries can be read as JSON, with no key and no registration. You may query them, redistribute them and build on them, on condition that you credit Philotopie and share on the same terms.
The API serves the French corpus, which is the site's reference corpus.
What the API gives
Five classes of entry, in their published state. Stubs are excluded: the site automatically creates an empty entry when a published one cites another, and those shells have nothing to say.
The addresses are:
/api/public/entities/philosophes/api/public/entities/oeuvres/api/public/entities/concepts/api/public/entities/courants/api/public/entities/lieux
Querying a list
A list is walked page by page. page starts at 1 and par_page is 50 by default and 100 at most.
`` GET https://philotopie.fr/api/public/entities/philosophes?page=2&par_page=25 ``
The response carries the license, the type requested, the pagination and the entries. A property absent from the database is absent from the response: there are no empty strings and no invented dates.
`` { "licence": { "nom": "CC BY-SA 4.0", "attribution": "Philotopie - https://philotopie.fr" }, "type": "philosophes", "pagination": { "page": 2, "par_page": 25, "total": 217, "pages": 9 }, "donnees": [ { "slug": "spinoza", "nom": "Baruch Spinoza", ... } ] } ``
Querying one entry
The detail of an entry adds its links: the concepts a philosopher works with, the works, the schools of thought, the places, and the related philosophers with the nature of the relation stated as translator, editor, interlocutor, critic, influence or mention.
`` GET https://philotopie.fr/api/public/entities/philosophes/spinoza ``
Terms of use
No authentication and no quota. The API is served with an Access-Control-Allow-Origin: * header, so that it can be used from a browser, and with a one-hour cache. We ask only that you do not hammer it: the data changes from one day to the next, not from one second to the next.
Attribution. The content is published under CC BY-SA 4.0. If you reuse it, credit Philotopie with a link to the entry and to the license, indicate your changes, and share your derivative work under the same license.
What the API does not give
- The long body of the entries: biographies, analyses and extended
definitions stay on the site, where they are reviewed and typeset.
- Unpublished entries.
- The images themselves: the response gives their address, and the
image remains subject to its own credit, stated on the entry.
- Any writing: the API is read-only.
A question, or a use to tell us about
If you build something with this data we would like to know, and we are willing to make the API evolve if something is missing. Write to us at contact@philotopie.fr.