{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Posts Scraper",
    "description": "LinkedIn Posts Scraper SD - LinkedIn Posts Scraper is a social media tool that extracts public LinkedIn posts from profiles, companies, post URLs and keyword searches: text, date, author, images, video, documents, reactions, comments. No login.",
    "version": "1.0",
    "x-build-id": "BR7nt0R0def5cOBla"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~linkedin-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-linkedin-posts-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/neuro-scraper~linkedin-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-linkedin-posts-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/neuro-scraper~linkedin-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-linkedin-posts-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": {
          "targetUrls": {
            "title": "LinkedIn profile, company or post URLs",
            "type": "array",
            "description": "One per line. Profile (https://www.linkedin.com/in/satyanadella or just satyanadella), company (https://www.linkedin.com/company/google), single post (https://www.linkedin.com/posts/... or https://www.linkedin.com/feed/update/urn:li:activity:7514069962865500160/) or article (https://www.linkedin.com/pulse/...) links.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search posts by keyword (optional)",
            "type": "array",
            "description": "Keywords to find public LinkedIn posts, one search per line, e.g. b2b sales or product",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Max posts per profile, company or search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each profile, company, keyword search or mention search after this many posts. A LinkedIn profile shows about 8 recent public posts (plus its articles) and a company page about 10 - turn on Find more posts to go further.",
            "default": 10
          },
          "maxItems": {
            "title": "Max posts in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop the whole run after this many posts.",
            "default": 50
          },
          "postedLimit": {
            "title": "Posted within",
            "enum": [
              "any",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Only posts published (or reposted) within this time. Checked against each post's exact date; keyword searches look only in this time window.",
            "default": "any"
          },
          "postedLimitDate": {
            "title": "Posted on or after (optional)",
            "type": "string",
            "description": "Only posts published on or after this date, e.g. 2026-09-01. Applied together with \"Posted within\"."
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Keep posts the profile or company reposted without adding text (\"X reposted this\"). The row shows the original post and the reposter in repostedBy.",
            "default": true
          },
          "includeQuotePosts": {
            "title": "Include quote posts",
            "type": "boolean",
            "description": "Keep posts that share another post with added text. The shared original is in resharedPost.",
            "default": true
          },
          "includeArticles": {
            "title": "Include articles",
            "type": "boolean",
            "description": "Also return the LinkedIn articles listed on a profile (\"Articles by ...\") and article links found by searches, as rows of type \"article\".",
            "default": true
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "text",
              "images",
              "videos",
              "documents",
              "articles"
            ],
            "type": "string",
            "description": "Keep only posts with this kind of content (checked on each post).",
            "default": "all"
          },
          "scrapePostDetails": {
            "title": "Open each post page",
            "type": "boolean",
            "description": "Read every post's own page for the exact date, the full text, the video file and its transcript and the author's follower count (one extra request per post). Posts found by URL or search are always read this way.",
            "default": false
          },
          "scrapeComments": {
            "title": "Scrape comments",
            "type": "boolean",
            "description": "Add the comments LinkedIn shows to logged-out visitors (the first ~10 per post: text, author, date, reactions). Opens each post page.",
            "default": false
          },
          "maxComments": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Comments per post, up to what LinkedIn shows logged out (about 10; the rest is behind sign-in).",
            "default": 10
          },
          "commentsPostedLimit": {
            "title": "Comments posted within",
            "enum": [
              "any",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Only comments written within this time.",
            "default": "any"
          },
          "fetchDocumentDetails": {
            "title": "Fetch document details",
            "type": "boolean",
            "description": "For document (PDF carousel) posts, also read the document's manifest for the PDF link (transcribedDocumentUrl) and page images. One small extra request per document.",
            "default": false
          },
          "searchMoreWithGoogle": {
            "title": "Find more posts (optional)",
            "type": "boolean",
            "description": "When a profile or company page shows fewer posts than Max posts (a logged-out page shows about 8-10), search for more of its public posts and open each one, until Max posts is reached.",
            "default": false
          },
          "includeRawData": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Add the page's own schema.org data for each post (field raw) - for advanced use.",
            "default": false
          },
          "urls": {
            "title": "More URLs (optional)",
            "type": "array",
            "description": "Same as LinkedIn URLs - an extra list, handy when you paste from another tool.",
            "items": {
              "type": "string"
            }
          },
          "mentioningMember": {
            "title": "Posts mentioning a person or company (optional)",
            "type": "array",
            "description": "LinkedIn profile or company URLs (or names). Returns public posts that mention them (the mention tag or the name in the text). Max posts applies per entry.",
            "items": {
              "type": "string"
            }
          },
          "authorKeywords": {
            "title": "Author keywords (optional)",
            "type": "array",
            "description": "Keep only posts whose author name or headline contains one of these words (e.g. CEO, recruiter, Microsoft).",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort keyword searches by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "relevance = best matches first; date = newest posts first (the posts found for each keyword are returned newest first).",
            "default": "relevance"
          },
          "scrapeUntil": {
            "title": "Scrape until date (optional)",
            "type": "string",
            "description": "Same as Posted on or after: stop at posts older than this date."
          },
          "deepScrape": {
            "title": "Deep scrape (alias)",
            "type": "boolean",
            "description": "Same as Open each post: read every post's own page for the full text, exact date, media and counts.",
            "default": false
          },
          "contextCountry": {
            "title": "Context country (optional)",
            "type": "string",
            "description": "Two-letter country code (e.g. US, DE, IN): see the posts as a visitor from that country sees them (the run connects from there)."
          },
          "profileScraperMode": {
            "title": "Author details",
            "enum": [
              "short",
              "full"
            ],
            "type": "string",
            "description": "short = the author block of the post; full = also the author's public profile (headline, location, about, followers, experience, education) or company page (industry, size, website, followers) in authorProfile.",
            "default": "short"
          },
          "rawData": {
            "title": "Raw data (alias)",
            "type": "boolean",
            "description": "Same as Include raw data.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is recommended and is the default (LinkedIn slows down or blocks data-center IPs).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}