{
  "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": "gwhI5dUfYxTux3U1X"
  },
  "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",
              "get_group",
              "search_groups",
              "group_posts"
            ],
            "type": "string",
            "description": "Pick the operation. Each mode uses a different set of fields below.\n\n• **Get Group** — fetch full profile (with admins) for one or more groups you already know.\n• **Search Groups** — find groups by keyword (cheap discovery).\n• **Group Posts** — pull posts from specific groups.\n• **Search and Get** ⭐ recommended for first-time users — search by keyword and auto-enrich every result with the full profile + admins.",
            "default": "search_and_get"
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "string",
            "description": "Free-text keywords (industry, role, technology, niche). Examples: 'Sales Operations', 'Fintech', 'AI Engineering', 'Product Marketing'."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on the number of groups to return.\n\n• For **Search Groups**: safe to set 100–500 (results are cheap at $0.001 each).\n• For **Search and Get**: keep this LOW (5–25) — every result triggers a full profile fetch.\n\nValues are automatically clamped to [1, 1000].",
            "default": 25
          },
          "groupInputs": {
            "title": "Group URLs or IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "One entry per line. Both formats are accepted and auto-detected:\n• Full URL: `https://www.linkedin.com/groups/1898033/`\n• Numeric ID: `1898033`\n• URL with extra path: `https://www.linkedin.com/groups/1898033/about/`\n\nLeading/trailing whitespace is trimmed automatically. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "groups": {
            "title": "Groups to scrape posts from",
            "uniqueItems": true,
            "type": "array",
            "description": "Group URLs or numeric IDs, one per line. Both formats auto-detected. The Actor scrapes posts from each group sequentially and stops at `maxPostsPerGroup`.\n\nDon't know the IDs yet? Run mode 'Search Groups' first to discover them.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerGroup": {
            "title": "Max posts per group",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many posts per group. Each post costs $0.002.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort posts by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "How LinkedIn orders the posts.",
            "default": "relevance"
          },
          "postedLimit": {
            "title": "Posted within (LinkedIn-side filter)",
            "enum": [
              "",
              "24h",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Restrict to recent posts. Filtered by LinkedIn before results arrive — fastest. Leave empty for all posts.",
            "default": ""
          },
          "scrapePostedLimit": {
            "title": "Posted within (post-filter, finer control)",
            "enum": [
              "",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Optional finer post-filter applied after results arrive. Useful when you need a window LinkedIn doesn't natively expose (1h, 3 months, 6 months, year).",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}