{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Posts Search Scraper | Social Listening (No Cookies)",
    "description": "Search LinkedIn posts by keyword, URL, or profile. Export text, author, likes, comments & media as structured JSON. Built for social listening, lead generation, competitive intelligence, market research & LLM/AI workflows. Fast, lightweight — no browser, real-time results.",
    "version": "0.0",
    "x-build-id": "mMqSPPgqbe3RlBJzI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~linkedin-posts-search-scraper-social-listening-no-cookies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-linkedin-posts-search-scraper-social-listening-no-cookies",
        "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/b2b_leads~linkedin-posts-search-scraper-social-listening-no-cookies/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-linkedin-posts-search-scraper-social-listening-no-cookies",
        "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/b2b_leads~linkedin-posts-search-scraper-social-listening-no-cookies/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-linkedin-posts-search-scraper-social-listening-no-cookies",
        "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": {
          "postSearchMode": {
            "title": "Search mode",
            "enum": [
              "url",
              "profile",
              "keyword"
            ],
            "type": "string",
            "description": "How you want to find posts: search by keyword, paste post links, or load from profile pages.",
            "default": "keyword"
          },
          "postKeywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Topics to search for — one run per keyword (e.g. \"AI regulation\", \"product launch\", \"Series B funding\").",
            "default": [
              "AI regulation"
            ],
            "items": {
              "type": "string"
            }
          },
          "postLocation": {
            "title": "Location",
            "type": "string",
            "description": "Geographic filter to focus results on a region or city.",
            "default": "United States"
          },
          "postAuthor": {
            "title": "Post author",
            "type": "string",
            "description": "Filter by author name to find posts from a specific person.",
            "default": ""
          },
          "postCompany": {
            "title": "Post company",
            "type": "string",
            "description": "Filter by company — finds posts published by or about that company.",
            "default": ""
          },
          "postTopic": {
            "title": "Topic",
            "type": "string",
            "description": "Additional topic or theme to combine with your keywords for sharper results.",
            "default": ""
          },
          "postDatePosted": {
            "title": "Date posted",
            "enum": [
              "any",
              "month",
              "week",
              "day"
            ],
            "type": "string",
            "description": "Only return posts published within this time window.",
            "default": "any"
          },
          "postSort": {
            "title": "Sort posts by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Order results by relevance or most recent first.",
            "default": "relevance"
          },
          "postsPerQuery": {
            "title": "Posts per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum posts to collect per keyword (1–1000).",
            "default": 10
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "LinkedIn post or activity links to collect directly.",
            "default": [
              "https://www.linkedin.com/feed/update/urn:li:activity:7152578889167302656/"
            ],
            "items": {
              "type": "string"
            }
          },
          "activityProfiles": {
            "title": "Profile URLs",
            "type": "array",
            "description": "LinkedIn profile URLs or handles — collects recent posts from each profile.",
            "default": [
              "https://www.linkedin.com/in/oliver-patel"
            ],
            "items": {
              "type": "string"
            }
          },
          "postsPerProfile": {
            "title": "Posts per profile",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum posts to collect per profile (1–500).",
            "default": 10
          },
          "includeComments": {
            "title": "Include top comments",
            "type": "boolean",
            "description": "Add top comments to each post — author name, comment text, and like count.",
            "default": true
          },
          "maxItems": {
            "title": "Max total posts",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Global limit on how many posts to return across the entire run.",
            "default": 25
          },
          "includeRaw": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Attach extended source data to each record. Larger output — useful for custom processing.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Residential US proxy recommended for best speed and consistent results on LinkedIn.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}