# Laws.Africa Developer Guide

## Laws.Africa Developer Guide

- [Laws.Africa Developer Guide](https://developers.laws.africa/readme.md)
- [Platform overview](https://developers.laws.africa/get-started/overview.md): Start building with the Laws.Africa Legal Knowledge Platform.
- [Choose Knowledge Bases or the Content API](https://developers.laws.africa/get-started/choose-an-api.md): Choose the Laws.Africa API that matches your product.
- [Pricing and plans](https://developers.laws.africa/get-started/pricing.md): Laws.Africa Legal Knowledge Platform plans, limits and pricing.
- [Manage your plan and subscription](https://developers.laws.africa/get-started/manage-your-plan.md): Manage your Laws.Africa platform plan, subscription, usage and service access.
- [Authentication and API keys](https://developers.laws.africa/get-started/authentication.md): Authenticate Laws.Africa API requests with an API token.
- [Knowledge Bases](https://developers.laws.africa/knowledge-bases/knowledge-bases.md): Retrieve authoritative African legal context for AI, search and workflow tools.
- [Quick start](https://developers.laws.africa/knowledge-bases/quick-start.md): Make your first Laws.Africa Knowledge Base query.
- [Concepts](https://developers.laws.africa/knowledge-bases/concepts.md): Core concepts for working with Laws.Africa Knowledge Bases.
- [Use results in your app](https://developers.laws.africa/knowledge-bases/use-in-apps.md): Use Knowledge Base results in RAG, search and legal agent workflows.
- [Filters](https://developers.laws.africa/knowledge-bases/filters.md): Filter Knowledge Base retrieve requests.
- [Legislation Knowledge Bases](https://developers.laws.africa/knowledge-bases/legislation.md): Work with legislation Knowledge Bases.
- [Judgment Knowledge Bases](https://developers.laws.africa/knowledge-bases/judgments.md): Work with judgment Knowledge Bases.
- [API Reference](https://developers.laws.africa/knowledge-bases/reference.md): Knowledge Base API reference.
- [List Knowledge Bases](https://developers.laws.africa/knowledge-bases/reference/list-knowledge-bases.md): List Knowledge Bases available to your account.
- [Get a Knowledge Base](https://developers.laws.africa/knowledge-bases/reference/get-a-knowledge-base.md): Get details for a single Knowledge Base.
- [Query a Knowledge Base](https://developers.laws.africa/knowledge-bases/reference/query-a-knowledge-base.md): Query a Knowledge Base for matching legal context.
- [Content API](https://developers.laws.africa/content-api/content-api.md): Fetch full legislation content and metadata from Laws.Africa.
- [Quick start](https://developers.laws.africa/content-api/quick-start.md): Fetch legislation from the Laws.Africa Content API.
- [Works and expressions](https://developers.laws.africa/content-api/works-and-expressions.md): Understand these two important concepts.
- [Webhooks](https://developers.laws.africa/content-api/webhooks.md): Webhooks are push notifications when a work is created, updated or deleted.
- [How to use the Table of Contents API](https://developers.laws.africa/content-api/how-to-use-the-table-of-contents-api.md): Using the Laws.Africa Table of Contents API in your application.
- [How to download images](https://developers.laws.africa/content-api/how-to-download-images.md): Downloading embedded images from the Laws.Africa Content API.
- [API Reference](https://developers.laws.africa/content-api/reference.md): Content API reference.
- [Authentication](https://developers.laws.africa/content-api/reference/authentication.md)
- [Pagination](https://developers.laws.africa/content-api/reference/pagination.md)
- [Places](https://developers.laws.africa/content-api/reference/countries-and-localities.md): List the places - countries and localities (sub-country regions) - that are available from the Content API.
- [All work expressions](https://developers.laws.africa/content-api/reference/all-work-expressions.md): Fetch all work expressions.
- [Single work expression](https://developers.laws.africa/content-api/reference/works-and-expressions.md): Fetch a single work expression using an FRBR URI.
- [Commencements](https://developers.laws.africa/content-api/reference/works-and-expressions/commencements.md): Get the details of commencement events for an expression.
- [Embedded images](https://developers.laws.africa/content-api/reference/works-and-expressions/embedded-images.md): Fetch metadata and files for images embedded in the content of a work expression.
- [Publication document](https://developers.laws.africa/content-api/reference/works-and-expressions/publication-document.md): Fetch the details of the original publication document for a work.
- [Table of Contents](https://developers.laws.africa/content-api/reference/works-and-expressions/table-of-contents.md): Fetching the Table of Contents for an expression.
- [Timeline](https://developers.laws.africa/content-api/reference/works-and-expressions/timeline.md): Fetch the timeline description for a work expression.
- [Taxonomy topics](https://developers.laws.africa/content-api/reference/taxonomy-topics.md): Taxonomies are used to classify works.
- [Enrichment datasets](https://developers.laws.africa/content-api/reference/enrichment-datasets.md): Enrichment datasets add additional detail to provisions of a work.
- [Changelog](https://developers.laws.africa/content-api/reference/changelog.md): Changes to the Laws.Africa API.
- [Content API legislation reader](https://developers.laws.africa/tutorials/about-the-tutorial.md)
- [Module 1: Build a legislation reader](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader.md): Building a basic Django app to display legislation fetched from the Laws.Africa Content API.
- [Introductory concepts](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/introductory-concepts.md): Some key details before we build our legislation app.
- [Create a basic Django app](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/create-a-basic-django-app.md)
- [Create database models](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/create-database-models.md): Create models for storing data in the database.
- [Fetching the data](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/fetching-the-data.md): Fetching and storing data from the Laws.Africa Content API.
- [Work listing page](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/work-listing-page.md): Add a page to list works.
- [Expression detail page](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/expression-detail-page.md): Add a document detail page.
- [Styling with Law Widgets](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/styling-with-law-widgets.md): Adding styles to the document content.
- [Adding interactivity](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/adding-interactivity.md): Adding some basic interactivity using Law Widgets.
- [Staying up to date](https://developers.laws.africa/tutorials/module-1-build-a-legislation-reader/staying-up-to-date.md): Getting the latest data from the Content API.
- [Module 2: Enrichments and interactivity](https://developers.laws.africa/tutorials/module-2-enrichments-and-interactivity.md): Enriching your documents and adding advanced interactivity.
- [Basic enrichments](https://developers.laws.africa/tutorials/module-2-enrichments-and-interactivity/basic-enrichments.md): Adding and displaying simple enrichments.
- [Advanced enrichments](https://developers.laws.africa/tutorials/module-2-enrichments-and-interactivity/advanced-enrichments.md): Fetching enrichments from the Laws.Africa Enrichments API.
- [Advanced interactivity](https://developers.laws.africa/tutorials/module-2-enrichments-and-interactivity/advanced-interactivity.md): Adjusting content styles based on enrichment information.
- [Module 3: Text extraction for search and analysis](https://developers.laws.africa/tutorials/module-3-text-extraction-for-search-and-analysis.md): How to extract text from Akoma Ntoso XML documents for use in full-text search indexing and machine learning analysis.
- [Why extracting text is important](https://developers.laws.africa/tutorials/module-3-text-extraction-for-search-and-analysis/why-extracting-text-is-important.md): Why would you want to extract text from an Akoma Ntoso XML document?
- [Basics of text extraction](https://developers.laws.africa/tutorials/module-3-text-extraction-for-search-and-analysis/basics-of-text-extraction.md): Basic methods of extracting text from an Akoma Ntoso XML document.
- [Advanced text extraction](https://developers.laws.africa/tutorials/module-3-text-extraction-for-search-and-analysis/advanced-text-extraction.md): How to extract text from particular elements or portions of a document.
- [Extracting text for analysis and machine learning](https://developers.laws.africa/tutorials/module-3-text-extraction-for-search-and-analysis/extracting-text-for-analysis-and-machine-learning.md): How to extract text from all portions of a document, for use in analysis or machine learning.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://developers.laws.africa/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
