{
  "openapi": "3.0.1",
  "info": {
    "title": "Thumbtack Scraper — Service Pro Leads & Reviews",
    "description": "Live Thumbtack service-pro data for any US market: trade + city pro search, full profiles, ratings, review counts, published reviews, service areas, badges, hire counts and starting prices. Checkbox features stream structured JSON to your dataset in real time. Free plan samples 2 results.",
    "version": "0.0",
    "x-build-id": "0OnQFxpPI8UqAdLe8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~Thumbtack-Real-Time-Data-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-Thumbtack-Real-Time-Data-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/b2b_leads~Thumbtack-Real-Time-Data-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-Thumbtack-Real-Time-Data-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/b2b_leads~Thumbtack-Real-Time-Data-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-Thumbtack-Real-Time-Data-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": {
          "enableProSearch": {
            "title": "Pro Search",
            "type": "boolean",
            "description": "Find US service pros and local businesses on Thumbtack by trade and city. Enabled by default. Free Apify accounts are limited to a small sample per run — upgrade to a paid plan for full, unlimited data.",
            "default": true
          },
          "searchTasks": {
            "title": "Search tasks",
            "type": "array",
            "description": "One row per trade + city. Add more rows to cover more trades and more markets.",
            "items": {
              "type": "object",
              "properties": {
                "category": {
                  "title": "Trade or service",
                  "type": "string",
                  "description": "What you are looking for (e.g. \"handyman\", \"house cleaning\", \"tv mounting\", \"roofers\", \"movers\", \"interior painters\"). Common trades resolve to the closest matching category automatically.",
                  "editor": "textfield"
                },
                "location": {
                  "title": "City",
                  "type": "string",
                  "description": "City and state, e.g. \"Austin, TX\", \"San Francisco, CA\", \"Brooklyn, NY\". Always include the two-letter state code.",
                  "editor": "textfield"
                },
                "maxResults": {
                  "title": "Max pros for this row",
                  "type": "integer",
                  "description": "Maximum pros for this row. Uses the default below when omitted.",
                  "minimum": 1,
                  "editor": "number"
                }
              },
              "required": [
                "category"
              ]
            }
          },
          "maxResultsPerTask": {
            "title": "Default max pros per task",
            "minimum": 1,
            "type": "integer",
            "description": "Default maximum pros per search task. A row's own value overrides it. Raise this to collect more per trade + city.",
            "default": 10
          },
          "maxRelatedCategoriesPerTask": {
            "title": "Related categories to widen into",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "When a trade + city has fewer pros than its cap, nearby trades are checked to fill it (for example, house cleaning widens into ceiling cleaning). Set to 0 for the fastest, most literal runs.",
            "default": 4
          },
          "enableLeadDetails": {
            "title": "Lead details",
            "type": "boolean",
            "description": "Adds the published detail fields to every pro: full description, business city, state and ZIP, business type, years founded, team size, how many reviews are published and the date of the most recent one. Adds a little extra time per pro. Pros with no extra details are still exported — you always get the complete list, never a filtered one.",
            "default": true
          },
          "enableProDetails": {
            "title": "Pro Details",
            "type": "boolean",
            "description": "Collect complete records for Thumbtack links you already have. A pro link returns that pro; a city link (e.g. https://www.thumbtack.com/tx/austin) or a city + trade link (e.g. https://www.thumbtack.com/tx/austin/handyman) expands into every pro it carries.",
            "default": false
          },
          "proUrls": {
            "title": "Thumbtack links",
            "type": "array",
            "description": "Pro links, trade links, or city links. One per entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerPro": {
            "title": "Max published reviews per pro",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many published reviews to read per pro when Reviews is enabled.",
            "default": 10
          },
          "enableReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Export the reviews published on each pro's record as their own rows (featureType = review) with reviewer name, rating, date and full text. Join them back to the pro rows on proId or profileUrl.",
            "default": false
          },
          "reviewUrls": {
            "title": "Review links",
            "type": "array",
            "description": "Pro links to read published reviews from. Falls back to the Thumbtack links above when left empty.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableScrapeByUrl": {
            "title": "Scrape By URL",
            "type": "boolean",
            "description": "Collect everything on links you paste — pro pages, trade pages, or a whole city page. Mixed lists are fine.",
            "default": false
          },
          "scrapeUrls": {
            "title": "URLs to collect",
            "type": "array",
            "description": "Thumbtack links. One per entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max total items",
            "minimum": 1,
            "type": "integer",
            "description": "Global cap on total rows for the whole run, across all tasks and features. Raise it for large jobs (e.g. 1000 or 10000). Free Apify accounts are capped to a small sample per run regardless of this value.",
            "default": 10
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Every record is always saved to the run's dataset — this webhook is an ADDITIONAL real-time push. When set, each new record is also POSTed to this URL (CRM, Slack incoming webhook, Zapier, Make, Google Sheets).",
            "default": ""
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack"
            ],
            "type": "string",
            "description": "json = the full record object; slack = a Slack-friendly message payload.",
            "default": "json"
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "A US residential connection is enabled by default for reliable collection.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}