{
  "openapi": "3.0.1",
  "info": {
    "title": "IndiaMART Scraper | B2B Products, Phones & Suppliers",
    "description": "Scrape IndiaMART India B2B products & suppliers. Guest phones from MCAT/PDP. Emails usually absent; street when directors exists. Export Excel/CSV/JSON.",
    "version": "0.3",
    "x-build-id": "vu5gi3tk3vZswGQ34"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~indiamart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~indiamart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~indiamart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": "Mode",
            "enum": [
              "mcat",
              "city_mcat",
              "product",
              "company",
              "company_products",
              "export_search",
              "dir_search",
              "categories",
              "cities"
            ],
            "type": "string",
            "description": "mcat | city_mcat | product | company | company_products | export_search | dir_search | categories | cities",
            "default": "mcat"
          },
          "mcatflname": {
            "title": "MCAT slug",
            "type": "string",
            "description": "Category slug for mode=mcat / city_mcat, e.g. tmt-bars, led-lights, pvc-pipes",
            "default": "solar-panels"
          },
          "categorySlug": {
            "title": "Category slug (alias)",
            "type": "string",
            "description": "Alias of mcatflname"
          },
          "cityFlName": {
            "title": "City slug",
            "type": "string",
            "description": "City path slug for mode=city_mcat, e.g. bengaluru, delhi, mumbai"
          },
          "cityId": {
            "title": "City ID",
            "type": "string",
            "description": "Optional cityid for listing Ajax (auto-filled from citybar when possible)"
          },
          "dispId": {
            "title": "Product display ID",
            "type": "string",
            "description": "PC_ITEM_DISPLAY_ID for mode=product"
          },
          "productUrl": {
            "title": "Product URL",
            "type": "string",
            "description": "Full /proddetail/... URL for mode=product"
          },
          "tscode": {
            "title": "Company tscode",
            "type": "string",
            "description": "Company slug for mode=company / company_products"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword for mode=export_search (overseas Export surface; prefer mcat when possible)"
          },
          "keyword": {
            "title": "Keyword (alias)",
            "type": "string",
            "description": "Alias of query"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional IndiaMART URLs (impcat, city MCAT, proddetail, company, export search)",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum records to return (free plan capped at 200). Store Test default is 1.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "Fetch PDP plus /{tscode}/registration-directors-info.html for person/门牌 (404 = 本站无). Default true.",
            "default": true
          },
          "taxonomyDepth": {
            "title": "Taxonomy depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "For mode=categories: 1=seed pages, 2=follow related MCATs, 3=deeper crawl",
            "default": 2
          },
          "quesId": {
            "title": "ISQ question id",
            "type": "string",
            "description": "Forwarded to listing Ajax as quesId (from MCAT isq_filter)"
          },
          "optId": {
            "title": "ISQ option id",
            "type": "string",
            "description": "Forwarded to listing Ajax as optId"
          },
          "bizFilter": {
            "title": "Business filter",
            "type": "string",
            "description": "Forwarded to listing Ajax as biz (from MCAT biz_filter)"
          },
          "isqFilters": {
            "title": "Extra ISQ / Ajax params",
            "type": "object",
            "description": "Additional query params for listing Ajax (string values)"
          },
          "includeDealsIn": {
            "title": "Include remote Deals-in sellers",
            "type": "boolean",
            "description": "For city_mcat: keep sponsored remote cards marked Deals in {City} (d_in=1). Default false — local sellers only.",
            "default": false
          },
          "strictCityMatch": {
            "title": "Strict seller city match",
            "type": "boolean",
            "description": "For city_mcat: keep only rows whose seller city matches the filter (delhi→Delhi/New Delhi). Drops nearby NCR cities like Faridabad.",
            "default": true
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Hint for worker egress (default IN)",
            "default": "IN"
          },
          "workerBaseUrl": {
            "title": "Backend URL override (advanced)",
            "type": "string",
            "description": "Optional HTTPS origin override for the scrape backend (allowlisted hosts only). Leave empty for production defaults. Never required for normal Store runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}