Back to APIs
The Guardian
Search and retrieve full-text content from The Guardian — articles, sections, contributors, and tags — going back to 1999.
Base URL
https://content.guardianapis.comarticlesfull-textsearchsectionstags
Endpoints
GET
/searchSearch across all Guardian content.
const response = await fetch("https://content.guardianapis.com/search?q=climate+change&show-fields=bodyText&api-key=YOUR_API_KEY", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);Response Preview
{
"response": {
"total": 12400,
"results": [{
"webTitle": "Climate crisis: scientists alarmed by ocean heat spike",
"sectionName": "Environment",
"webPublicationDate": "2024-04-30"
}]
}
}