Laws.Africa Developer Guide
  • Laws.Africa Developer Guide
  • Get Started
    • Introduction
    • Quick start
    • Works and expressions
    • Webhooks
    • Changelog
  • Tutorial
    • About the tutorial
    • Module 1: Build a legislation reader
      • Introductory concepts
      • Create a basic Django app
      • Create database models
      • Fetching the data
      • Work listing page
      • Expression detail page
      • Styling with Law Widgets
      • Adding interactivity
      • Staying up to date
    • Module 2: Enrichments and interactivity
      • Basic enrichments
      • Advanced enrichments
      • Advanced interactivity
    • Module 3: Text extraction for search and analysis
      • Why extracting text is important
      • Basics of text extraction
      • Advanced text extraction
      • Extracting text for analysis and machine learning
  • Content API Reference
    • About the Content API
    • Authentication
    • Pagination
    • Places
    • All work expressions
    • Single work expression
      • Commencements
      • Embedded images
      • Publication document
      • Table of Contents
      • Timeline
    • Taxonomy topics
    • Enrichment datasets
  • AI API Reference
    • About the AI API
    • Authentication
    • Knowledge Bases
  • How-to Guides
    • How to use the Table of Contents API
    • How to download images
Powered by GitBook
On this page
  1. Content API Reference
  2. Single work expression

Publication document

Fetch the details of the original publication document for a work.

PreviousEmbedded imagesNextTable of Contents

Last updated 1 year ago

The original publication document is available for most works. This is the primary source document for the work, such as the official government gazette. It is always a PDF.

The original publication document is different to the PDF version of a work expression.

  • The PDF version is a PDF version of the XML content of the document that is generated automatically.

  • The publication document PDF is a copy of the original publication document, which may be a scanned PDF. It is usually only the original version of the document and does not contain amendment information.

Download the publication document for a work

The full URL to download the publication document is part of the publication_document field in the details of the work.

get

Download the media publication file for a work.

Authorizations
Path parameters
filenamestringRequiredPattern: ^.*$
frbr_uristringRequired

The FRBR URI of the work or work expression, without the first slash, such as akn/za/act/1994/2/

Responses
200Success
application/json
get
GET /v3/{frbr_uri}/media/publication/{filename} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "url": "https://example.com",
  "filename": "text",
  "mime_type": "text",
  "size": 1
}
  • Download the publication document for a work
  • GET/v3/{frbr_uri}/media/publication/{filename}