The Guardian APIunofficial
Read Guardian news fronts, articles and topic pages.
- theguardian.com
all live 3 operations, checked by the installs that call them.
Seeded by the maintainers.
Try it
Set up API Anything for your agents:
npx -y api-anything setupThen ask your agent, which finds this site by itself, or call it from a shell:
api-anything pull guardian
api-anything call guardian getArticle section=world year=2026 month=nov day=01 slug=ukraine-defies-trump-resumes-attacks-russian-oilOperations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getArticle(section, year, month, day, slug) -> headline, standfirst, byline, published, updated, section, keywords, paragraphsRead the metadata and paragraphs of a standard Guardian article. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getFront(front?) -> title, url, kicker, standfirst, dateRead story cards from a Guardian front. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getTag(section, tag) -> title, url, date, kickerRead recent story cards from a two-segment Guardian topic page. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
No account is needed. Guardian content is copyrighted: use links and summaries, and respect its reuse terms. Edition and region can affect the stories shown.
getFrontaccepts one path segment, defaulting tointernational. Cards can repeat, link to video or interactive content, and omit standfirst, kicker or date. Results may be truncated.getArticleaccepts the five separate segments of a standard/<section>/<yyyy>/<mon>/<dd>/<slug>URL, not a full URL. Other URL shapes, including interactive and video URLs, are not covered. Keywords are a comma-separated string. The standfirst may include related links; body paragraphs exclude nested content and may omit non-text elements. Metadata may be missing and long results may be truncated.getTagaccepts exactly two path segments, such astechnologyandartificialintelligenceai. Results cover the first page and may include opinion or other formats. Dates and kickers can be missing.
About these operations
Each operation is a request learned from The Guardian's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.