Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

The Guardian Content API

Search and retrieve Guardian content items

The Guardian Content API is one of 5 APIs that The Guardian publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Content. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 2 operations across 2 paths, and defines 5 schemas. It is described by OpenAPI 3.0.3, at version 2.0.0.

Requests are made against a single base URL, https://content.guardianapis.com.

2 operations 2 paths 5 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2.0.0
Base URL
https://content.guardianapis.com/
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

The Guardian Content API declares 1 security scheme for authenticating requests. An API key is passed in the query as api-key (apiKeyQuery). By default, every request must be authenticated.

  • apiKeyQuery — API key obtained from https://open-platform.theguardian.com/access/. A test key 'test' is available for development.

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Content 2

Search and retrieve Guardian content items

GET
/search
Search for content
searchContent 19 params → 200400401429
GET
/{contentId}
Get a single content item
getItem 6 params → 200404

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are ContentItem (13 properties), Tag (8 properties), ItemResponse (1 property), ErrorResponse (1 property). Each schema is shown below with its type and property counts.

SearchResponse
object
1 property
Tag
object
8 properties
ErrorResponse
object
1 property
ItemResponse
object
1 property
ContentItem
object
13 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

guardian-content-api-openapi.yml Raw ↑

Other APIs The Guardian publishes across the network.

The Guardian Content API
The Guardian Editions API
The Guardian Sections API
The Guardian Tags API