Get started
You can use the GOV.UK Content API to look up the data that is used to render content on GOV.UK.
To get started:
- Pick a page on GOV.UK, for example: https://www.gov.uk/take-pet-abroad.
- Make a note of the path, for example:
/take-pet-abroad. - Using a tool such as curl,
Postman or your web browser, make a GET
request to
https://www.gov.uk/api/content/take-pet-abroad. - You’ll receive a JSON response and the fields for this are explained in the reference documentation.
For example, using the curl command line utility tool:
curl https://www.gov.uk/api/content/take-pet-abroad
Or, you can use the govuk-browser-extension. Note that this is intended for internal use.
Authentication
Usage of GOV.UK Content API does not require authentication.