{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Post Search Scraper - Posts by Keyword, No Cookies",
    "description": "Search public LinkedIn posts by keyword, author and date. Get post text, authors, publication dates, media links, engagement counts and public comment previews, ready to export as JSON, CSV or Excel. No LinkedIn login or cookies required.",
    "version": "0.1",
    "x-build-id": "MujJrwdyDi9btj0WR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/headofactors~linkedin-post-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-headofactors-linkedin-post-search-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/headofactors~linkedin-post-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-headofactors-linkedin-post-search-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/headofactors~linkedin-post-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-headofactors-linkedin-post-search-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": {
          "searchQueries": {
            "title": "Search queries",
            "maxItems": 100,
            "type": "array",
            "description": "Public post search phrases. Simple phrases require every query word in the post text or URL; advanced syntax follows the public search index.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "maxPosts": {
            "title": "Maximum number of posts to scrape per each search query",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum posts per query. Default 20. Zero and values above 100 are capped at 100 with a warning."
          },
          "postedLimit": {
            "title": "Posted Limit",
            "enum": [
              "any",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Keep only posts within this age window. Applied together with postedLimitDate. Public indexing can delay discovery of recent posts."
          },
          "postedLimitDate": {
            "title": "Posted Limit Date",
            "type": "string",
            "description": "Earliest allowed publication date, applied together with postedLimit. Accepts an ISO date, ISO timestamp, or a string containing Unix milliseconds."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Relevance or date within each discovered public index page; not a complete LinkedIn-wide newest-first search."
          },
          "authorUrls": {
            "title": "Profile or Company URLs who posted",
            "maxItems": 10,
            "type": "array",
            "description": "List of LinkedIn profile or company URLs to scrape. Example: `https://www.linkedin.com/in/williamhgates` will fetch posted or re-posted content by Bill Gates.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "authorsCompanies": {
            "title": "Companies where authors work",
            "maxItems": 20,
            "type": "array",
            "description": "Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "mentioningMember": {
            "title": "Mentioning member",
            "maxItems": 10,
            "type": "array",
            "description": "Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "mentioningCompany": {
            "title": "Mentioning company",
            "type": "array",
            "description": "Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "videos",
              "images",
              "jobs",
              "live_videos",
              "documents",
              "collaborative_articles"
            ],
            "type": "string",
            "description": "Filter public posts by images, videos or documents. Jobs, live videos and collaborative articles are accepted with a warning because they cannot be recognized reliably."
          },
          "authorsIndustryId": {
            "title": "Authors industry ID",
            "maxItems": 20,
            "type": "array",
            "description": "Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "authorKeywords": {
            "title": "Author keywords",
            "type": "string",
            "description": "Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field."
          },
          "profileScraperMode": {
            "title": "Profile Scraper Mode",
            "enum": [
              "short",
              "main"
            ],
            "type": "string",
            "description": "Short returns visible public author fields. Main is accepted with a warning and returns the same public fields; expanded profiles are unavailable.",
            "default": "short"
          },
          "startPage": {
            "title": "Start Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "First public index page to request, starting at 1. Public index pages contain seven candidate links.",
            "default": 1
          },
          "scrapePages": {
            "title": "Number of pages to scrape",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Number of public index pages per query; seven links per page. Zero or absent uses 15 pages."
          },
          "scrapeReactions": {
            "title": "Scrape Reactions",
            "type": "boolean",
            "description": "Accepted for compatibility. Individual reaction participants are unavailable on public post pages; requesting them produces a warning."
          },
          "maxReactions": {
            "title": "Maximum number of reactions to scrape per post",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Accepted for compatibility. Individual reactions are unavailable and no reaction records are delivered or charged."
          },
          "reactionsProfileScraperMode": {
            "title": "Profile Scraper Mode for reactions",
            "enum": [
              "short",
              "main"
            ],
            "type": "string",
            "description": "Accepted for compatibility. Individual reaction participants and their expanded profiles are unavailable.",
            "default": "short"
          },
          "postNestedReactions": {
            "title": "Post nested reactions (legacy, not recommended to enable)",
            "type": "boolean",
            "description": "Accepted for compatibility. Individual reaction records are unavailable."
          },
          "scrapeComments": {
            "title": "Scrape Comments",
            "type": "boolean",
            "description": "Return the public comment preview, up to ten comments per post. This does not return the complete discussion."
          },
          "commentsPostedLimit": {
            "title": "Comments Posted Limit (filter)",
            "enum": [
              "any",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Fetch comments no older than X time. Options: '1h', '24h', 'week', 'month'."
          },
          "maxComments": {
            "title": "Maximum number of comments to scrape per post",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum public preview comments per post. Default 10; zero and values above 10 are limited to the public preview of at most ten."
          },
          "commentsProfileScraperMode": {
            "title": "Profile Scraper Mode for comments",
            "enum": [
              "short",
              "main"
            ],
            "type": "string",
            "description": "Short returns the public commenter name. Main is accepted with a warning; expanded commenter profiles are unavailable.",
            "default": "short"
          },
          "postNestedComments": {
            "title": "Post nested comments (legacy, not recommended to enable)",
            "type": "boolean",
            "description": "Keep preview comments in each post instead of separate dataset records. Separate records require a verifiable source comment ID."
          },
          "cursor": {
            "title": "Continuation cursor",
            "maxLength": 2000000,
            "type": "string",
            "description": "Opaque continuation token from next_cursor. Keep all other input fields unchanged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}