Skip to main content

Get a publication’s details

Get a specific publication’s summary details.

The URL for this endpoint is:

GET https://dev.statistics.api.education.gov.uk/api/v{version}/publications/{publicationId}

Parameters

Path parameters

The following parameters will need to be substituted into the URL path.

Parameter Type Required Description
publicationId string true

The ID of the publication.

version string true

The requested API version

Defaults to: 1.0

Example request

To illustrate how to use this API endpoint, we have provided some samples below in various languages.

cURL

curl -X GET https://dev.statistics.api.education.gov.uk/api/v{version}/publications/{publicationId}

JavaScript

const url = 'https://dev.statistics.api.education.gov.uk/api/v{version}/publications/{publicationId}';

const response = await fetch(url, {
  method: 'GET',
});

console.log(response.json());

Python

import requests

url = 'https://dev.statistics.api.education.gov.uk/api/v{version}/publications/{publicationId}'

response = requests.get(url)

print(response.text)

R

library(httr)

url <- 'https://dev.statistics.api.education.gov.uk/api/v{version}/publications/{publicationId}'

response <- httr::GET(url)

output <- content(response)

Responses

Status Description Media Type Schema
200

The requested publication summary

application/json PublicationSummaryViewModel
404

Not Found

application/json ProblemDetailsViewModel

Example successful response

{
  "id": "d851c09e-7f5a-4750-9191-ed67ba5e8f8b",
  "title": "Pupil absence in schools in England",
  "slug": "pupil-absence-in-schools-in-england",
  "summary": "Summary of the publication.",
  "lastPublished": "2024-06-01T09:30:00+00:00"
}