{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Profile & Company Posts Scraper",
    "description": "LinkedIn Profile & Company Posts Scraper SD - LinkedIn Profile & Company Posts Scraper is a social media tool that extracts the recent public posts of LinkedIn profiles and company pages: text, date, author, images, video, documents, reactions, comments, reposts. No login.",
    "version": "1.0",
    "x-build-id": "LeHeOKf8L3HVjXRg3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~linkedin-profile-company-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-linkedin-profile-company-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-profile-company-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-linkedin-profile-company-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-profile-company-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-linkedin-profile-company-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 or company URLs",
            "type": "array",
            "description": "One per line: a profile (https://www.linkedin.com/in/satyanadella or just satyanadella) or a company page (https://www.linkedin.com/company/google). Single post links (https://www.linkedin.com/posts/...) work too.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "More URLs (optional)",
            "type": "array",
            "description": "Same as above - an extra list, handy when you paste from another tool.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Max posts per profile or company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each profile or company after this many posts (the limit applies to every URL you give). A profile shows about 8 recent posts plus its articles and a company 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.",
            "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."
          },
          "scrapeUntil": {
            "title": "Scrape until date (optional)",
            "type": "string",
            "description": "Same as \"Posted on or after\": stop at posts older than this date."
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Keep posts the profile or company reposted without adding text. 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 a profile lists (\"Articles by ...\") 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.",
            "default": "all"
          },
          "scrapePostDetails": {
            "title": "Open each post (deep scrape)",
            "type": "boolean",
            "description": "Read every post in full: exact date, complete text, the video file and its transcript, the author's follower count. One extra request per post.",
            "default": false
          },
          "deepScrape": {
            "title": "Deep scrape (alias)",
            "type": "boolean",
            "description": "Same as \"Open each post\".",
            "default": false
          },
          "scrapeComments": {
            "title": "Scrape comments",
            "type": "boolean",
            "description": "Add the comments shown publicly on each post (the first ~10: text, author, date, reactions), nested in the post row as comments[].",
            "default": false
          },
          "maxComments": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Comments per post, up to the ~10 shown publicly.",
            "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 return the PDF link and page images.",
            "default": false
          },
          "findMorePosts": {
            "title": "Find more posts",
            "type": "boolean",
            "description": "When a profile or company shows fewer recent posts than \"Max posts\", look for more of its older public posts and read each one (posts that are indexed publicly only).",
            "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)."
          },
          "includeRawData": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Add the post's full structured data (field raw) - for advanced use.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is recommended and is the default.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}