{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Profile And Company Posts Scraper with Video & Article",
    "description": "LinkedIn Profile and Company Posts Scraper 💼📢 extracts public profile details, company posts, captions, reactions, comments, and engagement metrics in one run. Ideal for lead research, competitor tracking, recruitment insights, and content analysis. 🚀📊",
    "version": "0.1",
    "x-build-id": "0nMVcI45VohLjUl7l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilotapi~linkedin-profile-and-company-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilotapi-linkedin-profile-and-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/scrapepilotapi~linkedin-profile-and-company-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilotapi-linkedin-profile-and-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/scrapepilotapi~linkedin-profile-and-company-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilotapi-linkedin-profile-and-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔗 LinkedIn URLs",
            "type": "array",
            "description": "Add one or more company or profile URLs to scrape (e.g. company page, personal profile). 📋 Paste each URL on a new line.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "📄 Max posts per URL",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of posts to collect per URL. 🎯 Keep lower for faster runs (e.g. 10–50).",
            "default": 10
          },
          "targetType": {
            "title": "🎯 Target type",
            "enum": [
              "company",
              "profile",
              "both"
            ],
            "type": "string",
            "description": "Filter which URL types to scrape: companies only, profiles only, or both. 👔 Company | 👤 Profile | 🔀 Both",
            "default": "both"
          },
          "postFormats": {
            "title": "🎬 Post formats to include",
            "type": "array",
            "description": "Only keep posts matching these real formats (read from LinkedIn's own page data, not guessed). Default: all four. 📝 Post | 🎬 Video | 📰 Article | 📚 Publication",
            "items": {
              "type": "string",
              "enum": [
                "post",
                "video",
                "article",
                "publication"
              ],
              "enumTitles": [
                "📝 Post",
                "🎬 Video",
                "📰 Article",
                "📚 Publication"
              ]
            },
            "default": [
              "post",
              "video",
              "article",
              "publication"
            ]
          },
          "readPostFormat": {
            "title": "🔍 Read real post format",
            "type": "boolean",
            "description": "When true (default), resolves each post's real format (post/video/article/publication) from LinkedIn's own page data instead of the base actor's broken image-or-text guess. Turn off only for a faster run if format labeling doesn't matter to you.",
            "default": true
          },
          "includeVideoDetails": {
            "title": "🎬 Include video details",
            "type": "boolean",
            "description": "For posts detected as video, add video_url, thumbnail_url, duration, width, height, embed_url and upload_date fields (read directly from LinkedIn's video metadata). Default: true.",
            "default": true
          },
          "includeArticleDetails": {
            "title": "📰 Include article details",
            "type": "boolean",
            "description": "For posts detected as article or publication, add article_headline, article_url, article_cover_image, publication_name, publication_description and publication_url fields. Default: true.",
            "default": true
          },
          "includeOriginalAuthorOnReposts": {
            "title": "↩️ Include original author on reposts",
            "type": "boolean",
            "description": "When a repost/reshare block is found on the page, add is_reshare, original_author_name, original_author_url, original_author_type, original_author_followers and original_post_text. ⚠️ Coverage is low (LinkedIn rarely exposes this block) — is_reshare:false means 'no reshare block found', not 'confirmed original post'. Default: true.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "By default uses no proxy. If LinkedIn blocks requests, the actor will automatically try datacenter then residential proxy. 🔒 Optional: enable Apify Proxy here to start with a specific setup."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}