{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Posts Scraper — Search, Comments, Reactions & Authors",
    "description": "Search and scrape public LinkedIn posts by keywords, hashtags, authors, or companies without cookies or account login. Extract full post content, author profiles, likes, shares, reactions, and nested comment threads with 100% genuine live data.",
    "version": "0.0",
    "x-build-id": "qjuUf5PMaVJpjHXLf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilot~linkedin-posts-scraper-search-comments-reactions-authors/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilot-linkedin-posts-scraper-search-comments-reactions-authors",
        "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/scrapepilot~linkedin-posts-scraper-search-comments-reactions-authors/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilot-linkedin-posts-scraper-search-comments-reactions-authors",
        "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/scrapepilot~linkedin-posts-scraper-search-comments-reactions-authors/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilot-linkedin-posts-scraper-search-comments-reactions-authors",
        "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": [
          "searchQueries"
        ],
        "properties": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "List of search queries to find posts on LinkedIn (e.g. 'b2b sales', 'Hiring software engineer', 'AI agents'). Supports boolean operators (AND, OR, NOT).",
            "items": {
              "type": "string"
            }
          },
          "authorUrls": {
            "title": "Author Profile / Company URLs",
            "type": "array",
            "description": "Optional list of LinkedIn profile or company URLs of users who posted or re-posted content (e.g. https://www.linkedin.com/in/satyanadella, https://www.linkedin.com/company/google).",
            "items": {
              "type": "string"
            }
          },
          "authorsCompanies": {
            "title": "Author Companies",
            "type": "array",
            "description": "Filter posts created by authors working at specific companies (e.g. 'Google', 'Microsoft', 'Amazon', 'Meta').",
            "items": {
              "type": "string"
            }
          },
          "authorsCompanyPublicIdentifiers": {
            "title": "Author Company Slugs",
            "type": "array",
            "description": "Company public slugs or identifiers (e.g. 'google', 'microsoft', 'amazon', 'meta').",
            "items": {
              "type": "string"
            }
          },
          "postedLimit": {
            "title": "Posted Time Limit",
            "enum": [
              "all",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Fetch posts no older than selected timeframe.",
            "default": "all"
          },
          "postedLimitDate": {
            "title": "Posted Limit Date",
            "type": "string",
            "description": "Scrape posts from now up to and including this date (e.g. '2025-01-01' or '2025-01-01T00:00:00Z')."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Sort search results by relevance or newest publication date first.",
            "default": "relevance"
          },
          "maxPosts": {
            "title": "Maximum Posts per Query",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of posts to scrape per search query. Set to 0 to scrape all available posts (up to 400-500 per query).",
            "default": 100
          },
          "startPage": {
            "title": "Start Page Number",
            "minimum": 1,
            "type": "integer",
            "description": "Results page number to begin scraping from (default 1).",
            "default": 1
          },
          "scrapePages": {
            "title": "Pages to Scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Number of search pages to paginate through if maxPosts is set to 0.",
            "default": 5
          },
          "scrapeComments": {
            "title": "Scrape Post Comments",
            "type": "boolean",
            "description": "Enable to extract comments on posts. Comments will also be charged as separate comment events.",
            "default": false
          },
          "maxComments": {
            "title": "Max Comments per Post",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of comments to extract per post (default 10).",
            "default": 10
          },
          "scrapeReactions": {
            "title": "Scrape Reactions",
            "type": "boolean",
            "description": "Enable to extract engagement reactions to posts.",
            "default": false
          },
          "maxReactions": {
            "title": "Max Reactions per Post",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of reaction entries to extract per post.",
            "default": 10
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy configuration. Residential proxies are recommended for high-volume searches.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}