{"openapi":"3.1.0","info":{"title":"Nextdoor Neighborhoods and Businesses Data (x402 & MCP)","version":"0.1.0","description":"Public Nextdoor local businesses, neighborhood directories, categories, contact details and recommendations across 5 markets, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/nextdoor-com/v1/search":{"post":{"operationId":"nextdoor_com_search","summary":"Nextdoor Neighborhoods and Businesses Data: Search Nextdoor local businesses and neighborhoods","description":"Query public Nextdoor city business directories, neighborhood pages, local topics and business profiles across US, UK, Canada, Australia and France. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["nextdoor-com","Social"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"searchType":{"type":"string","description":"Auto picks the type from the fields you fill: detail URLs or a city slug run city, a business page slug runs pages, a category query runs topics, a neighborhood slug runs neighborhood, a state runs find-neighborhood. Opened: city, neighborhood, pages, find-neighborhood, about, topics, taxonomy, cities, free-finds. business-search aliases topics. search/feed/login/map/contact are out of scope.","default":"auto","enum":["auto","city","neighborhood","pages","find-neighborhood","about","topics","business-search","taxonomy","cities","free-finds","search","feed","login","map","contact"]},"city":{"type":"string","description":"Live SEO slug such as oakland--ca or york--england. Do not use berkeley--ca as a smoke canary."},"state":{"type":"string","description":"For find-neighborhood: us two-letter (or, wa) or GB england. Not used for LDP."},"neighborhood":{"type":"string","description":"Nextdoor neighborhood slug. In neighborhood mode, leaving this empty selects the first neighborhood linked from the city."},"pageSlug":{"type":"string","description":"Slug from a public /pages/{slug}/ business URL. Required in pages mode unless you provide detailUrls."},"query":{"type":"string","description":"Business category for topics or business-search, such as plumber, bakery, or electrician. An empty query lists the city topic index rather than businesses."},"market":{"type":"string","description":"us nextdoor.com (opened). gb nextdoor.co.uk and ca ca.nextdoor.com opened for SEO tree. au/fr have no SEO tree.","default":"us","enum":["us","gb","ca","au","fr"]},"enrichDetails":{"type":"boolean","description":"Fetch /pages/ LDPs so phones, emails, and addresses populate. Default on. City cards have no merchant contact.","default":true},"maxResults":{"type":"integer","description":"Maximum rows for each detail URL or scalar city, topic, page, neighborhood, taxonomy, or marketplace target. The default is 70; larger values are collected in parts of 70. All entity row types count together. The run stops at your maximum total charge. Free platform plan users are limited to 200 rows per run and 10 total runs.","default":10,"minimum":1,"maximum":20},"maxPages":{"type":"integer","description":"Directory pages for searchType=topics. Page 1 is SSR (empty GB/CA SSR may hydrate via businessDirectorySearch). Values >1 follow pageInfo.endCursor. Hard cap 50.","default":1,"minimum":1,"maximum":50},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Optional live nextdoor.com /pages/ or /city/ URLs. Do not send /search or /news_feed."}},"additionalProperties":false},"example":{"searchType":"city","city":"oakland--ca","market":"us","enrichDetails":true,"maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_nextdoor_com"},"example":{"jobId":"job_nextdoor_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"kind":"example_kind","name":"example_name","slug":"example_slug","phones":"example_phones","emails":"example_emails","address":"example_address"}],"meta":{"site":"nextdoor-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/nextdoor-com/v1/health":{"get":{"operationId":"nextdoor_com_health","summary":"Nextdoor Neighborhoods and Businesses Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["nextdoor-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_nextdoor_com":{"type":"object","properties":{"kind":{"type":["string","null"],"title":"Kind"},"name":{"type":["string","null"],"title":"Name"},"slug":{"type":["string","null"],"title":"Slug"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"person":{"type":["string","null"],"title":"Person"},"url":{"type":["string","null"],"format":"uri","title":"URL"}},"additionalProperties":true},"Response_nextdoor_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_nextdoor_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}