{
  "openapi": "3.0.1",
  "info": {
    "title": "Thomasnet Suppliers Scraper",
    "description": "Scrape Thomasnet suppliers and manufacturers by keyword, category, state or city: phone, website, address, size, revenue, year founded, capabilities and products, with optional profile details.",
    "version": "0.0",
    "x-build-id": "d75a1NOeCK4BtNEF2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/piotrv1001~thomasnet-suppliers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-piotrv1001-thomasnet-suppliers-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/piotrv1001~thomasnet-suppliers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-piotrv1001-thomasnet-suppliers-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/piotrv1001~thomasnet-suppliers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-piotrv1001-thomasnet-suppliers-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Products or services to find suppliers for, as you would type them on Thomasnet, e.g. \"cnc machining\", \"ball valves\" or \"injection molding\". Terms that match a Thomasnet category are also searched region by region for more suppliers.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Thomasnet URLs",
            "type": "array",
            "description": "Optional. Thomasnet supplier listing URLs: a category (thomasnet.com/suppliers/usa/cnc-machining-45330503), a region (…/suppliers/northern-ohio/all-cities/…), a city (…/suppliers/northern-ohio/akron/…) or a search URL. A sort in the URL is kept; the page number is not used, the scraper walks the listing itself.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Optional. Only collect suppliers Thomasnet lists for these regions (US states, Canadian provinces). Leave empty to search nationwide and then every region.",
            "items": {
              "type": "string",
              "enum": [
                "alabama",
                "alaska",
                "alberta",
                "arizona",
                "arkansas",
                "british-columbia",
                "northern-california",
                "southern-california",
                "colorado",
                "connecticut",
                "delaware",
                "district-of-columbia",
                "florida",
                "georgia",
                "hawaii",
                "idaho",
                "illinois",
                "indiana",
                "iowa",
                "kansas",
                "kentucky",
                "louisiana",
                "maine",
                "manitoba",
                "maryland",
                "eastern-massachusetts",
                "western-massachusetts",
                "michigan",
                "minnesota",
                "mississippi",
                "missouri",
                "montana",
                "nebraska",
                "nevada",
                "new-brunswick",
                "new-hampshire",
                "northern-new-jersey",
                "southern-new-jersey",
                "new-mexico",
                "metro-new-york",
                "upstate-new-york",
                "newfoundland-and-labrador",
                "north-carolina",
                "north-dakota",
                "northwest-territories",
                "nova-scotia",
                "nunavut",
                "northern-ohio",
                "southern-ohio",
                "oklahoma",
                "ontario",
                "oregon",
                "eastern-pennsylvania",
                "western-pennsylvania",
                "prince-edward-island",
                "puerto-rico",
                "quebec",
                "rhode-island",
                "saskatchewan",
                "south-carolina",
                "south-dakota",
                "tennessee",
                "northern-texas",
                "southern-texas",
                "utah",
                "vermont",
                "virgin-islands",
                "virginia",
                "washington",
                "west-virginia",
                "wisconsin",
                "wyoming",
                "yukon"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Alberta",
                "Arizona",
                "Arkansas",
                "British Columbia",
                "California - Northern",
                "California - Southern",
                "Colorado",
                "Connecticut",
                "Delaware",
                "District of Columbia",
                "Florida",
                "Georgia",
                "Hawaii",
                "Idaho",
                "Illinois",
                "Indiana",
                "Iowa",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Maine",
                "Manitoba",
                "Maryland",
                "Massachusetts - Eastern",
                "Massachusetts - Western",
                "Michigan",
                "Minnesota",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Brunswick",
                "New Hampshire",
                "New Jersey - Northern",
                "New Jersey - Southern",
                "New Mexico",
                "New York - Metro",
                "New York - Upstate",
                "Newfoundland and Labrador",
                "North Carolina",
                "North Dakota",
                "Northwest Territories",
                "Nova Scotia",
                "Nunavut",
                "Ohio - Northern",
                "Ohio - Southern",
                "Oklahoma",
                "Ontario",
                "Oregon",
                "Pennsylvania - Eastern",
                "Pennsylvania - Western",
                "Prince Edward Island",
                "Puerto Rico",
                "Quebec",
                "Rhode Island",
                "Saskatchewan",
                "South Carolina",
                "South Dakota",
                "Tennessee",
                "Texas - Northern",
                "Texas - Southern",
                "Utah",
                "Vermont",
                "U.S. Virgin Islands",
                "Virginia",
                "Washington",
                "West Virginia",
                "Wisconsin",
                "Wyoming",
                "Yukon"
              ]
            }
          },
          "maxItems": {
            "title": "Max suppliers per search",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many unique suppliers for each search term or URL. Your maximum charge per run also caps the run.",
            "default": 50
          },
          "includeProfile": {
            "title": "Include profile details",
            "type": "boolean",
            "description": "Also open each supplier profile for product families, brands, certification counts, documents, social links and the company's own description. Billed per supplier only when the profile loads.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}