報
The Guardian API
2 endpointsNews & MediaGBsocial:read2 real examples
Returns the latest articles of The Guardian, overall or by section, from its public feeds.
View as Markdown| GET | /guardian/latest | Latest articles of The Guardian, newest first, from its public RSS or Atom feed. |
| GET | /guardian/section | Latest articles of one section of The Guardian, newest first, from its section feed. |
latest
GET
/v1/guardian/latestLatest articles of The Guardian, newest first, from its public RSS or Atom feed.
scope social:read1 unitcached 10 minpaginated
Parameters
limitinteger | Items per page, 1 to 50. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/guardian/latest" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/guardian/latest", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/guardian/latest", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Carlos Mureithi in Nairobi and agencies", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2026-11-06T15:08:43Z", "source": "", "summary": "Paul Mackenzie convicted over deaths of children and one adult after followers were ordered to starve themselves and their families The lead…", "title": "Kenyan doomsday sect leader jailed for 200 years for murder of 190 children", "url": "https://www.theguardian.com/world/2026/nov/06/kenyan-doomsday-sect-leader-jailed-murders-paul-mackenzie" }, { "author": { "avatarUrl": "", "id": "", "name": "Rachel Savage in Johannesburg", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2026-11-06T12:48:37Z", "source": "", "summary": "Former liberation movement’s share of national vote almost 14 percentage points below 2021 result The African National Congress is on course…", "title": "ANC faces bruising defeat in South African local elections with 80% of ballots counted", "url": "https://www.theguardian.com/world/2026/nov/06/anc-faces-defeat-south-african-local-elections" } ], "meta": { "cached": false, "endpoint": "latest", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "guardian", "requestId": "req_2Xb9kQ…", "units": 1 } }
section
GET
/v1/guardian/sectionLatest articles of one section of The Guardian, newest first, from its section feed.
scope social:read1 unitcached 10 minpaginated
Parameters
sectionstring required | Section of the site: business, politics, science, sport, technology, uk, us.businesspoliticssciencesporttechnologyukuse.g. business |
limitinteger | Items per page, 1 to 50. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/guardian/section?section=business" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/guardian/section?section=business", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/guardian/section?section=business", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Lauren Aratani in New York", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2026-11-06T13:42:26Z", "source": "", "summary": "‘Low-hire, low-fire’ labor market shows sluggish growth but few layoffs, with an interest rate hike expected in December The US added 165,00…", "title": "US job growth exceeds expectations in October despite economic uncertainty", "url": "https://www.theguardian.com/business/2026/nov/06/us-job-growth-october" }, { "author": { "avatarUrl": "", "id": "", "name": "Graeme Wearden", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2026-11-06T17:28:11Z", "source": "", "summary": "European and Asia-Pacific markets slide after Wall Street rout, while latest US jobs report beats forecasts Could the AI bubble burst after …", "title": "US tech stocks recovering on Wall Street after worst day in 19 months – as it happened", "url": "https://www.theguardian.com/business/live/2026/nov/06/global-stocks-tumble-ai-panic-markets-democrats-midterms-success-jobs-oil-dollar-lates…" } ], "meta": { "cached": false, "endpoint": "section", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "guardian", "requestId": "req_2Xb9kQ…", "units": 1 } }