Skip to content
Browsabledocs
Staging API reference · Requests use https://api-ingress-worker-staging.browsable-staging.workers.dev
Documentation Facebook group
Markdown ↗
Facebook APIs

Facebook group

Scrape public metadata and public initial-page posts from a Facebook group URL or group id.

POST/v1/facebook/group
Authenticate every request

Send Authorization: Bearer YOUR_API_KEY. Get an API key →

Parameters

Send these fields in a flat JSON body. Add _run to choose execution options.

Provide at least one of: url; group_id.

urlstringOptional

Facebook group URL. Minimum length: 1. Maximum length: 2000.

cursorstringOptional

Offset cursor returned as next_cursor from the previous response.

group_idstringOptional

Facebook group id or public group slug. Use this instead of url when you only have the identifier.

max_postsintegerOptional

Maximum number of public posts to return from the initial group page payload. Default: 20. Minimum: 0. Maximum: 100.

Response

Every response describes a run. Read result once run_status is succeeded.

run_id
The run to track. Keep it when contacting support.
run_status
Queued, running, waiting for sign-in, succeeded, or failed. Check this even after an HTTP 200.
status_url
Poll this URL while the run is pending. Keep the same run instead of starting another request.
result
The endpoint’s returned data. The example is illustrative; actual fields may be empty or unavailable.
error
On failure, inspect its code, message, retryable and action fields.
View the complete output schema
JSON
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "success",
    "group",
    "posts",
    "count",
    "max_posts_requested",
    "pagination"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "group": {
      "type": "object",
      "required": [
        "id",
        "url",
        "mobile_url",
        "name",
        "description",
        "privacy",
        "privacy_description",
        "visibility",
        "visibility_description",
        "member_count_text",
        "member_count",
        "location",
        "profile_picture_url",
        "cover_photo_url",
        "tabs",
        "recent_media"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tabs": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "title",
              "type",
              "url"
            ],
            "properties": {
              "url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "title": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "privacy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "mobile_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "visibility": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "member_count": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "recent_media": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "type",
              "url",
              "image_url",
              "accessibility_caption"
            ],
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "image_url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "accessibility_caption": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "cover_photo_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "member_count_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "privacy_description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "profile_picture_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "visibility_description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "post_id",
          "url",
          "author_id",
          "author_name",
          "author_profile_picture_url",
          "message",
          "created_time",
          "created_at",
          "reaction_count",
          "comment_count",
          "attachments",
          "comments"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "post_id": {
            "type": "string"
          },
          "comments": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "legacy_fbid",
                "url",
                "message",
                "author_id",
                "author_name",
                "author_profile_picture_url",
                "created_time",
                "created_at",
                "reaction_count",
                "reply_count"
              ],
              "properties": {
                "id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "message": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "author_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "author_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "legacy_fbid": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reply_count": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_time": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reaction_count": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "author_profile_picture_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "author_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type",
                "title",
                "source",
                "url",
                "image_url",
                "description"
              ],
              "properties": {
                "url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "source": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "image_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "author_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "comment_count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "reaction_count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "author_profile_picture_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "success": {
      "const": true
    },
    "pagination": {
      "type": "object",
      "required": [
        "cursor",
        "next_cursor",
        "has_next_page",
        "count",
        "total_available",
        "strategy"
      ],
      "properties": {
        "count": {
          "type": "integer"
        },
        "cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "strategy": {
          "const": "public_page_offset"
        },
        "next_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "has_next_page": {
          "type": "boolean"
        },
        "total_available": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "max_posts_requested": {
      "type": "integer"
    }
  },
  "additionalProperties": false
}
View a polled run response
JSON
{
  "run_id": "00000000-0000-4000-8000-000000000001",
  "task_key": "facebook-group",
  "task_name": "Facebook group",
  "run_status": "succeeded",
  "status_url": "/v1/runs/00000000-0000-4000-8000-000000000001",
  "result": {
    "count": 1,
    "group": {
      "id": "id-1",
      "url": "https://example.com/item-1",
      "name": "Stylish Shoreditch Loft with Balcony",
      "tabs": [
        {
          "url": "https://example.com/item-1",
          "type": "sample",
          "title": "Stylish Shoreditch Loft with Balcony"
        }
      ],
      "privacy": "sample",
      "location": "London",
      "mobile_url": "https://example.com/item-1",
      "visibility": "sample",
      "description": "Sample description 1",
      "member_count": 1,
      "recent_media": [
        {
          "id": "id-1",
          "url": "https://example.com/item-1",
          "type": "sample",
          "image_url": "https://example.com/item-1",
          "accessibility_caption": "sample"
        }
      ],
      "cover_photo_url": "https://images.example.com/cover_photo_url-1.jpg",
      "member_count_text": "Sample member_count_text 1",
      "privacy_description": "Sample privacy_description 1",
      "profile_picture_url": "https://example.com/item-1",
      "visibility_description": "Sample visibility_description 1"
    },
    "posts": [
      {
        "id": "id-1",
        "url": "https://example.com/item-1",
        "message": "sample",
        "post_id": "id-1",
        "comments": [
          {
            "id": "id-1",
            "url": "https://example.com/item-1",
            "message": "sample",
            "author_id": "user_1",
            "created_at": "2026-06-14T15:30:00Z",
            "author_name": "Stylish Shoreditch Loft with Balcony",
            "legacy_fbid": "id-1",
            "reply_count": 1,
            "created_time": 1.5,
            "reaction_count": 1,
            "author_profile_picture_url": "https://example.com/item-1"
          }
        ],
        "author_id": "user_1",
        "created_at": "2026-06-14T15:30:00Z",
        "attachments": [
          {
            "url": "https://example.com/item-1",
            "type": "sample",
            "title": "Stylish Shoreditch Loft with Balcony",
            "source": "sample",
            "image_url": "https://example.com/item-1",
            "description": "Sample description 1"
          }
        ],
        "author_name": "Stylish Shoreditch Loft with Balcony",
        "created_time": 1.5,
        "comment_count": 1,
        "reaction_count": 1,
        "author_profile_picture_url": "https://example.com/item-1"
      }
    ],
    "success": true,
    "pagination": {
      "count": 1,
      "cursor": "cursor-page-1",
      "strategy": "public_page_offset",
      "next_cursor": "cursor-page-1",
      "has_next_page": true,
      "total_available": 180
    },
    "max_posts_requested": 1
  },
  "error": null
}

Errors & retries

  • 400Fix the fields listed in errors before retrying.
  • 428Connect the requested website account using the returned sign-in link.
  • 429Wait for the duration in Retry-After.
  • 5xxRetry transient failures with backoff. Keep the request ID.

A failed run has its own error inside the response. Retry it only when error.retryable is true.

Validation, pagination and recovery →

More examples

Async request with polling
RUN=$(curl -s -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/facebook/group" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/groups/2379328805667854/"}')

RUN_ID=$(echo "$RUN" | jq -er '.run_id // empty') || { echo "$RUN" >&2; exit 1; }
POLL_DELAY=3

while true; do
  RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/runs/$RUN_ID")
  STATUS=$(echo "$RESULT" | jq -r '.run_status')
  if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
    echo "$RESULT"
    break
  fi
  sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
  POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
  [ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
done
Wait-for-results request
curl -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/facebook/group" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/groups/2379328805667854/","_run":{"async":false}}'
Canonical & compatibility routes

You can also send the same JSON body to /v1/tasks/facebook-group/runs.