{
  "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": "VIIXr3FZpIU9o4DNv"
  },
  "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"
            ],
            "type": "string",
            "description": "United States industrial supplier directory. Only usa is supported.",
            "default": "usa"
          },
          "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 code",
            "type": "string",
            "description": "ZIP code for a geographic supplier keyword 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"
            }
          },
          "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 primaryPhone when enabled; off by default. The phones list is not masked, so this does not remove all phone information.",
            "default": false
          },
          "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": "Compatibility location",
            "type": "string",
            "description": "Legacy compatibility field; ignored and not sent to the scraper. Use zip/radius for actual geographic filtering of USA suppliers."
          },
          "transactionType": {
            "title": "Compatibility transaction type",
            "type": "string",
            "description": "Legacy compatibility field; ignored and not sent to the scraper. It does not change the query, mode, or USA supplier results."
          },
          "workerBaseUrl": {
            "title": "Developer testing setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}