# ScrapFly News by Topic

> ScrapFly News by Topic is a paid API for AI agents from scravfly.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-15).

Fetches current news articles and headlines for a given topic

## Facts

- Endpoint: POST https://scravfly.vercel.app/api/news/topic
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-news-by-topic-7594d8d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fd3_ZZxJLvB-Xu_zFs918

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-news-by-topic-7594d8d0 -d '<json body>'
```

Example prompt: Can you pull the latest news articles on artificial intelligence for me?

## When to prefer this

Use this endpoint when you need on-demand news retrieval for a specific topic without managing your own scraping infrastructure. It is well-suited for agents that need to surface current events, monitor what's being reported on a subject, or enrich responses with real-world news context. Prefer this over a general web search when structured news aggregation is the goal.

## Known failure modes

- Empty or obscure topic string returns no results or sparse data
- Topic too broad may return irrelevant or noisy articles
- Network or scraping failure returns success: false with no data
- Rate limiting or upstream source blocking may cause partial results
- Malformed request missing required 'topic' field returns an error

## How this service works

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

## Output

Returns a JSON object with a success boolean and a data object containing news articles or headlines related to the requested topic, sourced via web scraping.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "topic"
 ],
 "properties": {
  "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-news-by-topic-7594d8d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scravfly.vercel.app](https://www.zero.xyz/host/scravfly.vercel.app/llms.txt)
