# ScrapFly Headlines API

> ScrapFly Headlines API is a paid API for AI agents from scrapfly.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-24).

Fetches current news headlines for a given topic, returning a structured list of headline data

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/crawl/headlines?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-headlines-api-36895dab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fCMWzKyaC-6KGSy_BvlTq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scrapfly-headlines-api-36895dab -d '<json body>'
```

Example prompt: Can you pull the latest 10 headlines about artificial intelligence so I can see what's trending in the news right now?

## When to prefer this

Choose this endpoint when you need real-time or near-real-time news headlines aggregated by topic without managing your own web scraping infrastructure. It is best suited for agents that need to quickly surface trending news on a keyword or subject, and when you want a pay-per-call model via USDC on Base rather than a subscription news API.

## Known failure modes

- Missing required 'topic' field returns a validation error
- Invalid count value (non-numeric) may cause a 400 error
- Topic with no current coverage may return empty headline list
- Network or scraping timeout may return a failure response with success: false
- Rate limits or payment failures on the x402 Base chain may block the request

## How this service works

69 endpoints for data, content generation, and web scraping. Pay per request via x402 on Base chain.

## Output

Returns a success flag and a data object containing structured headline information for the requested topic, including article titles and potentially source or link metadata, up to the requested count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "topic"
 ],
 "properties": {
  "count": {
   "type": "number",
   "description": "count"
  },
  "topic": {
   "type": "string",
   "description": "topic"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapfly-headlines-api-36895dab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapfly.vercel.app](https://www.zero.xyz/host/scrapfly.vercel.app/llms.txt)
