About the Content API
This describes the Laws.Africa Content API.
Last updated
This describes the Laws.Africa Content API.
Last updated
The latest version of the API is version 3. It is available at the endpoint:
The API is described using the Open API format.
Download the OpenAPI Schema from
API documentation in Swagger format:
API documentation in Redoc format:
The API relies heavily on Akoma Ntoso FRBR URIs, which are described in the .
When we use a URL such as /v3/frbr-uri/
in this guide, the frbr-uri
part is a full FRBR URI, such as /akn/za/act/1998/84/eng
.
Some API calls can return content in multiple formats. You can specify the required content of your request by placing .format
at the end of the URL. In most cases the default response type is JSON.
.json
or Accept: application/json
: return JSON
.xml
or Accept: application/xml
: return Akoma Ntoso XML
.html
or Accept: text/html
: return human friendly HTML
.epub
or Accept: application/epub+zip
: return an ePUB (ebook) document
.pdf
or Accept: application/pdf
: return a PDF document
.zip
or Accept: application/zip
: return a ZIP file with the document XML and media attachments