News APIs: All Them APIs endpoint contract

News discovery with source links, explicit date filters and cursor pagination.

Endpoint and access

Contract preview · access requires enablement
News APIs contract endpoint
POST https://allthemapis.com/api/v1/news/search

This is our proposed customer-facing interface. Provider fulfillment and category-specific keys are not enabled yet. Calls currently return 503 integration_not_enabled; they do not execute a query or spend credits. Existing Search API trial keys do not unlock this category.

Request access for your workload before connecting an application.

Request fields

Proposed request schema
FieldTypeMeaning
querystring, requiredTopic or entity query; do not assume identical Boolean semantics across providers.
languagestringTwo-letter language code.
fromISO 8601 datetimeInclusive publication-time lower bound in UTC.
toISO 8601 datetimePublication-time upper bound in UTC.
limitinteger1 to 50 records, subject to access.
cursorstringOpaque continuation token returned by the previous page.
News APIs example request
curl -X POST "https://allthemapis.com/api/v1/news/search" \
  -H "Authorization: Bearer $ALLTHEMAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "\"battery recycling\"",
  "language": "en",
  "from": "2026-10-01T00:00:00Z",
  "to": "2026-10-02T00:00:00Z",
  "limit": 10
}'

The example defines the contract; it is not a completed API call.

Response fields and errors

Intended response fields after access enablement
FieldMeaning
articles[]Title, source URL, publisher, language, publication time and available excerpt.
next_cursorOpaque continuation token or null; never a promise of complete archive coverage.
retrieved_atTime of retrieval, distinct from article publication.
request_idRequest identifier. Full-text rights are not implied by this contract.
News APIs current unavailable response
{
  "error": {
    "code": "integration_not_enabled",
    "message": "This API requires access enablement. No request has been executed or billed."
  },
  "access_url": "https://allthemapis.com/api-categories/news/api#request-access"
}

No synthetic response is returned as live data. Pricing, production quotas and content-use rights must be confirmed before activation.

Give the contract to your coding agent

This prompt prepares an adapter without treating a fixture as a successful live request.

News APIs agent integration prompt
Prepare an integration for the All Them APIs news apis contract.

Endpoint: POST https://allthemapis.com/api/v1/news/search
Request shape:
{
  "query": "\"battery recycling\"",
  "language": "en",
  "from": "2026-10-01T00:00:00Z",
  "to": "2026-10-02T00:00:00Z",
  "limit": 10
}

This category requires access enablement and currently returns HTTP 503 integration_not_enabled. Do not execute requests or claim success until access is confirmed.
Read ALLTHEMAPIS_API_KEY from a server-side environment variable only. Never place it in browser code, URLs or logs. Use a bounded timeout, handle 401/429/503 explicitly, and keep null/missing fields distinct from valid zero values. Do not retry indefinitely.
Expected output fields:
- articles[]: Title, source URL, publisher, language, publication time and available excerpt.
- next_cursor: Opaque continuation token or null; never a promise of complete archive coverage.
- retrieved_at: Time of retrieval, distinct from article publication.
- request_id: Request identifier. Full-text rights are not implied by this contract.

Build the adapter and unit tests against an explicitly labeled local fixture. Do not fabricate live results. Summarize what access and production verification are still required.

Request access to news APIs

Tell us the coverage and volume you need. We will confirm availability and terms before enabling access. This request does not take a payment or create an API key.