{
  "openapi": "3.0.1",
  "info": {
    "title": "Thomasnet Scraper | US Industrial Supplier Data",
    "description": "Extract US industrial suppliers, public phones, addresses, company profiles, and catalog data from Thomasnet. Search by keyword, category, or company URL and pay per delivered row plus a start fee.",
    "version": "0.2",
    "x-build-id": "e8VA4XbNmkDe0gW1n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~thomasnet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~thomasnet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~thomasnet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "supplier_search",
              "heading",
              "company",
              "browse",
              "enumerate",
              "catalog",
              "taxonomy",
              "suggest",
              "filters"
            ],
            "type": "string",
            "description": "Choose Auto to select a mode from your URLs, IDs, category, or keywords. Choose browse, enumerate, taxonomy, filters, catalog, or suggest explicitly for those outputs.",
            "default": "auto"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Supplier or product search text. In browse mode, enter a category slug or an empty string for root categories; in enumerate mode, enter comma-separated initial letters."
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Supplier or catalog keywords. Each keyword has its own maxResults row limit.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Thomasnet search, heading, or company URLs. Each URL has its own maxResults row limit.",
            "items": {
              "type": "string"
            }
          },
          "companyUrl": {
            "title": "Company profile URL",
            "pattern": "^((https?://)?([A-Za-z0-9-]+\\.)*thomasnet\\.com(/.*)?|/.*)?$",
            "type": "string",
            "description": "A Thomasnet company profile URL ending in /company/<name>-<id>/profile. This is one input with its own maxResults row limit."
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Thomasnet company profile URLs ending in /company/<name>-<id>/profile. Each URL has its own maxResults row limit.",
            "items": {
              "type": "string"
            }
          },
          "tgramsId": {
            "title": "Company tgramsId",
            "pattern": "^\\d*$",
            "type": "string",
            "description": "Numeric Thomasnet company identifier for a company profile run."
          },
          "companySlug": {
            "title": "Company slug",
            "type": "string",
            "description": "Optional company URL slug to use with tgramsId, such as electro-plastics."
          },
          "headingSlug": {
            "title": "Heading slug",
            "type": "string",
            "description": "Heading slug such as cnc-machining, or a category slug for browse or taxonomy mode."
          },
          "headingId": {
            "title": "Heading ID",
            "pattern": "^\\d*$",
            "type": "string",
            "description": "Numeric Thomasnet heading identifier, such as 45330503. Use it for a supplier heading list or to scope filter references."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum rows for each keyword, URL, company, or heading input; omit for 70, with larger requests collected in parts of up to 70. Supplier and product rows share this limit; the total run also stops at your maximum charge, and Free plans allow 200 rows per run and 10 runs."
          },
          "market": {
            "title": "Market",
            "enum": [
              "usa",
              "canada",
              "north_america",
              "all"
            ],
            "type": "string",
            "description": "Supplier directory coverage: United States, Canada, North America (US + Canada), or all available regions. Defaults to usa.",
            "default": "usa"
          },
          "area": {
            "title": "Region / Industrial Area",
            "type": "string",
            "description": "Thomasnet region code, slug, or comma-separated codes across 73 US and Canadian regions (60 US industrial regions and 13 Canadian provinces/territories). Examples: ON, QC, BC, CS, CN, NT, GT, NA, ontario, or CS,CN. Use areaType to choose suppliers serving or physically located in the selected area."
          },
          "areaType": {
            "title": "Location Match Type",
            "enum": [
              "",
              "SERVED",
              "LOCATED"
            ],
            "type": "string",
            "description": "SERVED finds suppliers serving the selected region; LOCATED finds suppliers physically located there. Leave empty to use the standard location match.",
            "default": ""
          },
          "state": {
            "title": "State or Province",
            "type": "string",
            "description": "US state or Canadian province/territory name or two-letter code: 50 US states plus DC/PR/VI, or 13 Canadian provinces/territories. Examples: CA, TX, OH, ON, QC, BC. Split industrial states (CA, NY, TX, OH, PA, MA, NJ) automatically expand to all their sub-regions."
          },
          "suggestType": {
            "title": "Suggest facet",
            "enum": [
              "HEADINGS_FAMILY",
              "HEADINGS",
              "CATEGORIES",
              "BRANDS",
              "PRODUCTS",
              "CAD",
              "COMPANIES",
              "COMPANY",
              "AUTO",
              "GEO",
              "POPULAR"
            ],
            "type": "string",
            "description": "Suggestion group for suggest mode: category families, brands, products, CAD models, companies, autocomplete, locations, or popular searches. POPULAR needs no query; HEADINGS and CATEGORIES mean category families, and COMPANY means companies.",
            "default": "HEADINGS_FAMILY"
          },
          "zip": {
            "title": "ZIP or postal code",
            "type": "string",
            "description": "US 5-digit ZIP code (for example 44101), Canadian postal code (M5V2T6 or L5T 1A1), or forward sortation area (FSA, for example M5V). Use with radius in miles for geographic supplier search."
          },
          "radius": {
            "title": "Radius",
            "type": "string",
            "description": "Search radius in miles, entered as a whole-number string together with zip."
          },
          "filterIds": {
            "title": "Filter IDs",
            "type": "array",
            "description": "Optional filter IDs from filters mode. Accepted for compatibility, but ignored by Thomasnet guest search; do not rely on them to restrict results.",
            "items": {
              "type": "string"
            }
          },
          "taxonomyFamilyId": {
            "title": "Taxonomy family ID",
            "type": "string",
            "description": "Optional Thomasnet taxonomyFamilyId filter for supplier_search (GetCompaniesTextGuided).",
            "default": ""
          },
          "supplementHeading": {
            "title": "Supplement heading shortlist",
            "type": "boolean",
            "description": "When enabled in heading mode, backfill beyond the curated GetCompanies shortlist via GetCompaniesTextGuided filtered to matching headingId.",
            "default": false
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Page limit for catalog and enumerate modes. The default 1 follows maxResults; a value above 1 caps the pages read.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "Add available company profile information to supplier rows from search, heading, and enumerate modes. Enabled by default; this does not add separately billed profile rows.",
            "default": true
          },
          "includeProducts": {
            "title": "Include products as rows",
            "type": "boolean",
            "description": "Add supplier products as separate billed rows; off by default. Supplier and product rows share the input limit, while catalog mode returns catalog rows regardless of this setting.",
            "default": false
          },
          "includeStreet": {
            "title": "Include street address",
            "type": "boolean",
            "description": "Include published street and unit details by default. Turning this off removes street, unit, address1-3, and the combined full address, including enriched rows.",
            "default": true
          },
          "redactPhones": {
            "title": "Redact phones",
            "type": "boolean",
            "description": "Mask phone numbers across primaryPhone, phones[], and personnel by default (omitting e164). Set to false to return unmasked company phone numbers.",
            "default": true
          },
          "useSeedPool": {
            "title": "Prefer saved directory entries",
            "type": "boolean",
            "description": "Prefer saved company directory and filter entries when available. Taxonomy always requires available category-tree data and may return no rows when it is unavailable.",
            "default": false
          },
          "fields": {
            "title": "Output fields",
            "type": "array",
            "description": "Select output field names, or leave empty for the normal output; [\"*\"] requests all available fields. Selecting fewer fields does not turn off enrichDetails.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Location text for geographic supplier search. Use state or area for specific regional selections, or zip with radius for a postal-code radius search."
          },
          "transactionType": {
            "title": "Compatibility transaction type",
            "type": "string",
            "description": "Legacy compatibility field; ignored. It does not change the query, mode, or supplier results."
          },
          "workerBaseUrl": {
            "title": "Developer testing setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}