Associated Press API for search results and articles
Send any Associated Press page URL with recipe=apnews and get title, url and 7 more fields as JSON. No selectors to write, no proxies to pick.
- 2 page types
- 9 fields
- 5 credits a page · $0.50 per 1,000
- Working · 100% in 7 days
5,000 free credits for 21 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://apnews.com/hub/business' \
--data-urlencode 'recipe=apnews/listing'
{
"result": {
"articles": [
{
"title": "Iran war"
}
]
},
"success": true
}
Is there an official Associated Press API?
Official API: approved partners only
Not an open one. The AP Media API gives licensed AP customers their contracted text, photo, video and audio content, through an AP content license.
Source: AP Media API on developer.ap.org, checked November 6, 2026.
How to get Associated Press data as JSON today
- Get a free API key: 5,000 free credits for 21 days, no card.
- Send any Associated Press page URL with
recipe=apnewsto the Scrape API (the call). - Get 9 fields as JSON, 5 credits a page, billed only when the call succeeds.
Ujeebu's Associated Press recipe returns title, url and 7 more fields from any public Associated Press page as JSON: send the URL with recipe=apnews to the Scrape API, 5 credits a page, no Associated Press account or partner approval needed.
What you get from Associated Press
The fields of each page type and a real sample from our last validation, shortened.
Search and listing pages recipe=apnews/listing 5 credits a page
| Field | Type | Example |
|---|---|---|
articles | list of 3+ items | |
articles[].url | URL | https://apnews.com/hub/iran |
articles[].title | text | Iran war |
Sample answer, validated 2026-11-16
{
"articles": [
{
"url": "https://apnews.com/hub/iran",
"title": "Iran war"
},
{
"url": "https://apnews.com/hub/immigration",
"title": "Immigration"
}
]
}
Articles recipe=apnews/detail 5 credits a page
| Field | Type | Example |
|---|---|---|
article.description | text | Blondie is set to release a new album, “High Noon,” early next year... |
article.headline | text | Blondie to return with new album 'High Noon' next year |
article.image | URL | https://dims.apnews.com/dims4/default/8d9d0df/2147483647/strip/fals... |
article.modified | date | 2026-10-15T07:13:17Z |
article.published | date | 2026-10-15T07:13:17Z |
article.publisher | text | AP News |
article.section | text | Entertainment |
url | URL | https://apnews.com/article/blondie-new-album-high-noon-a557083d63a0... |
Sample answer, validated 2026-11-16
{
"article": {
"description": "Blondie is set to release a new album, “High Noon,” early next year, a decade after their last outing. The band dropped the first single, “Spectral Eyes,” on...",
"headline": "Blondie to return with new album 'High Noon' next year",
"image": "https://dims.apnews.com/dims4/default/8d9d0df/2147483647/strip/false/crop/3000x2000+0+0/resize/1200x800!/quality/90/?url=https%3A%2F%2Fassets.apnews.com%2F5b...",
"modified": "2026-10-15T07:13:17Z",
"published": "2026-10-15T07:13:17Z",
"publisher": "AP News",
"section": "Entertainment"
},
"url": "https://apnews.com/article/blondie-new-album-high-noon-a557083d63a0fae064705e1bb5efec6c"
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on Associated Press (JavaScript rendering).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://apnews.com/hub/business' \
--data-urlencode 'recipe=apnews/listing'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://apnews.com/hub/business", "recipe": "apnews/listing"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["articles"][:3]:
print(item["title"])
# Example output:
# Iran war
# Immigration
const params = new URLSearchParams({
url: "https://apnews.com/hub/business",
recipe: "apnews/listing",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.articles.slice(0, 3)) {
console.log(item.title);
}
// Example output:
// Iran war
// Immigration
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Other page types: recipe=apnews/detail, or recipe=apnews and the API picks the page type from the URL. Your own parameters always win over the recipe.
Search Associated Press with parameters
One call, no URL: send recipe=apnews/search with the parameters below. We build the Associated Press search URL and answer the listing JSON, at the same credits as the page call.
| Parameter | Type | Values |
|---|---|---|
topic required | string | News topic or category to browse articles from |
One call (topic=technology)
curl -G 'https://api.ujeebu.com/scrape' \
-H 'ApiKey: YOUR_API_KEY' \
-d 'recipe=apnews/search' \
-d 'topic=technology'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"recipe": "apnews/search", "topic": "technology"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["articles"][:3]:
print(item["title"])
# Example output:
# Iran war
# Immigration
const params = new URLSearchParams({
recipe: "apnews/search",
topic: "technology",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.articles.slice(0, 3)) {
console.log(item.title);
}
// Example output:
// Iran war
// Immigration
The answer carries the built URL in the Ujb-Url header; a missing or invalid parameter answers 400 naming it (free). Have the URL already? Send it with recipe=apnews/listing. Search with parameters in the docs
What people build with Associated Press data
Media monitoring
Track the articles published on the topics and companies you follow.
Learn moreContent for AI and RAG
Collect headlines, dates and summaries as structured input for search and LLM pipelines.
Learn morePublishing timeline
Measure when and how often a site publishes, by section.
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Search results, Article | 5 | $0.82 | $0.50 |
FAQ
Is there a Associated Press API?
Not an open one. The AP Media API gives licensed AP customers their contracted text, photo, video and audio content, through an AP content license. Ujeebu's Associated Press recipe returns title, url and 7 more fields from any public Associated Press page as JSON: send the URL with recipe=apnews to the Scrape API, 5 credits a page, no Associated Press account or partner approval needed.
Does Associated Press have a public API?
Not an open one. The AP Media API gives licensed AP customers their contracted text, photo, video and audio content, through an AP content license. The public pages are the way in: Ujeebu's Associated Press recipe returns title, url and 7 more fields from any public Associated Press page as JSON: send the URL with recipe=apnews to the Scrape API, 5 credits a page, no Associated Press account or partner approval needed.
What does the Associated Press recipe return?
JSON with 9 fields from search results (recipe=apnews/listing) and article (recipe=apnews/detail), for example title, url. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape Associated Press?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on Associated Press: JavaScript rendering. Send only the URL and recipe=apnews/listing.
What happens when Associated Press changes its pages?
We check Associated Press every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I search Associated Press with parameters?
Yes, in one call: send recipe=apnews/search with topic and no URL. We build the Associated Press search URL (returned in the Ujb-Url header), apply recipe=apnews/listing and answer its JSON, at the same credits as the page call. A missing or invalid parameter answers 400 naming it, and that call is free.
Related recipes
- SubstackArticle · 5 credits
Yahoo FinancePage · 5 credits
Yahoo NewsSearch results, Article · 5 credits
AFP Fact CheckArticle · 5 credits
Al JazeeraArticle · 5 credits
Ars TechnicaSearch results, Article · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Associated Press.
Get Associated Press data as JSON today.
5,000 free credits for 21 days. No card.