Use Laws.Africa Content to Power Your Business and Research

The Laws.Africa legislation commons is available as structured, machine-friendly Akoma Ntoso XML through the Laws.Africa Content API.

The Laws.Africa Content API makes it easy to consume and work with the machine-friendly, structured legislation in the Laws.Africa commons. In addition to legislation content, the API includes content for points in time, amendment information, automated Table of Contents generation, and original publication details.

Features, Subscriptions and Pricing

# Fetch Section 9 of Cape Town's Animal by-law
$ curl -H "Authorization: Token <ACCESS_TOKEN>" \
  https://api.laws.africa/v2/akn/za-cpt/act/by-law/2011/animal/eng/main/section/9.html

<section class="akn-section" id="section-9" data-id="section-9">
  <h3>9. The rescue of stray dogs</h3>
  <span class="akn-paragraph" id="section-9.paragraph-0" data-id="section-9.paragraph-0">
    <span class="akn-content">
      <span class="akn-p">A <span class="akn-term" data-refersTo="#term-person" id="trm236" data-id="trm236">person</span> who rescues a stray <span class="akn-term" data-refersTo="#term-dog" id="trm237" data-id="trm237">dog</span> shall report the date and time of the rescue and a description of the <span class="akn-term" data-refersTo="#term-dog" id="trm238" data-id="trm238">dog</span> to the <span class="akn-term" data-refersTo="#term-Council" id="trm239" data-id="trm239">Council</span> within twenty four hours.</span>
    </span>
  </span>
</section>

The Content API is a simple REST API that provides JSON, XML and HTML that is easy to work with in any programming language.

API documentation and examples

What's available from the Content API?

Laws.Africa Content API diagram
Legislation in XML, HTML, PDF and ePub

Legislation content in machine-friendly, richly structured Akoma Ntoso XML, HTML, PDF and ePub formats. Work with entire Acts, or focus only on the chapters and sections you need.

Embeddable HTML

Beautifully formatted HTML snippets with CSS styling ready to be added to your website or app.

Tables of Contents

Automated Tables of Contents that describe the chapters, parts, sections and schedules of legislation without needing to work directly with XML or HTML.

Amendments

Details of the amendments that have been applied to a piece legislation, including links and details of the amending work.

Publication and Promulgation

Dates and details of the initial publication, including gazette numbers, often with links to the gazette PDFs for reference purposes.

Points in Time

Historical points in time for previous amended versions of legislation, where available.

Features, Subscriptions and Pricing

Benefits

  • The Laws.Africa commons is continuously updated by the community. This includes the maintenance of existing legislation and the addition of new countries and subject areas.
  • The same data model for all countries makes your work across Africa simpler.
  • Akoma Ntoso is the premier global legislative markup standard. It’s an open, non-proprietary standard managed by OASIS.
  • Easy to work with: a simple REST API that provides JSON, XML, HTML, PDF and ePub. For many use cases, there is no need to work with XML directly.

Pricing Plans

Flexible options for commercial and non-commercial uses.

Non-Commercial and Research

FREE for non-commercial uses.

  • Non-profit, academic research, and education.
  • Creative Commons Attribution-NonCommercial-ShareAlike (CC-BY-NC-SA) licencing.
  • Provide attribution to Laws.Africa.
  • Publish your outputs and research.
Commercial Uses

Permissive licensing for commercial use cases.

  • Full access to Laws.Africa content and data on a per-country basis.
  • Provide attribution to Laws.Africa.
  • Commercial support helps to maintain the commons and supports free access to the law, for everyone.