{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Profile Finder via Google",
    "description": "Find public LinkedIn profiles that match a plain-language description via Google search. Get profile URL, name, headline and snippet per lead, plus public location when shown. No login. Pay per lead.",
    "version": "0.20",
    "x-build-id": "wopgBG8RubA74Ol6E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quaking_pail~google-serp-scraper-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quaking_pail-google-serp-scraper-lead-finder",
        "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/quaking_pail~google-serp-scraper-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-quaking_pail-google-serp-scraper-lead-finder",
        "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/quaking_pail~google-serp-scraper-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-quaking_pail-google-serp-scraper-lead-finder",
        "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": [
          "profile_description"
        ],
        "properties": {
          "profile_description": {
            "title": "Profile Description",
            "type": "string",
            "description": "Description of the profile you're looking for (e.g., 'marketing manager startup')"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Optional location to target (e.g., 'Paris, France')"
          },
          "exclude_keywords": {
            "title": "Exclude Keywords",
            "type": "array",
            "description": "Optional keywords to exclude from search. Page 1 uses Google's -keyword operator. Google returns no later pages for such queries, so pages 2+ are fetched without the operators and results whose title, snippet or profile URL contains an excluded word or phrase (case-insensitive, whole words) are dropped and not charged. The operator-free list starts at the page that came back empty, so its own first page is skipped and runs with exclusions may return fewer leads.",
            "items": {
              "type": "string"
            }
          },
          "max_results": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of leads to extract (one dataset row per lead). Values above 1000 are capped to 1000.",
            "default": 10
          },
          "scrape_profiles": {
            "title": "Scrape LinkedIn Profiles",
            "type": "boolean",
            "description": "Visit each public LinkedIn profile to add name, headline and location. Each lead is still one row; if LinkedIn shows a login wall, the row keeps the search snippet only.",
            "default": true
          },
          "search_engine_strategy": {
            "title": "Search Engine Strategy",
            "enum": [
              "google_only",
              "bing_only",
              "rotation",
              "google_with_fallback"
            ],
            "type": "string",
            "description": "Which search engine to use. Google (GOOGLE_SERP proxy) first, Bing as fallback: Bing is used automatically when Google blocks the run or finds no LinkedIn profiles. Bing is currently unreliable: it answers automated requests with results unrelated to the query. Bing Only is kept for compatibility but now runs like the default (Google first, Bing as fallback) and logs a warning. Since 0.20, Rotate also starts with Google and uses Bing only as a fallback.",
            "default": "google_with_fallback"
          },
          "use_direct_linkedin": {
            "title": "Use Direct LinkedIn URLs",
            "type": "boolean",
            "description": "Whether to use direct LinkedIn URLs instead of search",
            "default": false
          },
          "linkedin_urls": {
            "title": "LinkedIn Profile URLs",
            "type": "array",
            "description": "Direct LinkedIn profile URLs to scrape (if use_direct_linkedin is true)",
            "items": {
              "type": "string"
            }
          },
          "proxy_country": {
            "title": "Proxy Country",
            "enum": [
              "US",
              "UK",
              "FR",
              "DE",
              "CA",
              "AU",
              "JP",
              "SG",
              "NL",
              "BR",
              "IN"
            ],
            "type": "string",
            "description": "Country code for proxy location",
            "default": "US"
          },
          "proxy_groups": {
            "title": "Proxy Groups",
            "type": "array",
            "description": "Apify Proxy groups for Bing search pages and LinkedIn profile pages",
            "items": {
              "type": "string"
            }
          },
          "google_proxy_groups": {
            "title": "Google Proxy Groups",
            "type": "array",
            "description": "Optional Apify Proxy groups for Google search pages. Leave empty to use GOOGLE_SERP, the Apify Google SERP proxy built for Google result pages and billed per request (recommended). Other groups, such as datacenter proxies, are often rate-limited by Google (HTTP 429).",
            "items": {
              "type": "string"
            }
          },
          "timezone": {
            "title": "Browser Timezone",
            "enum": [
              "America/New_York",
              "America/Los_Angeles",
              "America/Chicago",
              "Europe/London",
              "Europe/Paris",
              "Europe/Berlin",
              "Asia/Tokyo",
              "Asia/Singapore",
              "Australia/Sydney"
            ],
            "type": "string",
            "description": "Ignored since 0.20 (no browser). Kept so existing API calls keep working.",
            "default": "America/New_York"
          },
          "max_captcha_retries": {
            "title": "Max CAPTCHA Retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per search page (with a new proxy IP each time) before it counts as blocked and the run switches search engines. Google pages through GOOGLE_SERP get at least 5 retries.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}