{
  "openapi": "3.0.1",
  "info": {
    "title": "IndiaMART Scraper - Suppliers, Products & B2B Leads",
    "description": "Scrape IndiaMART, India's #1 B2B marketplace: supplier company name, phone, city/state, GST & verification status, ratings, membership tier, product names, prices, MOQ & specs. Richest no-browser supplier & product leads with lead scoring and monitoring.",
    "version": "0.1",
    "x-build-id": "TGLk21ldQdZQNDTiz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~indiamart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-indiamart-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~indiamart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-indiamart-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~indiamart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-indiamart-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to output",
            "enum": [
              "products",
              "supplierLeads"
            ],
            "type": "string",
            "description": "products = one record per product listing (with the inline supplier: company, phone, city, price, specs). supplierLeads = one deduplicated record per supplier/manufacturer (B2B lead, optionally enriched from the storefront). Start/category URLs and supplier/product URLs are auto-routed regardless of this setting.",
            "default": "products"
          },
          "searchTerms": {
            "title": "Search terms (IndiaMART categories)",
            "type": "array",
            "description": "Product/category keywords. Each maps to an IndiaMART category page, e.g. <code>industrial valves</code> → <code>dir.indiamart.com/impcat/industrial-valves.html</code>. Examples: <code>submersible pump</code>, <code>leather gloves</code>, <code>cnc machine</code>, <code>cotton fabric</code>, <code>led light</code>. Each term runs separately.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (optional)",
            "type": "array",
            "description": "Optional Indian cities to filter suppliers by, e.g. <code>Mumbai</code>, <code>Delhi</code>, <code>Ahmedabad</code>, <code>Rajkot</code>. Each search term is crawled per city (<code>dir.indiamart.com/&lt;city&gt;/&lt;category&gt;.html</code>). Leave empty for all-India results.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Paste IndiaMART category page URLs directly — national (<code>https://dir.indiamart.com/impcat/&lt;slug&gt;.html</code>) or city (<code>https://dir.indiamart.com/mumbai/&lt;slug&gt;.html</code>).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (auto-routed)",
            "type": "array",
            "description": "Paste any IndiaMART URLs — category pages, supplier storefronts (<code>https://www.indiamart.com/&lt;slug&gt;/</code>), or product pages (<code>/proddetail/…</code>). Each is auto-detected and routed.",
            "items": {
              "type": "string"
            }
          },
          "supplierUrls": {
            "title": "Supplier storefront URLs",
            "type": "array",
            "description": "IndiaMART supplier storefront URLs or bare slugs (<code>https://www.indiamart.com/risansi/</code> or just <code>risansi</code>). Each is fetched as a full supplier-lead record (nature of business, year, employees, turnover, GST, address).",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "IndiaMART product page URLs (<code>https://www.indiamart.com/proddetail/…</code>). Each is fetched for full description, specs and images.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max records (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total cap on records emitted in this run (products or supplier leads).",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per category",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many listing pages to crawl per category/city (each page lists ~28 products). Breadth also comes from multiple terms × cities.",
            "default": 5
          },
          "includeProductDetails": {
            "title": "Fetch full product details",
            "type": "boolean",
            "description": "In products mode, open each product page for full description, all images and the spec table (JSON-LD). Adds one request per product and a productDetail charge.",
            "default": false
          },
          "includeSupplierDetails": {
            "title": "Fetch supplier storefront details",
            "type": "boolean",
            "description": "In supplierLeads mode, open each supplier's storefront for nature of business, legal status, year of establishment, employees, annual turnover, GST number and full postal address. Adds one request per supplier and a supplierDetail charge.",
            "default": false
          },
          "withPhoneOnly": {
            "title": "Only records with a phone",
            "type": "boolean",
            "description": "Emit only records that include a supplier contact phone number.",
            "default": false
          },
          "gstVerifiedOnly": {
            "title": "Only GST-verified suppliers",
            "type": "boolean",
            "description": "Emit only suppliers flagged GST-verified on IndiaMART.",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Emit only records with at least this 0–100 lead score (phone, GST/mobile/email verification, membership tier, ratings, tenure, firmographics).",
            "default": 0
          },
          "membershipTiers": {
            "title": "Membership tiers",
            "type": "array",
            "description": "Keep only suppliers whose membership tier matches one of these (case-insensitive substring), e.g. <code>Leader</code>, <code>Star</code>. Leave empty for all tiers.",
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Monitor mode (only new records)",
            "type": "boolean",
            "description": "Remember products/suppliers seen in previous runs (named key-value store) and emit only NEW ones. Pair with Apify Schedules to watch a category or city for newly listed suppliers/products. Does not conflict with scheduling.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store holding the 'already seen' keys for monitor mode. Use a distinct name per saved task so their histories stay separate.",
            "default": "indiamart-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Maximum parallel requests.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. IndiaMART geo-restricts foreign & datacenter IPs, so the default is Apify Residential proxy in India — keep it for reliable results.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}