{
  "openapi": "3.0.1",
  "info": {
    "title": "Supplier & Manufacturer Scraper for Thomasnet - B2B Leads API",
    "description": "Find US and Canadian suppliers and manufacturers from Thomasnet by product or service: company, phone, website, address, employees, annual sales, year founded, materials and industries, with optional key personnel and emails from company websites. Independent tool, not affiliated with Thomasnet.",
    "version": "0.1",
    "x-build-id": "nrOJ3Rz3VQtBHPlcH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~thomasnet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-thomasnet-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/scrapesage~thomasnet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-thomasnet-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/scrapesage~thomasnet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-thomasnet-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": {
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "What you are sourcing: a product or service, such as <code>CNC machining</code>, <code>plastic injection molding</code> or <code>stainless steel valves</code>. Each is matched to Thomasnet's own category, and the run's OUTPUT record says which. Left empty with no links, the run is a short sample.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Or paste Thomasnet links: a category page such as <code>https://www.thomasnet.com/suppliers/usa/cnc-machining-45330503</code>, a state page, or a company profile. A company link is billed as one company with its details. Use <b>Link remote text file</b> or the box below for a long list.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "urlsFromFile": {
            "title": "Links from a file",
            "type": "string",
            "description": "One link per line, or one link to a text file, CSV or Google Sheet that holds them."
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Read only these locations. Left empty, the run starts with the national page and moves through state and region pages until it reaches <b>Max results</b>. Each page shows up to about 40 companies, which can include companies nearby that serve the location.",
            "items": {
              "type": "string",
              "enum": [
                "usa",
                "southern-california",
                "illinois",
                "northern-ohio",
                "michigan",
                "northern-california",
                "southern-ohio",
                "northern-texas",
                "southern-texas",
                "wisconsin",
                "indiana",
                "eastern-pennsylvania",
                "western-pennsylvania",
                "metro-new-york",
                "upstate-new-york",
                "northern-new-jersey",
                "southern-new-jersey",
                "eastern-massachusetts",
                "western-massachusetts",
                "connecticut",
                "minnesota",
                "north-carolina",
                "florida",
                "georgia",
                "tennessee",
                "missouri",
                "washington",
                "arizona",
                "oregon",
                "colorado",
                "virginia",
                "south-carolina",
                "alabama",
                "kentucky",
                "iowa",
                "kansas",
                "oklahoma",
                "utah",
                "louisiana",
                "arkansas",
                "mississippi",
                "nevada",
                "new-hampshire",
                "maryland",
                "nebraska",
                "rhode-island",
                "maine",
                "idaho",
                "delaware",
                "new-mexico",
                "vermont",
                "west-virginia",
                "montana",
                "north-dakota",
                "south-dakota",
                "wyoming",
                "hawaii",
                "alaska",
                "district-of-columbia",
                "puerto-rico",
                "virgin-islands",
                "ontario",
                "quebec",
                "alberta",
                "british-columbia",
                "manitoba",
                "saskatchewan",
                "nova-scotia",
                "new-brunswick",
                "newfoundland-and-labrador",
                "prince-edward-island",
                "northwest-territories",
                "nunavut",
                "yukon"
              ],
              "enumTitles": [
                "United States (usa)",
                "Southern California (southern-california)",
                "Illinois (illinois)",
                "Northern Ohio (northern-ohio)",
                "Michigan (michigan)",
                "Northern California (northern-california)",
                "Southern Ohio (southern-ohio)",
                "Northern Texas (northern-texas)",
                "Southern Texas (southern-texas)",
                "Wisconsin (wisconsin)",
                "Indiana (indiana)",
                "Eastern Pennsylvania (eastern-pennsylvania)",
                "Western Pennsylvania (western-pennsylvania)",
                "Metro New York (metro-new-york)",
                "Upstate New York (upstate-new-york)",
                "Northern New Jersey (northern-new-jersey)",
                "Southern New Jersey (southern-new-jersey)",
                "Eastern Massachusetts (eastern-massachusetts)",
                "Western Massachusetts (western-massachusetts)",
                "Connecticut (connecticut)",
                "Minnesota (minnesota)",
                "North Carolina (north-carolina)",
                "Florida (florida)",
                "Georgia (georgia)",
                "Tennessee (tennessee)",
                "Missouri (missouri)",
                "Washington (washington)",
                "Arizona (arizona)",
                "Oregon (oregon)",
                "Colorado (colorado)",
                "Virginia (virginia)",
                "South Carolina (south-carolina)",
                "Alabama (alabama)",
                "Kentucky (kentucky)",
                "Iowa (iowa)",
                "Kansas (kansas)",
                "Oklahoma (oklahoma)",
                "Utah (utah)",
                "Louisiana (louisiana)",
                "Arkansas (arkansas)",
                "Mississippi (mississippi)",
                "Nevada (nevada)",
                "New Hampshire (new-hampshire)",
                "Maryland (maryland)",
                "Nebraska (nebraska)",
                "Rhode Island (rhode-island)",
                "Maine (maine)",
                "Idaho (idaho)",
                "Delaware (delaware)",
                "New Mexico (new-mexico)",
                "Vermont (vermont)",
                "West Virginia (west-virginia)",
                "Montana (montana)",
                "North Dakota (north-dakota)",
                "South Dakota (south-dakota)",
                "Wyoming (wyoming)",
                "Hawaii (hawaii)",
                "Alaska (alaska)",
                "District of Columbia (district-of-columbia)",
                "Puerto Rico (puerto-rico)",
                "Virgin Islands (virgin-islands)",
                "Ontario (ontario)",
                "Quebec (quebec)",
                "Alberta (alberta)",
                "British Columbia (british-columbia)",
                "Manitoba (manitoba)",
                "Saskatchewan (saskatchewan)",
                "Nova Scotia (nova-scotia)",
                "New Brunswick (new-brunswick)",
                "Newfoundland and Labrador (newfoundland-and-labrador)",
                "Prince Edward Island (prince-edward-island)",
                "Northwest Territories (northwest-territories)",
                "Nunavut (nunavut)",
                "Yukon (yukon)"
              ]
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "The most companies a run delivers and bills, across all categories.",
            "default": 100
          },
          "includeDetails": {
            "title": "Add company details",
            "type": "boolean",
            "description": "Open each company's profile page to add key personnel, product families and certification counts. Billed per company whose profile loaded.",
            "default": false
          },
          "includeEmails": {
            "title": "Find emails",
            "type": "boolean",
            "description": "Look on each company's own website for its email addresses and social links. Billed only for a company where an address of its own is found.",
            "default": false
          },
          "companyTypes": {
            "title": "Company types",
            "type": "array",
            "description": "Keep only these kinds of company. A company's main type and its other activities both count.",
            "items": {
              "type": "string",
              "enum": [
                "C",
                "M",
                "D",
                "S",
                "F",
                "R",
                "E",
                "I",
                "Q",
                "N",
                "T"
              ],
              "enumTitles": [
                "Custom Manufacturer (C)",
                "Manufacturer (M)",
                "Distributor (D)",
                "Service Company (S)",
                "Finishing Service Company (F)",
                "Manufacturers' Rep (R)",
                "Remanufacturer (E)",
                "Turnkey Systems Integrator (I)",
                "Custom Manufacturer, Instant Quote (Q)",
                "Custom Manufacturer Network, Instant Quote (N)",
                "Trade Association (T)"
              ]
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Keep only companies in these states or provinces, as two letters: <code>TX</code>, <code>CA</code>, <code>ON</code>. Pair it with Locations: a page can show nearby companies from other states.",
            "items": {
              "type": "string"
            }
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only companies whose size band starts at this many employees or more, such as <code>50</code>. A company that shows no size is left out."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}