{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Profile & Company Posts Scraper Links & Tagged Account",
    "description": "Linkedin Profile And Company Posts Scraper extracts public LinkedIn posts from profiles and company pages. Collect structured post data including content, timestamps, reactions, and URLs for lead generation, analytics, recruitment, and competitor research. Scalable and API-ready 🚀",
    "version": "0.1",
    "x-build-id": "znf90ZjWjekDP1hCO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapapi~linkedin-profile-and-company-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapapi-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/scrapapi~linkedin-profile-and-company-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapapi-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/scrapapi~linkedin-profile-and-company-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapapi-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"
          },
          "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."
          },
          "includePostLinks": {
            "title": "🔗 Return the links each post points to",
            "type": "boolean",
            "description": "🌐 Returns every web address a post sends people to: the links written in the post text, and the big preview card LinkedIn shows under a post — with its headline and the destination domain LinkedIn prints beneath it. LinkedIn wraps both in its own redirect addresses; those are unwrapped for you, so you get the real page, not a LinkedIn tracking link. Read from the page this scraper already downloads — no extra request. Not every post carries a link; posts without one come back with an empty list.",
            "default": true
          },
          "includeTaggedAccounts": {
            "title": "🏷️ Return the accounts each post tags",
            "type": "boolean",
            "description": "👥 Returns the people, companies and showcase pages a post tags — the display name LinkedIn shows, the real LinkedIn address of that account, and which of the three it is. This is how you see who an account co-markets with, and how you catch the posts that tagged your own brand. Read from the post's own text links on the page already downloaded — no extra request. This is a new field: the base actor's attributes list keeps its existing behaviour and is not touched.",
            "default": true
          },
          "includeHashtags": {
            "title": "#️⃣ Return the hashtags on each post",
            "type": "boolean",
            "description": "🏷️ Returns the campaign hashtags a post uses, each with the real LinkedIn address of that hashtag's feed — so you can see which campaign a post belongs to and open the tag to read the rest of it. Read from the same page, no extra request.",
            "default": true
          },
          "resolveShortLinks": {
            "title": "🔎 Open lnkd.in links to find the real page",
            "type": "boolean",
            "description": "🕵️ LinkedIn often masks a link as lnkd.in/xxxx, which tells you nothing. Switch this on and the actor opens each masked link once and records the page it actually points to. Off by default because it costs one extra request per masked link — on a run with several masked links that can noticeably increase the request count. When it is off, the masked address is still returned exactly as written.",
            "default": false
          },
          "mentionsAccounts": {
            "title": "🎯 Only posts tagging these accounts",
            "type": "array",
            "description": "🔍 Leave empty to keep every post. Fill it in and the run returns only the posts that tag one of these accounts — write a name (YouTube), a LinkedIn slug (youtube), or a full LinkedIn address (https://www.linkedin.com/company/youtube). This is the \"show me every post that tagged my brand\" switch. Matched against the accounts found in this run; nothing is compared with a previous run.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "linkDomains": {
            "title": "🌐 Only posts linking to these domains",
            "type": "array",
            "description": "🧲 Leave empty to keep every post. Fill it in and the run returns only the posts whose links point at one of these sites — weforum.org, stripe.com, a partner's site, a rival's pricing page. Matched against the addresses read in this run, after masked lnkd.in links are opened if that switch is on.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}