# ScrapFly Top News API

> ScrapFly Top News API is a paid API for AI agents from test-scrapfly.orbonomy.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Fetches top news articles matching a given query using ScrapFly's web scraping and content aggregation infrastructure.

## Facts

- Endpoint: POST https://test-scrapfly.orbonomy.xyz/api/news/top
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-top-news-api-032e8b73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PmgdLgWNmBhLsPlDVtVTV

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-top-news-api-032e8b73 -d '<json body>'
```

Example prompt: Can you fetch the top news articles about 'artificial intelligence regulation' right now using ScrapFly's news endpoint?

## When to prefer this

Use this endpoint when you need to retrieve top news headlines or articles for a specific topic or keyword from the web in real time, especially when integrating with an x402 micropayment-enabled workflow on Base chain. Prefer this over general web scraping endpoints when the explicit goal is news content aggregation.

## Known failure modes

- Empty or missing query returns validation error
- Query yields no results — success true but data empty
- Network timeout reaching target news sources
- Payment failure via x402 on Base chain — 402 response returned
- Rate limiting or quota exceeded for the API key
- Malformed JSON body returns 400 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 top news articles matching the provided query, scraped and aggregated from the web.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Input query"
  }
 }
}
```

## 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-top-news-api-032e8b73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from test-scrapfly.orbonomy.xyz](https://www.zero.xyz/host/test-scrapfly.orbonomy.xyz/llms.txt)
