APIYard
Back to APIs
NewsAPI KeyFree tier

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.com
articlesfull-textsearchsectionstags

Endpoints

GET/search

Search 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"
    }]
  }
}