# Busca para Agentes > Hosted API that gives any Next.js site a standard `/.well-known/search` endpoint (open "Search for Agents" contract): research and shopping AI agents query the site and get Markdown chunks instead of crawling pages. This API is for coding agents that install and operate it. Research/shopping agents should call the site origin at `/.well-known/search`, not this API. ## Install (coding agent, 1 command) ``` npx busca-agentes init --origin https://example.com --email owner@example.com ``` Or MCP: `npx -y @busca-agentes/mcp` (tools: create_account → register_site → install_nextjs → index_site → get_usage → create_credit_link). MCP Registry name: com.busca-agentes/mcp. ## Endpoints (base https://api.busca-agentes.com) - POST /v1/accounts {email} → {id, adminKey} (409 if email exists). No human needed. - POST /v1/sites (Bearer adminKey) {origin, sitemapUrl?} → {id, apiKey, env} - GET /v1/sites (Bearer adminKey) - POST /v1/sites/{id}/index (Bearer adminKey) → crawls sitemap.xml, embeds pages - GET /v1/sites/{id}/usage (Bearer adminKey) - GET|HEAD|QUERY /v1/search (Bearer site apiKey) → Markdown; add ?format=json for hits - POST /v1/billing/checkout (Bearer adminKey) {queries?} → Mercado Pago payment URL for the human owner (503 if billing not configured) - GET /v1/health ## Search contract (on the customer site) GET https://{site}/.well-known/search?q={query} QUERY https://{site}/.well-known/search with text/plain body or JSON {"q": "..."} Response: text/markdown. Missing q → 400. Headers: Allow: GET, HEAD, QUERY; Accept-Query: text/plain, application/json. Discovery: . Live demo: https://busca-agentes.com/.well-known/search?q=quanto%20custa%20o%20geisha ## Pricing 1,000 free queries per site per UTC month, then prepaid credit at US$ 0.75 per 1,000 queries. HTTP 429 when exhausted. ## More - Full docs: https://api.busca-agentes.com/llms-full.txt - OpenAPI: https://api.busca-agentes.com/openapi.yaml - MCP server card: https://api.busca-agentes.com/.well-known/mcp.json - npm: busca-agentes, @busca-agentes/next, @busca-agentes/mcp