{
  "openapi": "3.0.1",
  "info": {
    "title": "IndiaMART Scraper - B2B Products & Suppliers",
    "description": "Extract IndiaMART products, Indian supplier profiles, public phones, prices and categories. Export structured rows to JSON, CSV or Excel; pay per delivered row plus a start fee.",
    "version": "0.4",
    "x-build-id": "A4AqexYooU3BysWcR"
  },
  "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": [
              "auto",
              "mcat",
              "city_mcat",
              "product",
              "company",
              "company_products",
              "export_search",
              "dir_search",
              "categories",
              "cities",
              "isearch",
              "suggest"
            ],
            "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"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "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.",
            "items": {
              "type": "string",
              "pattern": "^https://(([a-z0-9-]+\\.)*indiamart\\.com|suggest\\.imimg\\.com)([/?#]|$)"
            }
          },
          "productUrl": {
            "title": "Product URL",
            "pattern": "^(https://([A-Za-z0-9-]+\\.)*indiamart\\.com/.*)?$",
            "type": "string",
            "description": "Paste an IndiaMART product detail URL containing its numeric display ID. This selects product mode automatically."
          },
          "dispIds": {
            "title": "Product display IDs",
            "type": "array",
            "description": "Enter product display IDs as a list. Each ID is a separate input for product details.",
            "items": {
              "type": "string"
            }
          },
          "dispId": {
            "title": "Product display ID",
            "pattern": "^\\d*$",
            "type": "string",
            "description": "Enter the numeric display ID from an IndiaMART product URL, for example 8008419312."
          },
          "tscode": {
            "title": "Company slug",
            "type": "string",
            "description": "Enter the company slug from an IndiaMART storefront URL. Use company mode for its profile or company_products for its products."
          },
          "mcatflname": {
            "title": "Category slug",
            "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": {
            "title": "City slug",
            "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."
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Enter search words, such as solar panel. Auto selects keyword search; choose export_search or suggest explicitly for those results."
          },
          "cityName": {
            "title": "Keyword search city",
            "type": "string",
            "description": "Enter a city name for keyword search, such as Mumbai or New Delhi. If empty, cityFlName is used when provided."
          },
          "maxResults": {
            "title": "Maximum rows per input",
            "minimum": 1,
            "maximum": 5000,
            "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."
          },
          "cityId": {
            "title": "City ID",
            "type": "string",
            "description": "Optional IndiaMART city ID for category listings. Leave empty when using a city slug; the ID is resolved when available."
          },
          "enrichDetails": {
            "title": "Enrich details",
            "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": {
            "title": "Taxonomy depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Category discovery depth: 1 checks starting categories, 2 follows related categories, and 3 explores further. Applies to categories mode.",
            "default": 2
          },
          "quesId": {
            "title": "Category filter question ID",
            "type": "string",
            "description": "Category filter question ID from IndiaMART. Use together with optId when applying a known category filter."
          },
          "optId": {
            "title": "Category filter option ID",
            "type": "string",
            "description": "Category filter option ID corresponding to quesId. Leave empty when no category filter is needed."
          },
          "bizFilter": {
            "title": "Business filter",
            "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": {
            "title": "Additional category filters",
            "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": {
            "title": "Include remote Deals-in sellers",
            "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": {
            "title": "Strict seller city match",
            "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": {
            "title": "Search variants (isearch)",
            "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": {
            "title": "Related categories (isearch)",
            "type": "boolean",
            "description": "Include related category names as additional keyword search terms. Disabled by default.",
            "default": false
          },
          "includeProducts": {
            "title": "Include company products as rows",
            "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
          },
          "cursor": {
            "title": "Continuation cursor",
            "type": "object",
            "description": "When RUN_SUMMARY includes nextCursor, pass that object here unchanged to continue with the same target and filters."
          },
          "proxyCountry": {
            "title": "Country hint",
            "type": "string",
            "description": "Leave at IN for IndiaMART India. This setting does not select another marketplace.",
            "default": "IN"
          },
          "workerBaseUrl": {
            "title": "Developer testing",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}