{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Scraper: All-in-One (Profiles, Companies, Jobs, Posts)",
    "description": "[$2.00/1k Scrapes] 🔥 All LinkedIn data in one Actor 🔥 Paste any LinkedIn URLs or search by name/keyword: profiles, companies, jobs, posts and Ad Library ads, detected automatically. ✅ No login or cookies ✅ From $2/1k requests, $3.50/1k profiles ✅ Failed URLs never charged. Export JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "N7JXd32s7fWrRuB1D"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/true-data~linkedin-scraper-all-in-one/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-true-data-linkedin-scraper-all-in-one",
        "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/true-data~linkedin-scraper-all-in-one/runs": {
      "post": {
        "operationId": "runs-sync-true-data-linkedin-scraper-all-in-one",
        "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/true-data~linkedin-scraper-all-in-one/run-sync": {
      "post": {
        "operationId": "run-sync-true-data-linkedin-scraper-all-in-one",
        "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": "What to scrape",
            "enum": [
              "auto",
              "people_search",
              "job_search",
              "posts_from",
              "ads"
            ],
            "type": "string",
            "description": "Auto (default): paste LinkedIn URLs of any type. People search: find people by first + last name and get their full profiles. Job search: find job ads by keyword, location and filters. Posts from profiles / companies: get the posts of LinkedIn profiles or company pages. Ads: search LinkedIn's public Ad Library by advertiser, keyword, payer, countries and dates (fill in “Ad Library search” below).",
            "default": "auto"
          },
          "urls": {
            "title": "LinkedIn URLs",
            "type": "array",
            "description": "Mode “Auto”: paste any mix of LinkedIn URLs, one per line. The type is detected automatically: profiles (linkedin.com/in/…), companies (linkedin.com/company/…, /school/…, /showcase/…), jobs (linkedin.com/jobs/view/… or any jobs link with ?currentJobId=…) and posts (linkedin.com/posts/…, /feed/update/…, /pulse/… articles) and ads (linkedin.com/ad-library/detail/…). Mode “Posts from profiles / companies”: paste profile or company URLs; their posts are scraped. Unsupported and duplicate URLs are skipped and never charged.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Auto mode: stop after this many records in total (all types together); leave empty for all. REQUIRED in the other modes. People search, job search, posts from: total records for the run, split evenly across your searches or URLs; each search returns at most 1,000 records. Ads: total ads for the run (one search), up to 12,000 per run (500 Ad Library pages × 24 ads). Free Apify plan: up to 10 records in total across our LinkedIn Actors."
          },
          "searches": {
            "title": "People to search",
            "type": "array",
            "description": "One row per person: first name + last name (both required). Results are split evenly across searches up to Max results.",
            "items": {
              "type": "object",
              "properties": {
                "firstName": {
                  "title": "First name",
                  "type": "string",
                  "description": "First name, e.g. John",
                  "editor": "textfield",
                  "minLength": 1,
                  "maxLength": 60
                },
                "lastName": {
                  "title": "Last name",
                  "type": "string",
                  "description": "Last name, e.g. Smith",
                  "editor": "textfield",
                  "minLength": 1,
                  "maxLength": 60
                }
              },
              "required": [
                "firstName",
                "lastName"
              ],
              "additionalProperties": false
            }
          },
          "jobSearch": {
            "title": "Job search",
            "type": "object",
            "description": "Location is required for job search (a city, region or country, e.g. Berlin, United States). Everything else is optional.",
            "properties": {
              "keyword": {
                "title": "Keyword",
                "type": "string",
                "description": "Job title, skill or company, e.g. python developer",
                "editor": "textfield",
                "maxLength": 200
              },
              "location": {
                "title": "Location",
                "type": "string",
                "description": "City, region or country, e.g. Berlin",
                "editor": "textfield",
                "maxLength": 100
              },
              "country": {
                "title": "Country code",
                "type": "string",
                "description": "Optional 2-letter country code, e.g. DE",
                "editor": "textfield",
                "pattern": "^[A-Za-z]{2}$"
              },
              "timeRange": {
                "title": "Date posted",
                "type": "string",
                "description": "How recent the job ads are",
                "editor": "select",
                "enum": [
                  "Past 24 hours",
                  "Past week",
                  "Past month",
                  "Any time"
                ]
              },
              "jobType": {
                "title": "Job type",
                "type": "string",
                "description": "Employment type",
                "editor": "select",
                "enum": [
                  "Full-time",
                  "Part-time",
                  "Contract",
                  "Temporary",
                  "Volunteer"
                ]
              },
              "experienceLevel": {
                "title": "Experience level",
                "type": "string",
                "description": "Seniority",
                "editor": "select",
                "enum": [
                  "Internship",
                  "Entry level",
                  "Associate",
                  "Mid-Senior level",
                  "Director",
                  "Executive"
                ]
              },
              "remote": {
                "title": "On-site / remote",
                "type": "string",
                "description": "Workplace type",
                "editor": "select",
                "enum": [
                  "On-site",
                  "Remote",
                  "Hybrid"
                ]
              },
              "company": {
                "title": "Company",
                "type": "string",
                "description": "Only jobs at this company, e.g. Microsoft",
                "editor": "textfield",
                "maxLength": 100
              },
              "locationRadius": {
                "title": "Distance",
                "type": "string",
                "description": "Search radius around the location",
                "editor": "select",
                "enum": [
                  "Exact location",
                  "5 miles (8 km)",
                  "10 miles (16 km)",
                  "25 miles (40 km)",
                  "50 miles (80 km)"
                ]
              }
            },
            "additionalProperties": false
          },
          "postsFrom": {
            "title": "Posts from (date)",
            "type": "string",
            "description": "Only posts published on or after this date. Leave empty for the most recent posts."
          },
          "postsTo": {
            "title": "Posts to (date)",
            "type": "string",
            "description": "Only posts published on or before this date (inclusive)."
          },
          "adSearch": {
            "title": "Ad Library search",
            "type": "object",
            "description": "Ad Library search filters (used only in mode “Ads”).",
            "properties": {
              "advertiser": {
                "title": "Advertiser",
                "type": "string",
                "editor": "textfield",
                "description": "Company or person running the ads, e.g. “Microsoft”. LinkedIn matches similar names too."
              },
              "keyword": {
                "title": "Keyword",
                "type": "string",
                "editor": "textfield",
                "description": "Word or phrase in the ad, e.g. “AI agents”."
              },
              "payer": {
                "title": "Paid for by",
                "type": "string",
                "editor": "textfield",
                "description": "Entity that paid for the ad (often an agency)."
              },
              "countries": {
                "title": "Countries",
                "type": "array",
                "editor": "stringList",
                "description": "Two-letter country codes where the ad was shown, e.g. US, GB, DE. Empty = all countries.",
                "items": {
                  "type": "string"
                }
              },
              "dateRange": {
                "title": "Date range",
                "type": "string",
                "editor": "select",
                "description": "When the ad ran. “Custom” uses the start/end dates below (LinkedIn covers about the last 12 months).",
                "enum": [
                  "all",
                  "last-30-days",
                  "current-month",
                  "current-year",
                  "last-year",
                  "custom"
                ],
                "enumTitles": [
                  "All time",
                  "Last 30 days",
                  "Current month",
                  "Current year",
                  "Last year",
                  "Custom"
                ]
              },
              "startDate": {
                "title": "Start date (custom)",
                "type": "string",
                "editor": "datepicker",
                "dateType": "absolute",
                "description": "YYYY-MM-DD, with date range “Custom”."
              },
              "endDate": {
                "title": "End date (custom)",
                "type": "string",
                "editor": "datepicker",
                "dateType": "absolute",
                "description": "YYYY-MM-DD, with date range “Custom”."
              },
              "searchUrl": {
                "title": "Ad Library search URL",
                "type": "string",
                "editor": "textfield",
                "description": "Or paste a https://www.linkedin.com/ad-library/search?… URL; its filters replace the fields above."
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}