{"openapi":"3.1.0","info":{"title":"Angi US Contractors and Cost Guides (x402 & MCP)","version":"0.1.0","description":"Angi contractor listings, ratings, reviews and home project cost guides across US and international 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/angi-com/v1/search":{"post":{"operationId":"angi_com_search","summary":"Angi US Contractors and Cost Guides: Search Angi US contractor listings and cost guides","description":"Query Angi service providers, ratings, reviews and local project cost guides by category, postal code or location. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["angi-com","Business"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"searchType":{"type":"string","description":"Choose US contractor search (fast), project cost guides, near-me listings, supported profiles, company pages, catalogs or sitemaps. Map, city hub, quote request and other Angi country-domain modes are not available.","default":"search","enum":["search","cost-guide","nearme","detail","intl-catalog","intl-service-pro","intl-list","intl-detail","homestars","catalog","sitemap","contact","about"]},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Supported Angi or international marketplace page URLs, including profiles and company pages. URLs take priority over search settings; a US profile can produce a contractor row plus separate review rows within the row limit."},"slice":{"type":"string","description":"Built-in service or city choice such as us/plumbing or ca/toronto; a bare name uses the selected market. It replaces the US category or international city, but does not change searchType."},"category":{"type":"string","description":"Service slug or trade name, such as hvac, roofing or plumbing. For US search, 250+ trades resolve to the right categoryId automatically when categoryId is omitted."},"categoryId":{"type":"integer","description":"Optional numeric category for US search. 250+ US service categories (such as hvac, roofing, plumbing, electrical, landscaping) resolve automatically from category or query when categoryId is omitted."},"postalCode":{"type":"string","description":"US ZIP or ZIP+4; an explicit ZIP takes priority over city and region. 10001 is used only when no postalCode, zipCodes, location or city is provided.","pattern":"^(\\d{5}(-\\d{4})?)?$"},"zipCodes":{"type":"array","items":{"type":"string"},"description":"Optional list of 5-digit US ZIP codes to search across within maxResults (e.g. ['78701', '78702'])."},"location":{"type":"string","description":"Convenience location such as 'Austin, TX' or '78701' when postalCode is empty."},"city":{"type":"string","description":"US city used with optional region when postalCode is omitted or empty, or the source site city slug for intl-list. An explicit postalCode takes priority for US searches."},"region":{"type":"string","description":"US state code or name, such as WA, used with city when postalCode is empty. A region without a city or ZIP is not accepted."},"query":{"type":"string","description":"Trade or task text. For US search it resolves the service category when category is empty; for cost-guide it is the project (e.g. roof replacement); for catalog it selects entries."},"serviceProSlug":{"type":"string","description":"Single merchant slug for searchType=intl-service-pro (e.g. 217845-new-canadian-drain-plumbing-ltd). Leave empty to enumerate the market's ServicePro directory instead of fetching one merchant."},"market":{"type":"string","description":"Select the marketplace: Angi in the US; HomeStars in Canada; MyBuilder in the UK; MyHammer in Germany or Austria; Travaux in France; Werkspot in the Netherlands; Instapro in Italy.","default":"us","enum":["us","ca","uk","de","at","fr","nl","it"]},"maxResults":{"type":"integer","description":"Maximum rows for each category/ZIP search or detail URL, from 1 to 70. Default 70; contractor and review rows share this allowance. The whole run also stops at your maximum total charge. Free platform plan users have developer-set limits of 200 rows per run and 10 runs of this Actor.","default":5,"minimum":1,"maximum":10},"maxPages":{"type":"integer","description":"No longer used. Delivered rows follow maxResults only.","minimum":1,"maximum":10},"wantsPhone":{"type":"boolean","description":"For US search, ask the gateway for its contact field block. On requests large enough to cover a full result page the gateway returns a shared call-tracking number per business (not a direct line). Off by default; only applies to US category search.","default":false},"ssaFilter":{"type":"boolean","description":"Limit US category search to businesses with the Super Service Award. This filter does not apply to other modes.","default":false},"enrichDetails":{"type":"boolean","description":"Add available public profile fields to listing rows. Off by default; inaccessible profiles can leave the original listing unchanged.","default":false},"mergeNearmeStreets":{"type":"boolean","description":"Off by default so US search runs on the fast JSON path. Enable to overlay published street addresses from matching near-me pages.","default":false},"catalogKind":{"type":"string","description":"For catalog, select categories, algolia-tasks, xm-categories, costguide-categories, businessHighlights, featureflags or platformConfig. For sitemap, select category-sitemap, nearme-sitemap, pro-pool, statecat-sitemap, topic-sitemap, article-sitemap or leaf-index; pro-pool returns profile URLs, not profile content.","enum":["categories","algolia-tasks","xm-categories","costguide-categories","businessHighlights","featureflags","platformConfig","category-sitemap","nearme-sitemap","pro-pool","statecat-sitemap","topic-sitemap","article-sitemap","leaf-index"]},"sitemapShard":{"type":"integer","description":"Provider sitemap part from 1 to 72, used with searchType=sitemap and catalogKind=pro-pool. The first part is used when omitted.","minimum":1,"maximum":72},"harvestSeeds":{"type":"boolean","description":"Save service slugs, cities and category IDs discovered during the run for later reuse. Off by default; this does not guarantee additional output rows.","default":false}},"additionalProperties":false},"example":{"searchType":"search","category":"hvac","market":"us","enrichDetails":false,"maxResults":5}}}},"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_angi_com"},"example":{"jobId":"job_angi-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"kind":"example_kind","name":"example_name","category":"example_category","phones":"example_phones","emails":"example_emails","address":"example_address"}],"meta":{"site":"angi-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"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/angi-com/v1/health":{"get":{"operationId":"angi_com_health","summary":"Angi US Contractors and Cost Guides: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["angi-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_angi_com":{"type":"object","properties":{"kind":{"type":["string","null"],"title":"Kind"},"name":{"type":["string","null"],"title":"Name"},"category":{"type":["string","null"],"title":"Category"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"person":{"type":["string","null"],"title":"Person"},"rowType":{"type":["string","null"],"title":"Row type"},"reviewerName":{"type":["string","null"],"title":"Reviewer"},"text":{"type":["string","null"],"title":"Review text"},"rating":{"type":["number","null"],"title":"Rating"},"ratingScale":{"type":["string","null"],"title":"Rating scale"},"url":{"type":["string","null"],"format":"uri","title":"URL"}},"additionalProperties":true},"Response_angi_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_angi_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"]}}