Skip to content
get a key

Pagination

Lists take page (from 1) and per_page (1 to 100, default 25):

Terminal window
curl "https://api.lobbyverse.com/v1/servers?game=counter-strike&per_page=100&page=2" -H "Authorization: Bearer lv_YOUR_KEY"

meta has the totals and links the way around:

{
"meta": { "page": 2, "per_page": 100, "total": 7213, "total_pages": 73 },
"links": {
"self": "https://api.lobbyverse.com/v1/servers?game=counter-strike&page=2&per_page=100",
"first": "…&page=1&per_page=100",
"prev": "…&page=1&per_page=100",
"next": "…&page=3&per_page=100",
"last": "…&page=73&per_page=100"
}
}

The same links are in the Link header (rel="next", "prev", "first", "last"), so most HTTP clients can follow them on their own. A page past the last one returns the last page.

Lists change as servers fill and empty, so a server can move between pages while you walk them. For a consistent snapshot, ask for fewer, bigger pages.