Skip to content
Fourohtwo

Working code snippets for a library, matched to a topic

payai.agentstools.dev/docs/snippet

Working code snippets for a library, matched to a topic. Give an ecosystem, package name and a topic or symbol and get the fenced code blocks from the README or docs whose language, code or nearest heading matches, each with a source citation and an honest truncated flag. Ideal for grounding a coding agent in real usage examples.

SolanaAnswering
GEThttps://payai.agentstools.dev/docs/snippet

Uptime100% of 3 checks in 30 days

30 days agoToday

Call it from an agent

curl -i "https://payai.agentstools.dev/docs/snippet?name=axios&topic=request&ecosystem=npm"

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "name": "axios",
  "topic": "request",
  "ecosystem": "npm"
}