Toll402 Api API

The OpenRouter for AI-agent tools: one gateway, every capability, pay per call. Built-in tools, agent-forged tools, a global verified business directory, 2,944 provider API endpoints (SEO, social, enrichment, ads, market data, AI generation) and aggregated x402 services. Pay with USDC via x402 (no s

GitHub OpenAPI

Operations 307

Showing the first 250 of 307. The full set is in the contract, and via get_provider_operations.

POST /v1/read Fetch any public web page (or PDF) and return clean, LLM-ready Markdown with title, metadata and links. Boilerplate, ads and scripts removed. #
POST /v1/pdf Download a PDF from a URL and return its full text, page count and title. #
POST /v1/email/verify Validate an email address: syntax, MX/A records, disposable-domain, free-provider and role-account detection, with a 0-100 score. #
POST /v1/fx Exchange rate between two ISO currencies (ECB reference rates), optionally converting an amount. #
POST /v1/extract Turn a web page or raw text into JSON that matches YOUR JSON Schema. LLM-powered, schema-constrained output — no parsing needed. #
POST /v1/summarize Faithful summary of a URL or text in the style, length and language you choose. #
POST /v1/judge Independent LLM-as-judge: scores a candidate output against a task and criteria (0-100), with pass/fail, issues and suggestions. Use it for self-verification, best-of-N, or QA gate #
POST /v1/provenance Human or synthetic? Provenance evidence for a URL: archive first-capture date, domain age, authorship markup, curated source tier, AI disclosures and stylometric signals, aggregate #
POST /v1/lookup Answer from TRUSTED sources only (Wikipedia, Wikidata, arXiv, Crossref/DOI, World Bank): returns passages with URL, reliability tier and retrieval time for citation. With synthesiz #
POST /v1/biz/verify Is this business real, and is its contact info live? Give an id, website, phone or name: matches it against the directory and runs live checks now (site up, name on site, phone on #
POST /v1/biz/details Deep profile of a business from its OWN website: crawls up to 5 relevant pages (menu, services, prices, hours, contact, booking) and returns a machine-readable profile — summary, h #
POST /v1/biz/shortlist Sourcing for agents whose principal is launching or buying something: describe the need ("opening a coffee brand in Monterrey, need packaging suppliers and a designer") and get a r #
POST /v1/listings Buy a verified listing for YOUR x402 endpoint, remote MCP server or A2A agent — paid by the agent in USDC, no humans. We probe it live (402 shape / MCP handshake / agent card); if #
POST /v1/forge Create a NEW tool from a description, an input schema and test examples. The code is generated, run in a sandbox against your examples (up to 3 attempts), and on success published #
POST /v1/do One endpoint for everything (OpenRouter-style): describe what you need and pass the input; Toll402 picks the best tool from the whole catalog (built-in, community-forged, external #
POST /v1/t/cui_ro_validate Offline validator for a Romanian CUI (company tax ID). Strips an optional 'RO' prefix, applies weights 7-5-3-2-1-7-3-2 to the digits preceding the check digit (right-to-left), sums #
POST /v1/t/github_repo_stats Stars, forks, open issues, license and last push for a GitHub repo via https://api.github.com/repos// #
POST /v1/t/ip_geolocate Country, region, city, timezone and ASN for an IPv4/IPv6 address via https://ipapi.co//json/ #
POST /v1/t/fn_at_validate Offline validator for an Austrian Firmenbuchnummer (FN), the company register number. Normalizes the numeric part (1-6 digits, left-padded to 6 for calculation), computes the modul #
POST /v1/t/jsonld_extract Fetches a public URL, extracts all

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/toll402-dev:toll402-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

toll402-dev-api-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"Toll402","version":"0.2.0","description":"The OpenRouter for AI-agent tools: one gateway, every capability, pay per call. Built-in tools, agent-forged tools, a global verified business directory, 2,944 provider API endpoints (SEO, social, enrichment, ads, market data, AI generation) and aggregated x402 services. Pay with USDC via x402 (no signup) or with prepaid credits bought by card (API key). Charged only on success.","contact":{"name":"Toll402","url":"https://toll402.dev","email":"hello@toll402.dev"},"termsOfService":"https://toll402.dev/terms","x-privacy-policy":"https://toll402.dev/privacy","x-llms-txt":"https://toll402.dev/llms.txt"},"servers":[{"url":"https://toll402.dev"}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-toll402-key","description":"Prepaid credits key (tk_…) bought by card at https://toll402.dev/credits. Debited per call, only on 2xx."},"x402":{"type":"http","scheme":"x402","description":"HTTP 402 payment protocol: read PAYMENT-REQUIRED, sign a USDC (Base) authorization, retry with PAYMENT-SIGNATURE. No account."}}},"paths":{"/v1/read":{"post":{"operationId":"read_url","summary":"Fetch any public web page (or PDF) and return clean, LLM-ready Markdown with title, metadata and links. Boilerplate, ads and scripts removed.","tags":["web","scraping","markdown","reader"],"x-price":"$0.002","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL to read","format":"uri"},"format":{"type":"string","enum":["markdown","text","both"],"default":"markdown","description":"Which body format(s) to return"},"includeLinks":{"type":"boolean","default":true},"includeImages":{"type":"boolean","default":false},"maxChars":{"type":"integer","minimum":500,"maximum":500000,"default":200000,"description":"Truncate body to this many characters"}},"required":["url"],"additionalProperties":false},"example":{"url":"https://en.wikipedia.org/wiki/HTTP_402"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"read_url","ms":420,"result":{"url":"https://en.wikipedia.org/wiki/HTTP_402","title":"HTTP 402","markdown":"# HTTP 402\n\n...","wordCount":812,"links":[{"text":"x402","href":"https://x402.org"}]}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/pdf":{"post":{"operationId":"pdf_to_text","summary":"Download a PDF from a URL and return its full text, page count and title.","tags":["pdf","documents","text"],"x-price":"$0.005","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public URL of a PDF file","format":"uri"},"maxChars":{"type":"integer","minimum":500,"maximum":1000000,"default":300000}},"required":["url"],"additionalProperties":false},"example":{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"pdf_to_text","ms":420,"result":{"url":"...","pages":1,"text":"Dummy PDF file","wordCount":3}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/email/verify":{"post":{"operationId":"verify_email","summary":"Validate an email address: syntax, MX/A records, disposable-domain, free-provider and role-account detection, with a 0-100 score.","tags":["email","validation","leads"],"x-price":"$0.001","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address to verify","minLength":3,"maxLength":254}},"required":["email"],"additionalProperties":false},"example":{"email":"support@github.com"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"verify_email","ms":420,"result":{"email":"support@github.com","valid":true,"hasMx":true,"disposable":false,"roleAccount":true,"score":95}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/fx":{"post":{"operationId":"fx_rate","summary":"Exchange rate between two ISO currencies (ECB reference rates), optionally converting an amount.","tags":["finance","currency","fx"],"x-price":"$0.001","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"base":{"type":"string","maxLength":3,"minLength":3,"default":"USD","description":"ISO 4217 base currency"},"quote":{"type":"string","maxLength":3,"minLength":3,"description":"ISO 4217 quote currency; omit for all rates"},"amount":{"type":"number","minimum":0,"default":1}},"additionalProperties":false},"example":{"base":"USD","quote":"MXN","amount":100}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"fx_rate","ms":420,"result":{"base":"USD","quote":"MXN","rate":18.42,"amount":100,"converted":1842,"date":"2026-09-05"}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/extract":{"post":{"operationId":"extract_structured","summary":"Turn a web page or raw text into JSON that matches YOUR JSON Schema. LLM-powered, schema-constrained output — no parsing needed.","tags":["extraction","llm","json","scraping"],"x-price":"$0.06","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Page to read and extract from"},"text":{"type":"string","maxLength":400000,"description":"Raw text/markdown/HTML to extract from (alternative to url)"},"schema":{"type":"object","additionalProperties":true,"description":"JSON Schema (object) describing the output you want"},"instructions":{"type":"string","maxLength":4000,"description":"Extra guidance, e.g. 'prices in USD', 'dates as ISO 8601'"}},"required":["schema"],"additionalProperties":false},"example":{"url":"https://news.ycombinator.com","schema":{"type":"object","properties":{"stories":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"points":{"type":"integer"}}}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"extract_structured","ms":420,"result":{"data":{"stories":[{"title":"Show HN: ...","points":120}]},"usage":{"inputTokens":5400,"outputTokens":320}}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/summarize":{"post":{"operationId":"summarize","summary":"Faithful summary of a URL or text in the style, length and language you choose.","tags":["summarization","llm","reading"],"x-price":"$0.05","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"text":{"type":"string","maxLength":400000},"style":{"type":"string","enum":["bullets","paragraph","tldr","detailed"],"default":"bullets"},"maxWords":{"type":"integer","minimum":20,"maximum":1500,"default":200},"language":{"type":"string","maxLength":40,"default":"same as source","description":"Output language, e.g. 'es', 'en'"},"focus":{"type":"string","maxLength":1000,"description":"What to focus on"}},"additionalProperties":false},"example":{"url":"https://en.wikipedia.org/wiki/HTTP_402","style":"tldr","language":"es"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"summarize","ms":420,"result":{"summary":"HTTP 402 es un código de estado reservado para pagos...","title":"HTTP 402"}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/judge":{"post":{"operationId":"judge_output","summary":"Independent LLM-as-judge: scores a candidate output against a task and criteria (0-100), with pass/fail, issues and suggestions. Use it for self-verification, best-of-N, or QA gates.","tags":["evaluation","llm","quality","judge"],"x-price":"$0.07","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"task":{"type":"string","description":"The task/instructions the candidate was supposed to fulfil","maxLength":20000},"candidate":{"type":"string","description":"The output to evaluate","maxLength":100000},"reference":{"type":"string","maxLength":100000,"description":"Optional gold/reference answer"},"criteria":{"type":"array","items":{"type":"string","maxLength":300},"minItems":1,"maxItems":10,"default":["correctness","completeness","clarity"]}},"required":["task","candidate"],"additionalProperties":false},"example":{"task":"Write a haiku about the sea","candidate":"Waves fold into foam / salt wind combs the sleeping dunes / gulls stitch the grey sky","criteria":["is a haiku (5-7-5)","imagery"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"judge_output","ms":420,"result":{"overall":88,"pass":true,"scores":[{"criterion":"is a haiku (5-7-5)","score":90,"rationale":"..."}],"issues":[],"suggestions":[]}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/provenance":{"post":{"operationId":"provenance","summary":"Human or synthetic? Provenance evidence for a URL: archive first-capture date, domain age, authorship markup, curated source tier, AI disclosures and stylometric signals, aggregated into a calibrated 0-100 human-origin score with every piece of evidence. Add deep=true for an LLM stylometric assessment.","tags":["provenance","ai-detection","human","synthetic","trust","curation"],"x-price":"$0.01","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public URL to assess","format":"uri"},"deep":{"type":"boolean","default":true,"description":"Also run an LLM stylometric assessment (only when the server has an LLM key)"}},"required":["url"],"additionalProperties":false},"example":{"url":"https://en.wikipedia.org/wiki/Turing_test","deep":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"provenance","ms":420,"result":{"humanOriginScore":82,"verdict":"likely_human","confidence":0.9,"firstArchived":"2003-05-12T00:00:00Z","source":{"tier":1},"evidence":[{"signal":"wayback_first_capture","value":"2003-05-12T00:00:00Z","direction":"human"}]}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/lookup":{"post":{"operationId":"trusted_lookup","summary":"Answer from TRUSTED sources only (Wikipedia, Wikidata, arXiv, Crossref/DOI, World Bank): returns passages with URL, reliability tier and retrieval time for citation. With synthesize=true you also get an LLM answer that cites the passages and admits when they don't contain the answer.","tags":["research","facts","citations","trusted","reference","science","curation"],"x-price":"$0.01","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Question or topic","minLength":2,"maxLength":500},"language":{"type":"string","maxLength":10,"default":"en","description":"Wikipedia language edition (en, es, de, fr, pt, ...)"},"sources":{"type":"array","items":{"type":"string","enum":["wikipedia","wikidata","arxiv","crossref","worldbank"]},"default":["wikipedia","wikidata","arxiv","crossref"]},"maxPassages":{"type":"integer","minimum":1,"maximum":20,"default":6},"synthesize":{"type":"boolean","default":true,"description":"Return a cited answer synthesized by an LLM (when the server has an LLM key)"}},"required":["query"],"additionalProperties":false},"example":{"query":"HTTP 402 payment required","language":"en","sources":["wikipedia","wikidata"],"synthesize":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"trusted_lookup","ms":420,"result":{"passages":[{"source":"wikipedia","tier":1,"title":"List of HTTP status codes","url":"https://en.wikipedia.org/wiki/List_of_HTTP_status_codes","snippet":"...","retrievedAt":"2026-09-07T00:00:00Z"}]}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/biz/search":{"post":{"operationId":"business_search","summary":"Global business directory for agents (any city in the world; unknown cities are seeded on demand). Search by city, country, category, text or proximity; every result carries a dated verification score (0-100), level (unverified/listed/corroborated/verified/owner_verified) and, on request, the evidence behind it. Open data + live checks + owner claims, never scraped review sites. A city we do not hold yet answers HTTP 503 `region_seeding` with `retryAfterSec` and `alternatives` — you are NOT charged for it (x402 settles only on 2xx); repeat the same call after that delay. A 200 always carries `status`: ok | seeding (partial data, more arriving) | no_match (city covered, filters too narrow).","tags":["business","directory","local","places","verified","trust","curation","global","worldwide"],"x-price":"$0.005","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","maxLength":200,"description":"Free text: name, cuisine, service…"},"category":{"type":"string","enum":["restaurant","cafe","bar","bakery","hotel","travel","car_rental","pharmacy","clinic","dentist","veterinary","optician","lawyer","notary","accountant","insurance","real_estate","architect","it_services","company","wholesale","manufacturing","agriculture","medical_supply","import_export","packaging","chemicals","textiles","construction_materials","machinery","marketing","consulting","finance","coworking","recruiting","logistics","engineering","bank","atm","school","museum","entertainment","gym","salon","supermarket","hardware","electronics","clothing","jewelry","furniture","bookstore","florist","pet","sports","gifts","department_store","auto","laundry","printing","trades","post","government","religion","childcare","other"],"description":"One of: restaurant, cafe, bar, bakery, hotel, travel, car_rental, pharmacy, clinic, dentist, veterinary, optician, lawyer, notary, accountant, insurance, real_estate, architect, it_services, company, wholesale, manufacturing, agriculture, medical_supply, import_export, packaging, chemicals, textiles, construction_materials, machinery, marketing, consulting, finance, coworking, recruiting, logistics, engineering, bank, atm, school, museum, entertainment, gym, salon, supermarket, hardware, electronics, clothing, jewelry, furniture, bookstore, florist, pet, sports, gifts, department_store, auto, laundry, printing, trades, post, government, religion, childcare, other"},"city":{"type":"string","maxLength":80,"description":"City label, e.g. 'Ciudad de México'"},"cityKey":{"type":"string","maxLength":60,"description":"Coverage key, e.g. 'cdmx' or one returned in `coverage` (see GET /v1/biz/coverage)"},"country":{"type":"string","maxLength":2,"minLength":2,"description":"ISO 3166-1 alpha-2"},"near":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"radiusKm":{"type":"number","minimum":0.1,"maximum":50,"default":3}},"required":["lat","lon"],"additionalProperties":false},"minScore":{"type":"integer","minimum":0,"maximum":100,"default":0,"description":"Only businesses with verification score ≥ this"},"minLevel":{"type":"string","enum":["unverified","listed","corroborated","verified","owner_verified"]},"claimedOnly":{"type":"boolean","default":false},"includeEvidence":{"type":"boolean","default":false},"limit":{"type":"integer","minimum":1,"maximum":50,"default":10},"offset":{"type":"integer","minimum":0,"maximum":500,"default":0,"description":"Paging offset, up to 500: narrow the query (city, category, text) for more"},"hasWebsite":{"type":"boolean","description":"Only businesses with a website"},"hasEmail":{"type":"boolean","description":"Only businesses with an email (mostly from official registries)"},"hasPhone":{"type":"boolean"},"minEmployees":{"type":"integer","minimum":0,"maximum":251,"description":"Minimum staff size from official registry bands (6, 11, 31, 51, 101, 251). Great for B2B supplier searches."},"enrichedOnly":{"type":"boolean","description":"Only businesses whose own website has been crawled and summarized (services, prices, booking, social)"},"diversify":{"type":"boolean","default":true,"description":"Collapse chains: at most one result per website domain"},"channel":{"type":"string","enum":["whatsapp","email","instagram","facebook","linkedin","booking","contactForm","telegram"],"description":"Only businesses with this contact channel found on their own website or open data"}},"additionalProperties":false},"example":{"cityKey":"cdmx","category":"dentist","minLevel":"corroborated","limit":5}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"business_search","ms":420,"result":{"status":"ok","total":120,"items":[{"id":"osm:node/123","name":"Clínica Dental Roma","category":"dentist","location":{"city":"Ciudad de México"},"contact":{"phone":"+5255...","website":"https://..."},"verification":{"score":68,"level":"corroborated","lastVerifiedAt":"2026-09-07T00:00:00Z"}}]}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/biz/verify":{"post":{"operationId":"business_verify","summary":"Is this business real, and is its contact info live? Give an id, website, phone or name: matches it against the directory and runs live checks now (site up, name on site, phone on site, domain age, phone format). Returns evidence, score and verdict.","tags":["business","verify","fraud","trust","local"],"x-price":"$0.01","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","maxLength":120,"description":"Business id from search (re-runs live checks now)"},"name":{"type":"string","maxLength":200},"website":{"type":"string","maxLength":300},"phone":{"type":"string","maxLength":40},"address":{"type":"string","maxLength":300},"city":{"type":"string","maxLength":80},"country":{"type":"string","maxLength":2,"minLength":2}},"additionalProperties":false},"example":{"name":"Wikimedia Foundation","website":"https://wikimediafoundation.org","phone":"+14158396885"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"business_verify","ms":420,"result":{"inDirectory":false,"liveChecks":{"score":45,"level":"listed","evidence":[{"signal":"website_live","value":200,"weight":20}]},"verdict":"Not in directory; live checks scored 45/100"}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/biz/details":{"post":{"operationId":"business_details","summary":"Deep profile of a business from its OWN website: crawls up to 5 relevant pages (menu, services, prices, hours, contact, booking) and returns a machine-readable profile — summary, hours (OSM syntax), services with prices, booking channels, payments, languages, social links. First-party data only, cached 30 days per business (force=true re-crawls).","tags":["business","profile","menu","services","hours","local"],"x-price":"$0.08","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Business id from business_search","maxLength":120},"force":{"type":"boolean","default":false,"description":"Re-crawl even if a fresh (≤30 days) profile is cached"}},"required":["id"],"additionalProperties":false},"example":{"id":"wd:Q180"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"business_details","ms":420,"result":{"business":{"id":"wd:Q180","name":"Wikimedia Foundation","verification":{"score":80,"level":"verified"}},"enrichment":{"summary":"…","booking":{"email":"info@wikimedia.org","phone":"+1-415-839-6885"},"pagesCrawled":["https://wikimediafoundation.org/","https://wikimediafoundation.org/contact/"],"source":"own_website","costUsd":0.025},"cached":false}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/biz/shortlist":{"post":{"operationId":"business_shortlist","summary":"Sourcing for agents whose principal is launching or buying something: describe the need (\"opening a coffee brand in Monterrey, need packaging suppliers and a designer\") and get a ranked shortlist of real businesses with a reason, fit score, best contact channel, staff size from official registries, verification level and website summary when curated. Covers each role in the need and says what is missing.","tags":["business","sourcing","suppliers","vendors","shortlist","b2b","directory","launch"],"x-price":"$0.25","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"need":{"type":"string","description":"What you are trying to do and what kind of businesses you need","minLength":8,"maxLength":600},"city":{"type":"string","minLength":2,"maxLength":80},"country":{"type":"string","maxLength":2,"minLength":2,"description":"ISO-3166 alpha-2, e.g. MX"},"limit":{"type":"integer","minimum":3,"maximum":10,"default":6},"minEmployees":{"type":"integer","minimum":0,"maximum":251},"requireWebsite":{"type":"boolean","default":false}},"required":["need","city"],"additionalProperties":false},"example":{"need":"Opening a specialty coffee shop, need coffee roasters and a commercial kitchen equipment supplier","city":"Guadalajara","country":"MX","limit":6}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"business_shortlist","ms":420,"result":{"city":"Guadalajara","shortlist":[{"role":"coffee roaster","fit":82,"why":"Verified roaster with wholesale page","bestContact":"email","business":{"name":"…"}}],"gaps":null}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/listings":{"post":{"operationId":"list_service","summary":"Buy a verified listing for YOUR x402 endpoint, remote MCP server or A2A agent — paid by the agent in USDC, no humans. We probe it live (402 shape / MCP handshake / agent card); if it passes, it is listed for 30 days in the Toll402 catalog, llms.txt, agent card and landing, and ranked higher in /v1/find and the /v1/do router. basic $1 · featured $5 (top of results). Charged only when verification passes. Free quote: POST /v1/listings/quote.","tags":["marketplace","listing","directory","advertise","mcp","x402","agents"],"x-price":"$1","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["x402","mcp","agent"],"description":"x402 = HTTP endpoint that answers 402; mcp = remote MCP server (Streamable HTTP); agent = A2A agent card URL"},"url":{"type":"string","description":"The endpoint / MCP URL / agent-card URL","format":"uri"},"tier":{"type":"string","enum":["basic","featured"],"default":"basic","description":"basic $1/30 days · featured $5/30 days (top of results, landing spotlight)"},"name":{"type":"string","minLength":2,"maxLength":80},"description":{"type":"string","minLength":20,"maxLength":600},"tags":{"type":"array","items":{"type":"string","maxLength":30},"maxItems":10,"default":[]},"owner":{"type":"string","maxLength":80,"description":"Your wallet (0x) for attribution and future creator payouts"},"contact":{"type":"string","maxLength":120,"description":"Email or URL where we can reach you (not published)"}},"required":["kind","url"],"additionalProperties":false},"example":{"kind":"x402","url":"https://api.example.com/v1/quote","tier":"basic","tags":["finance"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"list_service","ms":420,"result":{"listed":true,"listing":{"id":"l/abc123","kind":"x402","tier":"basic","listedUntil":"2026-10-09T00:00:00Z"}}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/forge":{"post":{"operationId":"forge_tool","summary":"Create a NEW tool from a description, an input schema and test examples. The code is generated, run in a sandbox against your examples (up to 3 attempts), and on success published as a paid endpoint /v1/t/<name> for every agent. Infinite tools, on demand.","tags":["forge","create","marketplace","codegen","custom"],"x-price":"$0.25","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Tool name (becomes the endpoint slug)","minLength":3,"maxLength":40},"description":{"type":"string","description":"What the tool does, precisely. Mention data sources (public URLs/APIs without keys) if any.","minLength":20,"maxLength":1000},"inputSchema":{"type":"object","additionalProperties":true,"description":"JSON Schema (type object) for the input"},"outputSchema":{"type":"object","additionalProperties":true,"description":"JSON Schema for the output (recommended)"},"examples":{"type":"array","items":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true},"expectedOutput":{}},"required":["input"],"additionalProperties":false},"description":"Test cases; the tool must pass them to be published","minItems":1,"maxItems":5},"allowNetwork":{"type":"boolean","default":true,"description":"Whether the tool may call public HTTP endpoints"},"priceUsd":{"type":"number","minimum":0.001,"maximum":0.05,"default":0.005,"description":"Price per call for other agents (you never pay to use your own tool's endpoint less than this either)"},"tags":{"type":"array","items":{"type":"string","maxLength":30},"maxItems":8,"default":[]},"creator":{"type":"string","maxLength":80,"description":"Your wallet address or agent id, for attribution"}},"required":["name","description","inputSchema","examples"],"additionalProperties":false},"example":{"name":"hn_top","description":"Return the top N Hacker News story titles and URLs from https://hacker-news.firebaseio.com/v0/topstories.json and /v0/item/<id>.json","inputSchema":{"type":"object","properties":{"n":{"type":"integer"}},"required":["n"]},"examples":[{"input":{"n":3}}],"priceUsd":0.005}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"forge_tool","ms":420,"result":{"published":true,"tool":{"name":"hn_top","url":"https://toll402.dev/v1/t/hn_top","price":"$0.005"},"attempts":1}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/do":{"post":{"operationId":"do","summary":"One endpoint for everything (OpenRouter-style): describe what you need and pass the input; Toll402 picks the best tool from the whole catalog (built-in, community-forged, external x402 services) and runs it. Tools priced above maxPriceUsd are returned as a match instead of executed.","tags":["router","gateway","auto","any"],"x-price":"$0.02","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"need":{"type":"string","description":"What you need, in plain language","minLength":3,"maxLength":500},"input":{"type":"object","additionalProperties":true,"description":"Input for the chosen tool (must match its schema)"},"maxPriceUsd":{"type":"number","minimum":0,"maximum":1,"default":0.01,"description":"Do not execute tools priced above this; return the match instead"},"tool":{"type":"string","description":"Force a specific tool id (skip routing)"}},"required":["need","input"],"additionalProperties":false},"example":{"need":"convert 100 US dollars to Mexican pesos","input":{"base":"USD","quote":"MXN","amount":100}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"do","ms":420,"result":{"executed":true,"tool":{"name":"fx_rate","price":"$0.001"},"result":{"converted":1842}}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/t/cui_ro_validate":{"post":{"operationId":"cui_ro_validate","summary":"Offline validator for a Romanian CUI (company tax ID). Strips an optional 'RO' prefix, applies weights 7-5-3-2-1-7-3-2 to the digits preceding the check digit (right-to-left), sums the weighted products, multiplies by 10, takes mod 11 (mapping a remainder of 10 to 0), and compares the result to the supplied check digit.","tags":["validator","romania","tax-id","offline","cui"],"x-price":"$0.001","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cui":{"type":"string","description":"CUI, optionally prefixed with RO, 2-9 digits"}},"required":["cui"]},"example":{"cui":"RO12345670"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"cui_ro_validate","ms":420}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/t/github_repo_stats":{"post":{"operationId":"github_repo_stats","summary":"Stars, forks, open issues, license and last push for a GitHub repo via https://api.github.com/repos/<owner>/<repo>","tags":["github","code"],"x-price":"$0.003","x-payment":"x402 | credits","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"owner":{"type":"string"},"repo":{"type":"string"}},"required":["owner","repo"]},"example":{"owner":"coinbase","repo":"x402"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ok":true,"tool":"github_repo_stats","ms":420}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required: x402 (see PAYMENT-REQUIRED header) or insufficient credits (JSON error insufficient_credits)."}}}},"/v1/t/ip_geolocate":{"post":{"operationId":"ip_geolocate",

# --- truncated at 32 KB (369 KB total) ---
# Full source: https://artifacts.apis.io/toll402-dev/openapi/_original/toll402-dev-api-openapi.json