{
  "openapi": "3.0.1",
  "info": {
    "title": "Linkedin Post Search Scraper (No Cookies)",
    "description": "Search LinkedIn Posts with advanced filters by target profiles or companies. No cookies or account required.",
    "version": "0.0",
    "x-build-id": "HD5AykIljhQwOfOVl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/harvestapi~linkedin-post-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-harvestapi-linkedin-post-search",
        "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/harvestapi~linkedin-post-search/runs": {
      "post": {
        "operationId": "runs-sync-harvestapi-linkedin-post-search",
        "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/harvestapi~linkedin-post-search/run-sync": {
      "post": {
        "operationId": "run-sync-harvestapi-linkedin-post-search",
        "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": 10000,
            "type": "array",
            "description": "Queries to search LinkedIn posts. The same query as you would use in the LinkedIn search bar.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Maximum number of posts to scrape per each search query",
            "type": "integer",
            "description": "Maximum number of posts to scrape per each search query. If you set this to 0, it will scrape all posts."
          },
          "postedLimit": {
            "title": "Posted Limit",
            "enum": [
              "any",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Fetch posts no older than X time. Options: '1h', '24h', 'week', 'month'."
          },
          "postedLimitDate": {
            "title": "Posted Limit Date",
            "type": "string",
            "description": "Scrape posts from now up to and including this date. It supports the [Date time string format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format). For example, \"2011-10-10\", or \"2011-10-10T14:48:00.000+09:00\" or a timestamp: \"628021800000\""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Sort by 'relevance' or 'date'."
          },
          "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"
            }
          },
          "authorsCompanies": {
            "title": "Companies where authors work",
            "maxItems": 20,
            "type": "array",
            "description": "Scrape posts of profile-authors who assigned to LinkedIn Company Names of these companies. Example: `Google` will fetch posts of Google employees or ex-employees in some cases.",
            "items": {
              "type": "string"
            }
          },
          "mentioningMember": {
            "title": "Mentioning member",
            "maxItems": 10,
            "type": "array",
            "description": "List of LinkedIn profile URLs of members mentioned in posts. Example: `https://www.linkedin.com/in/williamhgates` will fetch posts mentioning Bill Gates.",
            "items": {
              "type": "string"
            }
          },
          "mentioningCompany": {
            "title": "Mentioning company",
            "type": "array",
            "description": "List of LinkedIn Company Names mentioned in posts. Example: `https://www.linkedin.com/company/google` will fetch posts mentioning Google.",
            "items": {
              "type": "string"
            }
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "videos",
              "images",
              "jobs",
              "live_videos",
              "documents",
              "collaborative_articles"
            ],
            "type": "string",
            "description": "Filter posts by content type. For example, if you choose 'Videos', it will scrape only posts containing videos."
          },
          "authorsIndustryId": {
            "title": "Authors industry ID",
            "maxItems": 20,
            "type": "array",
            "description": "Scrape posts of profile-authors who assigned to LinkedIn Industry IDs of these industries. Full list: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv",
            "items": {
              "type": "string"
            }
          },
          "authorKeywords": {
            "title": "Author keywords",
            "type": "string",
            "description": "Scrape posts of profile-authors whose profiles contain at least one of these keywords in the headline or job title sections."
          },
          "profileScraperMode": {
            "title": "Profile Scraper Mode",
            "enum": [
              "short",
              "main"
            ],
            "type": "string",
            "description": "Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data.",
            "default": "short"
          },
          "startPage": {
            "title": "Start Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The page number to start scraping from. ",
            "default": 1
          },
          "scrapePages": {
            "title": "Number of pages to scrape",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "The number of search pages to scrape. Each page contains 100 posts"
          },
          "scrapeReactions": {
            "title": "Scrape Reactions",
            "type": "boolean",
            "description": "Scrape reactions of posts."
          },
          "maxReactions": {
            "title": "Maximum number of reactions to scrape per post",
            "type": "integer",
            "description": "Maximum number of reactions to scrape per post. Default is 5."
          },
          "reactionsProfileScraperMode": {
            "title": "Profile Scraper Mode for reactions",
            "enum": [
              "short",
              "main"
            ],
            "type": "string",
            "description": "Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data.",
            "default": "short"
          },
          "postNestedReactions": {
            "title": "Post nested reactions (legacy, not recommended to enable)",
            "type": "boolean",
            "description": "Whether to add reactions items inside post items. In a case of hundreds of reactions, the Actor might hit the max item size limit and won't be able to save a post."
          },
          "scrapeComments": {
            "title": "Scrape Comments",
            "type": "boolean",
            "description": "Scrape comments of posts."
          },
          "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",
            "type": "integer",
            "description": "Maximum number of comments to scrape per post."
          },
          "commentsProfileScraperMode": {
            "title": "Profile Scraper Mode for comments",
            "enum": [
              "short",
              "main"
            ],
            "type": "string",
            "description": "Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data.",
            "default": "short"
          },
          "postNestedComments": {
            "title": "Post nested comments (legacy, not recommended to enable)",
            "type": "boolean",
            "description": "Whether to add comments items inside post items. In a case of hundreds of comments, the Actor might hit the max item size limit and won't be able to save a post."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}