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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

article title and content
publication source
published date
article URL
image URL

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.ap.org/media/v/content/feed?q=technology&page_size=5";
// 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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

401 Unauthorized API key is missing, expired, or not yet approved
Ensure your key is included in the X-Api-Key header and has been approved by AP
403 Forbidden Your plan does not have access to the requested content type
Check your subscription tier and contact AP support to unlock additional content
Empty search results Search query is too narrow or uses unsupported syntax
Simplify your search terms and consult the AP query syntax documentation

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category News
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →