{
  "openapi": "3.0.1",
  "info": {
    "title": "Thomasnet Scraper | US Industrial Suppliers",
    "description": "Scrape Thomasnet (www.thomasnet.com) US industrial B2B suppliers via keyword search, heading categories, and company profiles. Extract tgramsId, location, sales, employees, capabilities, and profile URLs. Export Excel, CSV, or JSON. Unofficial — not affiliated with Thomas Publishing / Thomasnet.",
    "version": "0.2",
    "x-build-id": "reX64juaAZA5Tv8O4"
  },
  "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": [
              "supplier_search",
              "heading",
              "company",
              "browse",
              "enumerate",
              "catalog"
            ],
            "type": "string",
            "description": "supplier_search | heading | company | browse | enumerate | catalog. enumerate = full A–Z+symbol company sweep; catalog = product-catalog deep paging.",
            "default": "supplier_search"
          },
          "market": {
            "title": "Market",
            "enum": [
              "usa"
            ],
            "type": "string",
            "description": "Thomasnet market (USA industrial directory)",
            "default": "usa"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword for mode=supplier_search, e.g. cnc machining",
            "default": "cnc machining"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Optional list of supplier-search or catalog keywords. Each query gets its own maxResults row budget.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "headingSlug": {
            "title": "Heading slug",
            "type": "string",
            "description": "Category slug for mode=heading, e.g. cnc-machining"
          },
          "headingId": {
            "title": "Heading ID",
            "type": "string",
            "description": "Numeric heading id, e.g. 45330503"
          },
          "tgramsId": {
            "title": "Company tgramsId",
            "type": "string",
            "description": "Thomas company id for mode=company"
          },
          "companySlug": {
            "title": "Company slug",
            "type": "string",
            "description": "Optional URL slug, e.g. electro-plastics"
          },
          "companyUrl": {
            "title": "Company profile URL",
            "type": "string",
            "description": "Full /company/{slug}-{tgramsId}/profile URL. This is one input with its own maxResults budget."
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Company profile URLs for mode=company. Each URL gets its own maxResults row budget.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Thomasnet search, heading, or company URLs. Each URL gets its own maxResults row budget.",
            "items": {
              "type": "string"
            }
          },
          "filterIds": {
            "title": "Filter IDs",
            "type": "array",
            "description": "Optional filter ids from pageProps.filters (passthrough)",
            "items": {
              "type": "string"
            }
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "Optional geo search ZIP"
          },
          "radius": {
            "title": "Radius",
            "type": "string",
            "description": "Optional geo radius (miles) with zip"
          },
          "location": {
            "title": "Compatibility location",
            "type": "string",
            "description": "Optional compatibility metadata. Thomasnet results remain USA suppliers; use zip/radius for actual geographic filtering."
          },
          "transactionType": {
            "title": "Compatibility transaction type",
            "type": "string",
            "description": "Optional compatibility metadata; it does not change Thomasnet's USA supplier market."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum Dataset rows for each query, start/detail URL, company, or heading input. Default 70; larger values are collected in parts of up to 70. Supplier and product row types share that input's budget. The run also stops at your maximum total charge; free Apify plans are capped at 200 rows per run and 10 runs.",
            "default": 70
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Optional page cap. Default 1 = pages follow maxResults; above 1 caps the pages read.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "When true on list modes, fetch the company profile for every supplier row (4 in parallel). Default on so personnel/social land on the same supplier rows; it does not add separately billed rows.",
            "default": true
          },
          "redactPhones": {
            "title": "Redact phones",
            "type": "boolean",
            "description": "Mask primaryPhone in output. Default off — outreach phones stay plaintext. Lead phones[] is never masked.",
            "default": false
          },
          "includeStreet": {
            "title": "Include street address",
            "type": "boolean",
            "description": "Include street and unit (address1/2/3 and lead address.street/unit). Default on. When off, street and unit are dropped from every row, enriched rows included.",
            "default": true
          },
          "includeProducts": {
            "title": "Include products as rows",
            "type": "boolean",
            "description": "When enabled, each supplier product is a separate billed Dataset row. Supplier and product rows share that input's maxResults budget.",
            "default": false
          },
          "fields": {
            "title": "Fields projection",
            "type": "array",
            "description": "Optional output field list. Worker plans collection surfaces from these (e.g. [\"tgramsId\",\"name\",\"website\"] skips detail enrichment). [\"*\"] requests the full catalog — see worker /v1/fields.",
            "items": {
              "type": "string"
            }
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Leave empty. Only this Actor's own control-plane route is accepted; the Actor env WORKER_BASE_URL already points there."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}