Hosted tool

News headlines

Waiting on a key

Read regional headlines from indexed reporting.

news.headlinesversion 1

Price

0.01

credits per call

Availability

Waiting on a key

Waiting on its upstream credential.

Access

Waiting on a key

Category News

Input

{
  "additionalProperties": false,
  "properties": {
    "count": {
      "maximum": 20,
      "minimum": 1,
      "type": "integer"
    },
    "region": {
      "maxLength": 80,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "region"
  ],
  "type": "object"
}

Result

array<{title:string,url:string,snippet:string,age:string|null,published_at:string|null}>

Default fields: title url snippet age published_at

Limits

Synchronous deadline15 s
Maximum result65,536 bytes
Result pages1
Maximum upstream read1,048,576 bytes

Example call

Provisional: the invoke contract ships with the execution lane

curl https://haidercode.ai/v1/tools/news.headlines/invoke \
  -H "Authorization: Bearer <HK_KEY>" \
  -H "Content-Type: application/json" \
  -H 'Idempotency-Key: headlines-1' \
  -d '{"arguments":{"region":"…"},"max_credits":"0.05"}'

Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.

news

Back to the list