{
  "openapi": "3.0.1",
  "info": {
    "title": "👥 LinkedIn Groups Scraper - Members & Posts [NO COOKIES] ✅",
    "description": "Extract members, posts, and discussions from any public LinkedIn Group. Identify niche professional communities and build hyper-targeted lead lists by group affiliation. No login, no cookies, no Chrome extension. Bulk-process multiple groups. Built for B2B marketers and recruiters.",
    "version": "0.0",
    "x-build-id": "xSRefyQNtQSRCBvYa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unseenuser~LinkedIn-Groups-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unseenuser-LinkedIn-Groups-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/unseenuser~LinkedIn-Groups-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-unseenuser-LinkedIn-Groups-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/unseenuser~LinkedIn-Groups-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unseenuser-LinkedIn-Groups-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What do you want to do?",
            "enum": [
              "search_and_get",
              "search_groups",
              "get_group",
              "group_posts"
            ],
            "type": "string",
            "description": "Pick the operation that matches your goal.",
            "default": "search_and_get"
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "string",
            "description": "Industry, role, technology, or niche — anything LinkedIn search accepts.\n\n• 'Sales Operations'  ·  'Fintech'  ·  'Generative AI'  ·  'RevOps'  ·  'Pharma Marketing'\n\nSpecific keywords beat broad ones — 'B2B SaaS Founders' returns better-targeted groups than 'business'."
          },
          "maxResults": {
            "title": "How many groups to return",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on the number of groups returned by the search.\n\n• **Search & Get Full Profiles:** keep this LOW (5-25). Each group triggers a full profile fetch.\n• **Search Groups Only:** safe to set high (50-500). Results are cheap discovery.\n\nClamped to [1, 1000].",
            "default": 25
          },
          "groupInputs": {
            "title": "Group URLs or IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "Paste LinkedIn group URLs or numeric IDs — one per line. Both formats are accepted and auto-detected, whitespace is trimmed, duplicates removed.\n\nExamples:\n• `https://www.linkedin.com/groups/1898033/`\n• `https://www.linkedin.com/groups/1898033/about/`\n• `1898033`\n\nDon't know the IDs yet? Use 'Search Groups Only' first to discover them, then paste the IDs here.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerGroup": {
            "title": "Posts per group",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum posts to scrape from each group. Multiply by the number of groups for total cost.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort posts by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "How to order the posts within each group.",
            "default": "relevance"
          },
          "timeWindow": {
            "title": "Time window — only posts from the past…",
            "enum": [
              "",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Restrict posts to a recent window. Leave on 'No limit' to get the broadest catch.\n\nLinkedIn-side filters (faster): Past 24 hours, Past week, Past month.\nPost-filtered (finer control): Past hour, Past 3 months, Past 6 months, Past year.",
            "default": ""
          },
          "maxRunTimeSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 60,
            "maximum": 1800,
            "type": "integer",
            "description": "Hard cap on total run time. The Actor watches the clock and stops cleanly when this is hit, preserving everything scraped so far and emitting a TIMEOUT diagnostic. Default 5 minutes. Raise this for very large runs.\n\nClamped to [60, 1800].",
            "default": 300
          },
          "extractMembers": {
            "title": "Also extract members (admins + active posters)",
            "type": "boolean",
            "description": "When ON, the Actor produces a dedicated **members** dataset alongside the main output, with one row per person:\n\n• Group admins (from get_group / search_and_get) — always available, no extra API cost.\n• Active posters (from group_posts) — the authors of public posts the Actor scrapes.\n\nLinkedIn does not expose the full group roster, so 'members' here means everyone LinkedIn does surface for a group — typically the most-engaged 5–15% of the community. Each row has `linkedinUrl`, `fullName`, `headline`, and a back-link to the group, ready for profile enrichment.\n\nLeave it ON unless you only want group profiles or post content and want to skip member extraction entirely.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}