{
  "openapi": "3.0.1",
  "info": {
    "title": "ThomasNet Industrial Suppliers Scraper",
    "description": "Scrape US and Canadian industrial suppliers from ThomasNet by keyword or category: phone, website, address, sales, employees, year founded, personnel, certifications and optional emails. No login.",
    "version": "0.1",
    "x-build-id": "uMoiCZIGXpbxEVYXm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~thomasnet-industrial-suppliers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-thomasnet-industrial-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/automation-lab~thomasnet-industrial-suppliers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-thomasnet-industrial-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/automation-lab~thomasnet-industrial-suppliers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-thomasnet-industrial-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Products or services to source, for example \"cnc machining\" or \"hydraulic cylinders\". Each keyword is matched to its best ThomasNet categories, and every supplier in those categories is listed.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "ThomasNet URLs",
            "type": "array",
            "description": "ThomasNet category pages (thomasnet.com/suppliers/usa/cnc-machining-45330503), search pages, or supplier profile pages (thomasnet.com/company/...-12345/profile). Use instead of, or together with, keywords.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxCategoriesPerQuery": {
            "title": "Categories per keyword",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the best-matching ThomasNet categories to list for each keyword. 1 keeps results tightly on topic; more widens coverage.",
            "default": 3
          },
          "maxItems": {
            "title": "Maximum suppliers",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many suppliers in total. You pay only for suppliers delivered.",
            "default": 100
          },
          "area": {
            "title": "Region served",
            "enum": [
              "NA",
              "AL",
              "AK",
              "AB",
              "AZ",
              "AR",
              "BC",
              "CN",
              "CS",
              "CO",
              "CT",
              "DE",
              "DC",
              "FL",
              "GA",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MB",
              "MD",
              "EM",
              "WM",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NB",
              "NH",
              "JN",
              "JS",
              "NM",
              "DN",
              "UN",
              "NL",
              "NC",
              "ND",
              "NS",
              "NU",
              "NO",
              "SO",
              "OK",
              "ON",
              "OR",
              "EP",
              "WP",
              "PR",
              "QC",
              "RI",
              "SK",
              "SC",
              "SD",
              "TN",
              "NT",
              "GT",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY",
              "YT"
            ],
            "type": "string",
            "description": "Only suppliers that serve this state or region, as ThomasNet lists it. Ignored when a ZIP code is set.",
            "default": "NA"
          },
          "locatedInStates": {
            "title": "Located in states / provinces",
            "type": "array",
            "description": "Only suppliers whose address is in these two-letter states or provinces, for example OH, TX, ON. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "zipCode": {
            "title": "Near ZIP / postal code",
            "type": "string",
            "description": "Only suppliers near this US ZIP or Canadian postal code, within the radius below."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Distance from the ZIP / postal code.",
            "default": 50
          },
          "companyTypes": {
            "title": "Company types",
            "type": "array",
            "description": "Only these supplier types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "M",
                "D",
                "C",
                "Q",
                "S",
                "F",
                "R",
                "I",
                "E"
              ],
              "enumTitles": [
                "Manufacturer",
                "Distributor",
                "Custom Manufacturer",
                "Custom Manufacturer - Instant Quote",
                "Service Company",
                "Finishing Service Company",
                "Manufacturers' Rep",
                "Turnkey Systems Integrator",
                "Remanufacturer"
              ]
            }
          },
          "certifications": {
            "title": "Certifications",
            "type": "array",
            "description": "Only suppliers holding at least one of these, matched by name, for example \"ISO 9001\", \"AS9100\", \"ITAR\", \"Woman Owned\", \"Minority Owned\", \"Veteran Owned\".",
            "items": {
              "type": "string"
            }
          },
          "thomasVerifiedOnly": {
            "title": "Thomas Verified only",
            "type": "boolean",
            "description": "Only suppliers whose details ThomasNet has verified.",
            "default": false
          },
          "includeEmails": {
            "title": "Find emails on supplier websites",
            "type": "boolean",
            "description": "Visit each supplier's own website (home and contact page) and add the email addresses it publishes. Suppliers delivered with emails are charged the higher \"supplier with emails\" price.",
            "default": false
          },
          "onlyNewSuppliers": {
            "title": "Only new suppliers",
            "type": "boolean",
            "description": "Skip suppliers an earlier run with the same search already delivered, so scheduled runs return only newcomers. Skipped suppliers are free.",
            "default": false
          },
          "newSuppliersKey": {
            "title": "New-supplier list name",
            "type": "string",
            "description": "Optional name for the remembered supplier list. Runs with the same name share it even when the search changes. By default each search keeps its own list."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}