Pagination

Every list route returns one page at a time. You follow nextCursor until hasMore is false.

Base URL: https://api.groupapp.co.il/v1

The list envelope

{
  "object": "list",
  "data": [],
  "hasMore": true,
  "nextCursor": "eyJyIjoi...",
  "asOf": "2026-11-22T09:30:00.000Z"
}
Field Type Meaning
object "list" Always list.
data array The items of this page. Each item has its own object field (bot, super_group, group, post).
hasMore boolean true when there is another page.
nextCursor string or null Pass it as cursor to get the next page. null when hasMore is false.
asOf string (RFC 3339, UTC) The time the server took just before it read the data for this page. Changes made after asOf may not show yet. Each page has its own asOf.

A page can hold fewer items than limit, and on GET /v1/posts it can even be empty while hasMore is true. Do not treat a short page as the last one; stop only when hasMore is false.

limit

limit is an integer from 1 to 100. The default is 25. Anything else is a 400 whose errors[] names limit.

Cursors

A cursor is an opaque string. Do not parse it or build one.

  • It is bound to the route and to the filters of the request that produced it. Repeat the same filters with it. Changing a filter, or using it on another route, is a 400 with errors: [{ "param": "cursor", "message": "was made for a different request; repeat the same filters with it" }]. limit is not a filter, so you may change it between pages.
  • It expires one hour after it was issued. An expired cursor is a 400 (has expired; start again without it): drop the cursor and start from the first page.
  • A cursor that cannot be read is a 400 (is not a valid cursor). A cursor must be 1 to 2048 characters; outside that range the 400 names cursor with a length message.
  • A cursor is only a position. Your key's access and the bot's state are checked again on every page, so a page can fail with 403, 404 or 410 even if earlier pages worked.

Unknown query parameters are rejected with 400. Every page costs one read unit (see Rate limits).

Order

  • GET /v1/bots, GET /v1/super-groups and GET /v1/groups return items sorted by ascending id (plain string comparison).
  • GET /v1/posts returns the newest post first.

Filters

Route Required Filters
GET /v1/bots none status: one of connected, alive-unknown, stale, down, degraded (see below)
GET /v1/super-groups botId none
GET /v1/groups botId superGroupId: only the groups of this super group
GET /v1/posts botId superGroupId, createdGte, createdLt (see below)

All four also take limit and cursor. Retired bots are not listed by GET /v1/bots.

degraded is a separate flag, not a connection state: it marks a bot that runs with partial capacity. A degraded bot still reports its own status (for example connected), and status=degraded selects the degraded bots.

GET /v1/super-groups/{superGroupId} also needs botId, as a query parameter: GET /v1/super-groups/my-super-group?botId=my-bot. It returns one super group and takes no limit or cursor.

Posts window

createdGte (inclusive) and createdLt (exclusive) are RFC 3339 date-times, for example 2026-11-01T00:00:00Z.

You send Window
neither the last 7 days
only createdGte from createdGte to now. It must not be in the future.
only createdLt the 31 days before createdLt
both createdGte must be before createdLt

Limits, whichever bounds you send:

  • The window spans at most 31 days.
  • It starts at most 400 days back.

Breaking a limit is a 400 naming createdGte or createdLt in errors. To read further back than 31 days, make several requests with consecutive windows. Posts are not kept forever, so an old window can return empty pages.

Example: two pages

curl -s "https://api.groupapp.co.il/v1/groups?botId=my-bot&limit=2" \
  -H "Authorization: Bearer $GROUPAPP_API_KEY"
{
  "object": "list",
  "data": [
    { "object": "group", "id": "[email protected]", "botId": "my-bot", "name": "Example group", "superGroupId": "sg_example", "receiveOnly": false },
    { "object": "group", "id": "[email protected]", "botId": "my-bot", "name": null, "superGroupId": "sg_example", "receiveOnly": false }
  ],
  "hasMore": true,
  "nextCursor": "<cursor from this response>",
  "asOf": "2026-11-22T09:30:00.000Z"
}

Second page: the same botId and limit, plus the cursor.

curl -s "https://api.groupapp.co.il/v1/groups?botId=my-bot&limit=2&cursor=<cursor from the previous response>" \
  -H "Authorization: Bearer $GROUPAPP_API_KEY"
{
  "object": "list",
  "data": [
    { "object": "group", "id": "[email protected]", "botId": "my-bot", "name": "Another group", "superGroupId": "sg_example", "receiveOnly": true }
  ],
  "hasMore": false,
  "nextCursor": null,
  "asOf": "2026-11-22T09:30:01.000Z"
}

A loop that reads everything:

cursor=""
while :; do
  page=$(curl -s -G "https://api.groupapp.co.il/v1/groups" \
    -H "Authorization: Bearer $GROUPAPP_API_KEY" \
    --data-urlencode "botId=my-bot" \
    ${cursor:+--data-urlencode "cursor=$cursor"})
  echo "$page" | jq -c '.data[]'
  [ "$(echo "$page" | jq -r .hasMore)" = "true" ] || break
  cursor=$(echo "$page" | jq -r .nextCursor)
done