{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Post Search Scraper",
    "description": "Search LinkedIn for posts by keyword, topic, or hashtag. Filter by date posted and sort by relevance or recency.",
    "version": "1.35",
    "x-build-id": "diQ02ewtFzXw4hv5J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~linkedin-post-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-linkedin-post-search-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/crawlerbros~linkedin-post-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-linkedin-post-search-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/crawlerbros~linkedin-post-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-linkedin-post-search-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": [
          "searchQuery",
          "cookie"
        ],
        "properties": {
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Keywords or hashtag to search for. Examples: 'artificial intelligence', '#MachineLearning', 'product launch announcement'"
          },
          "cookie": {
            "title": "LinkedIn Cookie",
            "type": "string",
            "description": "Your LinkedIn session cookie. Accepts either: (1) the li_at value from browser DevTools → Application → Cookies, or (2) full cookies JSON array exported from an extension like EditThisCookie."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "recency",
              "date_posted"
            ],
            "type": "string",
            "description": "How to sort search results. 'recency' and 'date_posted' are aliases — both sort by most recent posts first.",
            "default": "relevance"
          },
          "datePosted": {
            "title": "Date Posted",
            "enum": [
              "",
              "r86400",
              "r604800",
              "r2592000"
            ],
            "type": "string",
            "description": "Filter posts by how recently they were posted.",
            "default": ""
          },
          "authorType": {
            "title": "Author Type",
            "enum": [
              "",
              "PERSON",
              "COMPANY"
            ],
            "type": "string",
            "description": "Restrict results to posts authored by a person or by a company. Leave blank for both.",
            "default": ""
          },
          "contentType": {
            "title": "Content Types",
            "type": "array",
            "description": "Select which post media types to include. Valid values: articles, posts, documents, videos, images.",
            "default": [
              "articles",
              "posts",
              "documents",
              "videos",
              "images"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "pt",
              "it"
            ],
            "type": "string",
            "description": "Preferred result language. Non-English values also disable LinkedIn's spell-correction rewriting.",
            "default": "en"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of posts to return.",
            "default": 25
          },
          "fromNetwork": {
            "title": "From Network",
            "enum": [
              "",
              "F",
              "S",
              "O"
            ],
            "type": "string",
            "description": "Filter posts by your LinkedIn connection degree. Leave blank for any. 'F' = 1st-degree, 'S' = 2nd-degree, 'O' = 3rd-degree and beyond.",
            "default": ""
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Filter posts by industry. Select one or more industries.",
            "items": {
              "type": "string",
              "enum": [
                "Software Development",
                "Financial Services",
                "Healthcare",
                "Education",
                "Marketing & Advertising",
                "Consulting",
                "Retail",
                "Manufacturing",
                "Legal Services",
                "Real Estate"
              ],
              "enumTitles": [
                "Software Development",
                "Financial Services",
                "Healthcare",
                "Education",
                "Marketing & Advertising",
                "Consulting",
                "Retail",
                "Manufacturing",
                "Legal Services",
                "Real Estate"
              ]
            },
            "default": []
          },
          "mentions": {
            "title": "Mentions",
            "type": "array",
            "description": "Filter posts mentioning specific companies or people. Provide LinkedIn handles or display names (e.g. 'OpenAI', 'Satya Nadella'). These are appended to the search query.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mentionsCompany": {
            "title": "Mentions Company",
            "type": "string",
            "description": "Restrict results to posts that @-mention a specific company. Accepts a numeric LinkedIn company ID (e.g. '1441') or a company slug (e.g. 'google'). Slugs are resolved server-side; numeric IDs are passed through to the LinkedIn filter chain.",
            "default": ""
          },
          "mentionsPerson": {
            "title": "Mentions Person",
            "type": "string",
            "description": "Restrict results to posts that @-mention a specific person. Accepts a numeric LinkedIn member ID or a profile slug (e.g. 'satyanadella').",
            "default": ""
          },
          "minReactions": {
            "title": "Minimum Reactions",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only emit posts with at least this many reactions. Set to 0 to include all.",
            "default": 0
          },
          "excludeReposts": {
            "title": "Exclude Reposts",
            "type": "boolean",
            "description": "When enabled, skip posts that are reshares of someone else's content.",
            "default": false
          },
          "emitNoResultsMarker": {
            "title": "Emit No-Results Marker",
            "type": "boolean",
            "description": "When enabled and the search yields zero results (with no errors), push a single structured marker record ({searchQuery, noResults: true, scrapedAt}) so callers can distinguish 'no matches' from 'scrape failed'.",
            "default": true
          },
          "talksAbout": {
            "title": "Talks About (Topics / Hashtags)",
            "type": "array",
            "description": "Filter posts that discuss specific topics or hashtags. Values are appended with '#' to the search query (e.g. 'AI' becomes '#AI'). You may also enter them with a leading '#'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify proxy configuration."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}