{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Posts - Updates, Engagement & Hashtags",
    "description": "Get the latest posts of LinkedIn company and showcase pages by URL or name, up to 70 updates each. One row per post: text, date, reactions, comments count, images, video, link, hashtags, post URL. Company posts only. Free: monitor competitor news (only-new runs), date, keyword, engagement filters.",
    "version": "1.0",
    "x-build-id": "ePpIfbSZuMQpsecwQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kestrel~linkedin-company-posts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kestrel-linkedin-company-posts",
        "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/kestrel~linkedin-company-posts/runs": {
      "post": {
        "operationId": "runs-sync-kestrel-linkedin-company-posts",
        "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/kestrel~linkedin-company-posts/run-sync": {
      "post": {
        "operationId": "run-sync-kestrel-linkedin-company-posts",
        "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": {
          "companyUrls": {
            "title": "LinkedIn company pages",
            "type": "array",
            "description": "LinkedIn company or showcase pages, one per line: a URL (\"https://www.linkedin.com/company/microsoft/\", any country host such as uk.linkedin.com, /posts/ sub-pages too) or a bare company slug (\"microsoft\"). Up to 500 per run. Not people profiles (/in/), single posts, jobs or search URLs. targetUrls, startUrls [{\"url\": ...}] and company_name are accepted too.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerCompany": {
            "title": "Max posts per company",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Most post rows delivered per company, newest first. Default 20; 0 = every post LinkedIn shows logged-out visitors (its latest ~70 updates, reposts included, so usually 40-70 company posts reaching back 1-6 months). Filters run first, so 20 asked = up to 20 that pass them. The bill per company is at most this number of post events. maxItems, if your tool sends it, caps the whole run and lifts this default.",
            "default": 20
          },
          "publishedAfter": {
            "title": "Only posts after",
            "type": "string",
            "description": "Keep only posts published on or after this time: \"2026-11-01\", an ISO time, or a relative span like \"7 days\", \"24 hours\", \"2 weeks\", \"3 months\". Older posts are skipped free and the walk stops at the first page that is wholly older. Empty = all dates. Use for \"posts from the last month\".",
            "default": ""
          },
          "textContains": {
            "title": "Text contains any of",
            "type": "array",
            "description": "Keep only posts whose text contains any of these words, phrases or hashtags, case-insensitive, e.g. [\"hiring\", \"#AI\", \"launch\"]. Other posts are skipped free. Empty = all posts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minReactions": {
            "title": "Minimum reactions",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep only posts with at least this many reactions (likes and all other reaction types), e.g. 100 for \"top posts\". 0 (default) = all. Others are skipped free.",
            "default": 0
          },
          "onlyNewPosts": {
            "title": "Only new posts (monitoring)",
            "type": "boolean",
            "description": "true = deliver and bill only posts published after the newest post an earlier run with the same monitorKey saw for that company. The first run is the baseline: the newest maxPostsPerCompany posts. Later runs read newest first and stop where the last run left off, so a check with nothing new costs $0. Needs monitorKey. Schedule the same input daily for competitor or brand monitoring.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Required with onlyNewPosts: a name for this watch, e.g. \"competitors-daily\" (1-60 letters, digits, dots, underscores or hyphens). Runs that share the name share one memory per company in your named storage kestrel-linkedin-company-posts-monitor; use a new name for a fresh baseline. Do not run the same name twice at once."
          },
          "excludePostIds": {
            "title": "Skip these post ids",
            "type": "array",
            "description": "post_id values (or post URLs) from earlier rows to skip free, e.g. [\"7527047777168736256\"]. Stateless alternative to onlyNewPosts when you keep your own list. Empty = skip nothing.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Default Apify Proxy works for public company pages. When LinkedIn answers a request with its sign-in wall the run rotates to a new IP; after three refusals in a row it moves to Apify RESIDENTIAL by itself. Proxy and compute are included in the post price. Custom proxy URLs are used as given.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}