{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Post Scraper",
    "description": "Scrape public LinkedIn posts from company pages, profiles, post links, searches and keywords with no login or cookies. Full text, author, media, reactions and comments. Date and type filters, auto proxy fallback. Export JSON, CSV or Excel.",
    "version": "1.2",
    "x-build-id": "O833TY3quieTmgnf0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_minds~linkedin-post-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_minds-linkedin-post-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/data_minds~linkedin-post-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_minds-linkedin-post-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/data_minds~linkedin-post-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_minds-linkedin-post-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": {
          "urls": {
            "title": "🔗 LinkedIn URLs",
            "type": "array",
            "description": "Company pages, school pages, profiles (/in/...), single post links, or LinkedIn post-search links. One per line - add as many as you like.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Find public posts about a topic or hashtag, for example `generative ai` or `#worktrendindex`. Each keyword is collected on its own.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max posts per input",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum posts collected for each URL and each keyword. 3 inputs with 20 = up to 60 posts. A single post link always gives one post.",
            "default": 10
          },
          "scrapeUntil": {
            "title": "📅 Only posts newer than",
            "pattern": "^((\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Skip posts older than this. Pick a date such as `2026-01-31`, or type a relative value such as `7 days`, `2 weeks`, `3 months` or `1 year`. Leave empty for no date limit."
          },
          "deepScrape": {
            "title": "✅ Open every post for full details",
            "type": "boolean",
            "description": "Adds comments, exact publish time, full text and related-post details. Turn off for a faster, lighter run.",
            "default": true
          },
          "numComments": {
            "title": "🔢 Comments per post",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Comments to collect for each post (needs the option above). LinkedIn shows only about 10 comments per post to visitors, so more than that is not available.",
            "default": 5
          },
          "fetchDocumentDetails": {
            "title": "✅ Get document and carousel pages",
            "type": "boolean",
            "description": "For document and carousel posts, adds every page as an image plus the text of the document.",
            "default": false
          },
          "rawData": {
            "title": "✅ Include raw data",
            "type": "boolean",
            "description": "Adds the unprocessed post data under `raw`. Useful to look for a value that is not in the normal output.",
            "default": false
          },
          "discoverMorePosts": {
            "title": "🔧 Look for older posts",
            "type": "boolean",
            "description": "LinkedIn shows visitors only the newest posts of a page. When on, the actor also looks for older posts of the same author so the maximum above can be reached. Turn off for newest posts only (faster).",
            "default": true
          },
          "includeGated": {
            "title": "✅ Keep posts hidden from visitors",
            "type": "boolean",
            "description": "For a post link that LinkedIn hides without sign-in, add a row with the link, date and a status instead of dropping it. These rows are free.",
            "default": true
          },
          "postTypes": {
            "title": "🎯 Post types",
            "type": "array",
            "description": "Keep only these kinds of posts. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video",
                "article",
                "document",
                "reshare",
                "unknown"
              ],
              "enumTitles": [
                "Text",
                "Image",
                "Video",
                "Article",
                "Document / carousel",
                "Reshare",
                "Unknown"
              ]
            }
          },
          "authorTypes": {
            "title": "🎯 Author types",
            "type": "array",
            "description": "Keep only posts by people or by companies. Empty = both.",
            "items": {
              "type": "string",
              "enum": [
                "person",
                "company"
              ],
              "enumTitles": [
                "Person",
                "Company"
              ]
            }
          },
          "includeReposts": {
            "title": "✅ Include reposts",
            "type": "boolean",
            "description": "Turn off to drop posts that are reposts of someone else's post.",
            "default": true
          },
          "includeProfileActivity": {
            "title": "✅ Include profile activity",
            "type": "boolean",
            "description": "For profile links, also collect posts the person reposted or reacted to, not only their own posts.",
            "default": false
          },
          "minReactions": {
            "title": "🎯 Minimum reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many reactions."
          },
          "minComments": {
            "title": "🎯 Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many comments."
          },
          "mustContain": {
            "title": "🎯 Text must contain (any)",
            "type": "array",
            "description": "Keep posts whose text contains at least one of these words or phrases. Not case sensitive.",
            "items": {
              "type": "string"
            }
          },
          "mustNotContain": {
            "title": "🎯 Text must not contain",
            "type": "array",
            "description": "Drop posts whose text contains any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "🎯 Hashtags (any)",
            "type": "array",
            "description": "Keep posts that use at least one of these hashtags, with or without the # sign.",
            "items": {
              "type": "string"
            }
          },
          "saveMedia": {
            "title": "📦 Download media files",
            "type": "boolean",
            "description": "Saves post images, videos and document pages to the run's storage and adds their links to each post. Files over 50 MB are skipped.",
            "default": false
          },
          "maxConcurrency": {
            "title": "⚡ Parallel requests",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many pages are loaded at the same time.",
            "default": 4
          },
          "requestDelaySeconds": {
            "title": "⏳ Pause between requests (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum pause between two requests to the same site. Raise it when pages are refused.",
            "default": 1
          },
          "maxRetries": {
            "title": "🔁 Retries per page",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a page that failed is tried again.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional network settings for the run. Leave them off to use the defaults."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}