Tell us your story
Tell us your story
How has offline Wikipedia affected you? The Wikimedia Foundation (the non-profit that supports Wikipedia) is looking for personal, diverse and inspiring stories about how offline Wikipedia affects the world. If you have a personal story that you would like to share, please contact: stories@kiwix.org. Thank you!

Difference between revisions of "OPDS"

From Kiwix
Jump to: navigation, search
(Listed all search query parameters)
(added category tag info for /catalog/search endpoint)
 
Line 9: Line 9:
 
** <code>lang=fra</code> which proposes a language filter. Use an ISO639-3 language value (like in ZIM metadata).
 
** <code>lang=fra</code> which proposes a language filter. Use an ISO639-3 language value (like in ZIM metadata).
 
** <code>tag=wikipedia</code> to list only entries with all of the specified tags.
 
** <code>tag=wikipedia</code> to list only entries with all of the specified tags.
 +
** <code>category=phet</code> to list all entries with specified category.
 
** <code>notag=</code>_videos:yes to filter out entries with any of the specified tags.
 
** <code>notag=</code>_videos:yes to filter out entries with any of the specified tags.
 
** <code>name=wikipedia_ny_all</code> to list only entries with the specified name (exact match).
 
** <code>name=wikipedia_ny_all</code> to list only entries with the specified name (exact match).

Latest revision as of 11:33, 11 May 2021

Kiwix-serve provides an OPDS feed. This API allows to retrieve the library metadata, but not the content themselves.

A live instance can be see at https://library.kiwix.org/.

End points

  • https://library.kiwix.org/catalog/searchdescription.xml which proposes an overall OPDS description in XML format
  • https://library.kiwix.org/catalog/search which accepts a few GET parameter:
    • q=<PATTERN> which proposes a keyword based search in the catalogue (on title and description).
    • lang=fra which proposes a language filter. Use an ISO639-3 language value (like in ZIM metadata).
    • tag=wikipedia to list only entries with all of the specified tags.
    • category=phet to list all entries with specified category.
    • notag=_videos:yes to filter out entries with any of the specified tags.
    • name=wikipedia_ny_all to list only entries with the specified name (exact match).
    • maxsize=1234567890 to filter out entries larger than the specified size.
    • count=2 to limit the number of results.
    • start=1 to indicate an offset in search results.
  • https://library.kiwix.org/catalog/root.xml which proposed the index of all the books

See also