{
  "openapi": "3.0.1",
  "info": {
    "title": "Clutch.co Scraper - B2B Agency Leads, Reviews & Rates",
    "description": "Scrape Clutch.co agencies from any directory: ratings, review scores (quality/schedule/cost/refer), hourly rates, min project size, team size, locations, service-line %, industries, decoded websites & decision-maker names. Optional email/social enrichment, lead scoring & monitoring.",
    "version": "0.1",
    "x-build-id": "6kgCkync3kSeBjCSh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~clutch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-clutch-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/scrapesage~clutch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-clutch-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/scrapesage~clutch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-clutch-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": {
          "directories": {
            "title": "Directories (categories)",
            "type": "array",
            "description": "Clutch directory slugs or full directory URLs - every agency listed is scraped with full ratings, rates and services. Use the path from the directory URL <code>clutch.co/<b>it-services</b></code>, e.g. <code>it-services</code>, <code>web-developers</code>, <code>seo-firms</code>, <code>agencies/digital-marketing</code>, <code>developers/artificial-intelligence</code>, <code>it-services/msp</code>, <code>it-services/cybersecurity</code>. City- or service-filtered directory URLs work too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Direct Clutch URLs: agency profiles (<code>clutch.co/profile/&lt;slug&gt;</code>) or any directory page. Used in addition to the directories above. Profile URLs always fetch full profile details.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max agencies",
            "minimum": 0,
            "type": "integer",
            "description": "Global cap on the number of agency records to output across all directories. A directory page lists ~50 organic agencies. Set 0 for no limit (the run then paginates until the directory ends or the run timeout is near).",
            "default": 50
          },
          "includeProfileDetails": {
            "title": "Include profile details (description, phone, all offices, service %, industries, decision-maker)",
            "type": "boolean",
            "description": "Open each agency's profile page to add: full description, phone number, founding year, HQ address + every office location, languages, timezones, exact service-line percentages, industry & client-size breakdowns, Clutch certifications, review score breakdown (quality, schedule, cost, willingness to refer), top review mentions, the decision-maker shown on the profile (name + title) and the agency's social links. Slower (one page per agency) and billed per profile (agencyDetails event). Leave off for the fast directory-only run - directory cards already include ratings, rates, team size, location, services and the decoded website.",
            "default": false
          },
          "includeReviews": {
            "title": "Include client reviews",
            "type": "boolean",
            "description": "Attach client reviews (title, rating, summary, reviewer, date) plus Clutch's AI review highlights to each agency. Opens the profile page, so it implies 'Include profile details'.",
            "default": false
          },
          "enrichContacts": {
            "title": "Enrich agency contacts (emails, phones & socials)",
            "type": "boolean",
            "description": "For every agency with a website, crawl the agency's own home + contact/about page and extract publicly listed e-mail addresses, phone numbers and social profiles (LinkedIn, Facebook, Instagram, X, YouTube, TikTok) - turning each agency into a ready-to-contact B2B lead. Implies 'Include profile details' and is billed as an enriched lead.",
            "default": false
          },
          "minRating": {
            "title": "Minimum star rating",
            "enum": [
              "",
              "3",
              "3.5",
              "4",
              "4.5",
              "4.8"
            ],
            "type": "string",
            "description": "Keep only agencies with at least this average review rating. Leave empty for all.",
            "default": ""
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only agencies with at least this many reviews (filters out unproven listings). Leave empty for all."
          },
          "verifiedOnly": {
            "title": "Only Clutch-verified agencies",
            "type": "boolean",
            "description": "Keep only agencies with a Clutch verification badge (Verified / Premier Verified).",
            "default": false
          },
          "organicOnly": {
            "title": "Only organic results (skip paid placements)",
            "type": "boolean",
            "description": "Drop sponsored and featured (pay-per-click) placements and keep only agencies from the organic directory ranking and leaders matrix. Cleaner lead lists without advertisers.",
            "default": false
          },
          "withWebsiteOnly": {
            "title": "Only agencies with a website",
            "type": "boolean",
            "description": "Keep only agencies whose real website could be decoded (organic listings expose it; sponsored-only cards may not).",
            "default": false
          },
          "locationContains": {
            "title": "Location filter",
            "type": "string",
            "description": "Keep only agencies whose location matches this text, e.g. <code>London</code>, <code>TX</code>, <code>Singapore</code>, <code>India</code>. Checked against the card location, HQ address and every office."
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember agencies across runs and emit only NEW or CHANGED ones (rating, review count, hourly rate, team size or website change). Pair with an Apify Schedule to watch a directory for new entrants and rating moves.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitor memory. Use a distinct key per saved search so their states don't collide.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Residential proxies are REQUIRED - Clutch is protected by Cloudflare and blocks datacenter IPs. The default (Apify residential, US) pairs a fast HTTP lane with an anti-detect browser fallback that clears the challenge and reuses its clearance. You can also supply <b>Custom proxies</b> (your own premium residential or unblocker endpoint) - they are used as-is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Dump raw page diagnostics to the key-value store for troubleshooting selectors.",
            "default": false
          },
          "headful": {
            "title": "Headful browser",
            "type": "boolean",
            "description": "Run the fallback browser headful (under Xvfb) - clears Cloudflare's Turnstile far more reliably. On by default; set false to force headless.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}