Examples โ†’

Fetch a Hacker News thread for an AI agent

Hacker News is one of the most-fetched URL patterns for AI agents โ€” research, product news, technical discussion. AgentFetch routes HN URLs through Jina Reader (HN's HTML is sparse and trips up local extractors) and returns clean Markdown with the story title, comment tree, and token count.

Try it

Get a free key at agentfetch.dev (500 free fetches/mo, no credit card).

curl -X POST https://api.agentfetch.dev/fetch \
  -H "Content-Type: application/json" \
  -H "X-AgentFetch-Key: af_xxx" \
  -d '{
    "url": "https://news.ycombinator.com/item?id=39000000",
    "max_tokens": 2000
  }'

In an MCP-aware agent

fetch_url(
  url="https://news.ycombinator.com/item?id=39000000",
  max_tokens=2000,
)

In LangChain

from langchain_agentfetch import AgentFetchTool

tool = AgentFetchTool(api_key="af_xxx")
result = tool.run({"url": "https://news.ycombinator.com/item?id=39000000"})

How it routes

AgentFetch automatically routes fetch hacker news thread-style URLs through Jina Reader based on domain heuristics โ€” you don't pick a fetcher.

When agents reach for this

Summarize a thread, extract sentiment, find mentioned products.


Related patterns

Fetch a Twitter / X thread for an AI agent
Fetch a GitHub README for an AI agent
Fetch an arXiv paper for an AI agent
Fetch and extract text from a PDF for an AI agent
Fetch a public Notion page for an AI agent
Fetch a Reddit thread for an AI agent