{
  "openapi": "3.0.1",
  "info": {
    "title": "IndiaMART Scraper - India B2B Suppliers, Manufacturers, Prices",
    "description": "Scrape IndiaMART B2B suppliers, manufacturers and products by keyword, city, business type or category URL: price and unit, specs, company, business phone, city, state, GST verified, TrustSEAL, years on IndiaMART, response rate, rating. Verified-exporter search with MOQ. New-results monitoring.",
    "version": "0.1",
    "x-build-id": "R8TJS4Wcoha0aIf76"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amitaviv~indiamart-supplier-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amitaviv-indiamart-supplier-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/amitaviv~indiamart-supplier-scraper/runs": {
      "post": {
        "operationId": "runs-sync-amitaviv-indiamart-supplier-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/amitaviv~indiamart-supplier-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-amitaviv-indiamart-supplier-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": {
          "queries": {
            "title": "Keywords or IndiaMART URLs",
            "type": "array",
            "description": "Product keywords as you would type them on IndiaMART (e.g. steel pipes, led bulb, cotton fabric), or pasted IndiaMART URLs: a category page (https://dir.indiamart.com/impcat/steelpipestubes.html), a city category page (https://dir.indiamart.com/mumbai/steelpipestubes.html) or a search URL (https://dir.indiamart.com/search.mp?ss=steel+pipes). A keyword is matched to the IndiaMART product category the site files it under (the general category when IndiaMART's own guess is a narrow sub-category of it), and that category's supplier listing is read; a keyword that shares no word with any matching category gives 0 results. Paste a category URL for exact control. A city in the keyword (steel pipes mumbai) filters to that city. Product and company pages are not supported.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City (optional)",
            "type": "string",
            "description": "Only suppliers listed for this Indian city, for every keyword (e.g. Mumbai, New Delhi, Bengaluru, Ahmedabad). Use the spelling IndiaMART uses; a city it has no listing for makes that keyword fail with a message. IndiaMART's city listings also show suppliers from elsewhere that deal in the city: they come with city empty and dealsInCity set. With \"Verified exporters only\", only cities IndiaMART's export search recognises work (mostly larger cities); others fail with a message. Leave empty for all of India. City category URLs carry their own city."
          },
          "businessType": {
            "title": "Business type",
            "enum": [
              "any",
              "manufacturer",
              "exporter",
              "wholesaler",
              "retailer"
            ],
            "type": "string",
            "description": "Only suppliers that list this business type on IndiaMART. Applies to keywords and category URLs (not to \"Verified exporters only\").",
            "default": "any"
          },
          "mode": {
            "title": "Output",
            "enum": [
              "products",
              "suppliers"
            ],
            "type": "string",
            "description": "Products: one record per product (price, unit, specifications, image, URL) with its supplier's details; charged per product. Suppliers: one record per supplier with the products IndiaMART shows for it in the listing (at most 4, counted in productsShown; not the size of its whole catalogue); charged per supplier.",
            "default": "products"
          },
          "maxItemsPerQuery": {
            "title": "Max results per keyword or URL",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many products (or suppliers, in Suppliers output) for each keyword or URL, 1 to 10,000. You are charged only for delivered results.",
            "default": 100
          },
          "exportersOnly": {
            "title": "Verified exporters only",
            "type": "boolean",
            "description": "Use IndiaMART's export search instead of the category listing: only suppliers IndiaMART marks as verified exporters, ranked by relevance to the keyword, at most 40 suppliers (about 200 products) per keyword. Adds minimum order quantity, state, year established, business type, exporter since and export countries. Keywords only; Business type is not applied.",
            "default": false
          },
          "splitLargeListings": {
            "title": "Read past IndiaMART's 1,000-supplier view",
            "type": "boolean",
            "description": "IndiaMART shows about 1,000 suppliers per category listing. When a listing has more and you ask for more, continue through its manufacturer, exporter, wholesaler and retailer views (results already delivered are skipped). Off: stop at the first 1,000.",
            "default": true
          },
          "includePhone": {
            "title": "Include business phone number",
            "type": "boolean",
            "description": "Add the phone number IndiaMART publishes for each supplier's business (an IndiaMART call-forwarding number, shown as Contact Number on its product pages to any visitor), with its extension when there is one. Turn off to leave phone and phoneExtension empty. Personal mobile numbers are never returned.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new results (monitoring)",
            "type": "boolean",
            "description": "Return and charge only products (or suppliers) that earlier runs of this actor in your account have not delivered for the same keyword, city and output. The first run delivers everything it finds. The memory is a key-value store named indiamart-supplier-scraper-monitor in your account; delete it to start over.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Only with \"Only new results\". Runs with the same query and the same monitor name share one memory. Give two schedules different names to keep their memories apart."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave it off. The run asks IndiaMART directly first; when IndiaMART refuses, it continues through Apify's residential proxy in India by itself (proxy traffic is included in the price; you pay only the events). Apify's datacenter proxy is often refused by IndiaMART's category pages: leave the proxy off, or choose residential.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}