{
  "openapi": "3.0.1",
  "info": {
    "title": "Clutch Scraper Pro",
    "description": "The most comprehensive and reliable Clutch scraper on Apify marketplace just by Link. Extract complete company profiles with 50+ data fields, including reviews, intelligent deduplication, KV caching, and blazing-fast performance.",
    "version": "0.0",
    "x-build-id": "q1JpU13lOQDU7dhv5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/procoders~clutch-scraper-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-procoders-clutch-scraper-pro",
        "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/procoders~clutch-scraper-pro/runs": {
      "post": {
        "operationId": "runs-sync-procoders-clutch-scraper-pro",
        "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/procoders~clutch-scraper-pro/run-sync": {
      "post": {
        "operationId": "run-sync-procoders-clutch-scraper-pro",
        "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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "List of Clutch.co URLs to scrape. Supports: company profiles (/profile/company-name), listing pages (/web-developers), filtered searches",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "scrapeMode": {
            "title": "Scraping Mode",
            "enum": [
              "LIST",
              "LIST_DETAIL",
              "LIST_WEBSITES"
            ],
            "type": "string",
            "description": "Choose the depth of data extraction. LIST_DETAIL gives you all 50+ fields including reviews, industries, client focus, etc.",
            "default": "LIST_DETAIL"
          },
          "includeReviews": {
            "title": "Include Reviews",
            "type": "boolean",
            "description": "Extract client reviews from company profiles (only in LIST_DETAIL mode)",
            "default": false
          },
          "maxReviewsPerCompany": {
            "title": "Max Reviews Per Company",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Limit the number of reviews to extract per company (0 = unlimited)",
            "default": 10
          },
          "reviewSortBy": {
            "title": "Sort Reviews By",
            "enum": [
              "relevance",
              "recent",
              "ratingHighToLow",
              "ratingLowToHigh"
            ],
            "type": "string",
            "description": "Choose the order in which to scrape reviews",
            "default": "relevance"
          },
          "includePortfolio": {
            "title": "Include Portfolio",
            "type": "boolean",
            "description": "Extract portfolio items and case studies from company profiles",
            "default": true
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 0,
            "type": "integer",
            "description": "Total number of unique companies to extract after deduplication (0 = unlimited). Note: Clutch shows duplicates across pages, so you may need to process more pages to reach your target.",
            "default": 0
          },
          "maxPagesPerSearch": {
            "title": "Max Pages Per Search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listing pages to process per search URL",
            "default": 0
          },
          "maxRequestsPerCrawl": {
            "title": "Max Requests Per Crawl",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total HTTP requests (for debugging or limiting scope)",
            "default": 0
          },
          "useHeadless": {
            "title": "Use Headless Browser",
            "type": "boolean",
            "description": "Run browser in headless mode (faster) or with GUI (for debugging)",
            "default": true
          },
          "followRedirects": {
            "title": "Follow Redirects for Real Domains",
            "type": "boolean",
            "description": "When domain extraction fails (e.g., ppc.clutch.co), follow the actual redirect to find the real company website. This is slower but gives accurate domains.",
            "default": false
          },
          "exportFormat": {
            "title": "Export Format",
            "enum": [
              "JSON",
              "CSV",
              "EXCEL",
              "XML"
            ],
            "type": "string",
            "description": "Choose the output format. CSV/Excel include all fields as columns with perfect formatting, arrays expanded to separate columns (e.g., services_SEO: 25%)",
            "default": "JSON"
          },
          "deduplicateResults": {
            "title": "Deduplicate Results",
            "type": "boolean",
            "description": "Remove duplicate companies from results (based on URL)",
            "default": true
          },
          "clearDataset": {
            "title": "Clear Dataset Before Run",
            "type": "boolean",
            "description": "Remove all previous results before starting (useful for development)",
            "default": false
          },
          "extendOutputFunction": {
            "title": "Extend Output Function",
            "type": "string",
            "description": "Custom JavaScript function to add extra data to each result. Receives ($, data) parameters."
          },
          "excludePortfolio": {
            "title": "Exclude Portfolio (Deprecated)",
            "type": "boolean",
            "description": "Legacy parameter - use includePortfolio instead",
            "default": false
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Enable Apify proxy to avoid blocking. Requires Apify account with proxy access.",
            "default": false
          },
          "apifyProxyGroups": {
            "title": "Proxy Groups",
            "type": "array",
            "description": "Apify proxy groups to use. Common options: RESIDENTIAL, DATACENTER",
            "default": [
              "RESIDENTIAL"
            ],
            "items": {
              "type": "string"
            }
          },
          "apifyProxyCountry": {
            "title": "Proxy Country",
            "type": "string",
            "description": "Country code for proxy location (e.g., 'US', 'GB', 'DE'). Leave empty for automatic selection."
          },
          "useProfileCache": {
            "title": "Use Profile Cache",
            "type": "boolean",
            "description": "Cache parsed detail profiles in Key-Value Store to avoid re-parsing across runs.",
            "default": false
          },
          "profileCacheTtlDays": {
            "title": "Cache TTL (days)",
            "type": "integer",
            "description": "Number of days after which cached profiles are considered stale (0 = never expire).",
            "default": 0
          },
          "profileCacheVersion": {
            "title": "Cache Version",
            "type": "string",
            "description": "Bump this string to invalidate previously cached items after schema changes.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}