Overview
The Associated Press Developer API gives you programmatic access to AP news content and metadata, one of the most trusted wire services in the world. You can search articles, images, and videos from a globally recognized source. Access requires an approved API key, making it more suitable for professional or journalistic applications.
Beginner Tip
Apply for access through the AP developer portal and expect a review period before your key is activated. Use the search endpoint with specific keywords to limit results and avoid overwhelming your application with data.
Available Data
Example Response
{
"totalArticles": 100,
"articles": [
{
"title": "Tech Industry Sees Record Growth",
"source": {
"name": "TechNews",
"url": "https://technews.com"
},
"publishedAt": "2025-01-15T08:00:00Z",
"description": "The technology sector reported unprecedented growth...",
"image": "https://example.com/article-image.jpg",
"url": "https://technews.com/article/123"
}
]
} Field Reference
data.items List of content items matching the search query data.items[].headline Main headline of the news item data.items[].description Brief summary or lead paragraph of the article data.items[].pubstatus Publication status such as usable or withheld data.items[].firstcreated ISO 8601 timestamp of when the content was first created Implementation Example
const url = "https://developer.ap.org/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →Currents
⭐ Beginner's PickCurrents API delivers the latest news from thousands of sources, blogs, and online forums in real time.
GNews
⭐ Beginner's PickGNews is a news search API that aggregates articles from thousands of sources worldwide and lets you filter by keyword, language, country, and topic.
MarketAux
MarketAux delivers real-time financial news with sentiment analysis, ticker tagging, and market statistics in a clean JSON format.
Mediastack
⭐ Beginner's PickMediastack is a simple REST API that delivers live and historical news articles from thousands of global sources.
New York Times
⭐ Beginner's PickThe New York Times API gives developers access to articles, book reviews, movie reviews, bestseller lists, and more from one of the most prestigious news organizations in the world.