# agentdiet-search-extract

> agentdiet-search-extract is a paid API for AI agents from agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-20).

Executes live Google News RSS and HackerNews Algolia searches, returning clean token-pruned results with zero ad bloat for AI agent grounding.

## Facts

- Endpoint: GET https://agentdiet.dev/v1/search-extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-search-extract-e020b39f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dO3A68Bnhi80wa_tP6WEp

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 agentdiet-search-extract-e020b39f
```

Example prompt: Search for the latest news and HackerNews discussions about 'AI agent frameworks' and give me clean, ad-free results I can use to ground my response.

## When to prefer this

Choose this endpoint when you need live, ad-free web search results specifically from Google News RSS and HackerNews Algolia for grounding AI agent responses with current tech news — particularly when token efficiency matters and you want clean output without scraping overhead. Prefer it over generic scraping endpoints when the target is news and tech community content rather than arbitrary web pages.

## Known failure modes

- Missing or empty 'query' parameter returns an error or empty result set
- Upstream Google News RSS or HackerNews Algolia unavailable causes fetch failure
- Rate limiting or payment failure (x402) blocks the request
- Very niche or highly specific queries may return zero results
- Query string too long or malformed may be rejected

## How this service works

Executes live Google News RSS + HackerNews Algolia search queries and returns clean, token-pruned results with zero ad bloat. (Live x402 v2, IETF MPP & MCP endpoint at https://agentdiet.dev/v1/search-extract)

## Output

Returns a clean, token-pruned list of search results drawn from Google News RSS and HackerNews Algolia, including article titles, URLs, publication dates, and brief text snippets — all stripped of ads, tracking, and HTML noise for efficient agent consumption.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "minLength": 1,
   "description": "Search query for live news, technical articles, and web results"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-search-extract-e020b39f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdiet.dev](https://www.zero.xyz/host/agentdiet.dev/llms.txt)
