{"openapi":"3.1.0","info":{"title":"IndiaMART B2B Products and Suppliers (x402 & MCP)","version":"0.1.0","description":"IndiaMART product listings, supplier profiles and category directories across India, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base. 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://ai.opendata.best"}],"paths":{"/s/indiamart-com/v1/search":{"post":{"operationId":"indiamart_com_search","summary":"IndiaMART B2B Products and Suppliers: Search IndiaMART products, categories and cities","description":"Product, category or directory rows by keyword query, mcatflname or cityFlName. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["indiamart-com","Business"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto to choose a mode from your target fields. Select another mode explicitly for company products, category discovery, city discovery, export search or suggestions.","default":"auto","enum":["auto","mcat","city_mcat","export_search","dir_search","isearch","categories","cities","suggest"]},"query":{"type":"string","description":"Enter search words, such as solar panel. Auto selects keyword search; choose export_search or suggest explicitly for those results."},"mcatflname":{"type":"string","description":"Enter the category slug after /impcat/ in an IndiaMART category URL, such as solar-panels. Add cityFlName to restrict listings to a city."},"cityFlName":{"type":"string","description":"Enter the city slug, such as delhi or mumbai, for a category listing. Use cities mode to discover supported cities for that category."},"cityName":{"type":"string","description":"Enter a city name for keyword search, such as Mumbai or New Delhi. If empty, cityFlName is used when provided."},"cityId":{"type":"string","description":"Optional IndiaMART city ID for category listings. Leave empty when using a city slug; the ID is resolved when available."},"startUrls":{"type":"array","items":{"type":"string","pattern":"^https://(([a-z0-9-]+\\.)*indiamart\\.com|suggest\\.imimg\\.com)([/?#]|$)"},"description":"IndiaMART HTTPS links for category listings, product details, company storefronts or search pages. The first link selects the mode in Auto; use links of the same page type together."},"enrichDetails":{"type":"boolean","description":"Add available product and supplier details, including company profile and registered-address information. Enabled by default; missing details remain empty and enrichment may not cover every row.","default":true},"taxonomyDepth":{"type":"integer","description":"Category discovery depth: 1 checks starting categories, 2 follows related categories, and 3 explores further. Applies to categories mode.","default":2,"minimum":1,"maximum":3},"quesId":{"type":"string","description":"Category filter question ID from IndiaMART. Use together with optId when applying a known category filter."},"optId":{"type":"string","description":"Category filter option ID corresponding to quesId. Leave empty when no category filter is needed."},"bizFilter":{"type":"string","description":"Business-type filter for category or keyword listings. Keyword search accepts 10 for manufacturer, 20 for exporter, 30 for wholesaler and 40 for retailer."},"isqFilters":{"type":"object","description":"Additional IndiaMART category filter parameters as an object with string values. Leave empty unless you know the relevant filter keys and values."},"includeDealsIn":{"type":"boolean","description":"Allow sellers marked as serving the chosen city. Disabled by default; also disable strictCityMatch to include sellers located in other cities.","default":false},"strictCityMatch":{"type":"boolean","description":"Filter by requested city, or district in keyword search; keyword rows without a location are kept. Disable this when including sellers located elsewhere.","default":true},"fanOut":{"type":"boolean","description":"Expand keyword searches with city, business-type and suggested-keyword variants when more rows are needed. Enabled by default; variants share the same per-input row limit.","default":true},"expandRelated":{"type":"boolean","description":"Include related category names as additional keyword search terms. Disabled by default.","default":false},"maxResults":{"type":"integer","description":"Maximum billed rows per URL, display ID, category, keyword or company input; leave empty for 70. Larger requests are collected in parts of 70, subject to the maximum run cost and the free-plan cap of 200 rows per run.","minimum":1,"maximum":20,"default":10}},"additionalProperties":false},"example":{"query":"solar panel","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_indiamart_com"},"example":{"jobId":"job_indiamar_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"id":"example_001","dispId":"example_dispId","title":"example_title","price":"example_price","currency":"example_currency","companyName":"example_companyName"}],"meta":{"site":"indiamart-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","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/indiamart-com/v1/products":{"post":{"operationId":"indiamart_com_products","summary":"IndiaMART B2B Products and Suppliers: Product details by dispId or product URL","description":"Product detail rows for given dispId, dispIds or productUrl. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["indiamart-com","Business"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productUrl":{"type":"string","description":"Paste an IndiaMART product detail URL containing its numeric display ID. This selects product mode automatically.","pattern":"^(https://([A-Za-z0-9-]+\\.)*indiamart\\.com/.*)?$"},"dispIds":{"type":"array","items":{"type":"string"},"description":"Enter product display IDs as a list. Each ID is a separate input for product details."},"dispId":{"type":"string","description":"Enter the numeric display ID from an IndiaMART product URL, for example 8008419312.","pattern":"^\\d*$"},"startUrls":{"type":"array","items":{"type":"string","pattern":"^https://(([a-z0-9-]+\\.)*indiamart\\.com|suggest\\.imimg\\.com)([/?#]|$)"},"description":"IndiaMART HTTPS links for category listings, product details, company storefronts or search pages. The first link selects the mode in Auto; use links of the same page type together."},"enrichDetails":{"type":"boolean","description":"Add available product and supplier details, including company profile and registered-address information. Enabled by default; missing details remain empty and enrichment may not cover every row.","default":true},"maxResults":{"type":"integer","description":"Maximum billed rows per URL, display ID, category, keyword or company input; leave empty for 70. Larger requests are collected in parts of 70, subject to the maximum run cost and the free-plan cap of 200 rows per run.","minimum":1,"maximum":20,"default":10}},"additionalProperties":false},"example":{"dispId":"8008419312","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_indiamart_com"},"example":{"jobId":"job_indiamar_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"id":"example_001","dispId":"example_dispId","title":"example_title","price":"example_price","currency":"example_currency","companyName":"example_companyName"}],"meta":{"site":"indiamart-com","endpoint":"products","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","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/indiamart-com/v1/companies":{"post":{"operationId":"indiamart_com_companies","summary":"IndiaMART B2B Products and Suppliers: Supplier profiles and product catalogs by company slug","description":"Supplier and company product rows for a given IndiaMART tscode slug or company URL. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["indiamart-com","Business"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto to choose a mode from your target fields. Select another mode explicitly for company products, category discovery, city discovery, export search or suggestions.","default":"company","enum":["company","company_products"]},"tscode":{"type":"string","description":"Enter the company slug from an IndiaMART storefront URL. Use company mode for its profile or company_products for its products."},"startUrls":{"type":"array","items":{"type":"string","pattern":"^https://(([a-z0-9-]+\\.)*indiamart\\.com|suggest\\.imimg\\.com)([/?#]|$)"},"description":"IndiaMART HTTPS links for category listings, product details, company storefronts or search pages. The first link selects the mode in Auto; use links of the same page type together."},"includeProducts":{"type":"boolean","description":"In company mode, add company products as separate rows billed at the same rate. Disabled by default; company_products mode returns products without needing this option.","default":false},"enrichDetails":{"type":"boolean","description":"Add available product and supplier details, including company profile and registered-address information. Enabled by default; missing details remain empty and enrichment may not cover every row.","default":true},"maxResults":{"type":"integer","description":"Maximum billed rows per URL, display ID, category, keyword or company input; leave empty for 70. Larger requests are collected in parts of 70, subject to the maximum run cost and the free-plan cap of 200 rows per run.","minimum":1,"maximum":20,"default":10}},"additionalProperties":false},"example":{"mode":"company","tscode":"hitech-meta","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_indiamart_com"},"example":{"jobId":"job_indiamar_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"id":"example_001","dispId":"example_dispId","title":"example_title","price":"example_price","currency":"example_currency","companyName":"example_companyName"}],"meta":{"site":"indiamart-com","endpoint":"companies","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","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/indiamart-com/v1/health":{"get":{"operationId":"indiamart_com_health","summary":"IndiaMART B2B Products and Suppliers: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["indiamart-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_indiamart_com":{"type":"object","properties":{"id":{"type":["string","number","boolean","object","array","null"]},"dispId":{"type":["string","null"],"title":"Display ID"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["string","null"],"title":"Price"},"currency":{"type":["string","null"],"title":"Currency"},"companyName":{"type":["string","null"],"title":"Company"},"tscode":{"type":["string","null"],"title":"Company code"},"city":{"type":["string","null"],"title":"City"},"state":{"type":["string","null"],"title":"State"},"productUrl":{"type":["string","null"],"format":"uri","title":"Product URL"},"mcatflname":{"type":["string","null"],"title":"MCAT"},"recordType":{"type":["string","null"],"title":"Type"},"source":{"type":["string","null"],"title":"Source"},"phone":{"type":["string","null"],"title":"Phone"},"phones":{"type":["string","null"],"title":"Phones"},"gstNumber":{"type":["string","null"],"title":"GST number"},"emails":{"type":["string","null"],"title":"Emails"},"address.full":{"type":["string","null"],"title":"Address"},"person.name":{"type":["string","null"],"title":"Contact person"},"org.name":{"type":["string","null"],"title":"Organization"},"web.website":{"type":["string","null"],"format":"uri","title":"Website"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"}},"additionalProperties":true},"Response_indiamart_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_indiamart_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"]}}}}