{
  "openapi": "3.0.1",
  "info": {
    "title": "TradeIndia Scraper: Suppliers, Phone, Email, GST and Prices",
    "description": "Scrape TradeIndia and ExportersIndia by keyword and city: one row per product with price, MOQ, specs and the supplier's company, city, business type, member years, GST number, owner, turnover, phone and email. One actor for both sites. No login.",
    "version": "0.1",
    "x-build-id": "ToVpk11en0OIXRCte"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~tradeindia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-tradeindia-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/themineworks~tradeindia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-tradeindia-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/themineworks~tradeindia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-tradeindia-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": {
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Product keywords, one per line, as you would type them in the TradeIndia search box. Example: steel pipe, cotton yarn, packaging machine. Each keyword is searched on each site you pick. Up to 100 searches per run.",
            "items": {
              "type": "string"
            }
          },
          "sites": {
            "title": "Sites",
            "type": "array",
            "description": "Which sites to search. TradeIndia gives phone, email, GST number, owner and turnover; ExportersIndia gives price, MOQ, GST badge, rating and the full address. Pick one or both.",
            "items": {
              "type": "string",
              "enum": [
                "tradeindia",
                "exportersindia"
              ],
              "enumTitles": [
                "TradeIndia",
                "ExportersIndia"
              ]
            },
            "default": [
              "tradeindia"
            ]
          },
          "city": {
            "title": "City (optional)",
            "type": "string",
            "description": "Only suppliers in this Indian city, for example Ahmedabad, Mumbai, Delhi, Bengaluru, Ludhiana. Leave empty for all of India."
          },
          "startUrls": {
            "title": "Search URLs (optional)",
            "type": "array",
            "description": "TradeIndia or ExportersIndia search links copied from your browser, for example https://www.tradeindia.com/search.html?keyword=steel+pipe&city=mumbai or https://www.exportersindia.com/search.php?srch_catg_ty=prod&term=steel+pipe or https://www.exportersindia.com/ahmedabad/steel-pipes.htm.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most products to return for each keyword on each site, 1 to 5,000. Example: 300.",
            "default": 50
          },
          "supplierTypes": {
            "title": "Supplier type (TradeIndia)",
            "type": "array",
            "description": "Only sellers of these types on TradeIndia. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "manufacturer",
                "exporter",
                "supplier",
                "trader",
                "wholesaler"
              ],
              "enumTitles": [
                "Manufacturer",
                "Exporter",
                "Supplier",
                "Trader",
                "Wholesaler or distributor"
              ]
            }
          },
          "trustedOnly": {
            "title": "Trusted sellers only",
            "type": "boolean",
            "description": "Only sellers with the TradeIndia TrustStamp or the ExportersIndia V-Trust badge.",
            "default": false
          },
          "withPriceOnly": {
            "title": "Products with a price only",
            "type": "boolean",
            "description": "Skip products that only say Get Price Quote.",
            "default": false
          },
          "includeContacts": {
            "title": "Phone and email (TradeIndia)",
            "type": "boolean",
            "description": "On: the phone and email TradeIndia gives out for each seller are added. Same price either way.",
            "default": true
          },
          "includeDetails": {
            "title": "Seller details: GST number, owner, turnover (TradeIndia)",
            "type": "boolean",
            "description": "On: one product page per seller is opened for the GST number, owner name and designation, full address, year established, employees, annual turnover and about text. Read once per seller and reused for its other products. Off is faster. Same price either way.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}