curl --request GET \
--url https://api.gemrate.com/v1/cards/population/changes \
--header 'x-api-key: <api-key>'import requests
url = "https://api.gemrate.com/v1/cards/population/changes"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.gemrate.com/v1/cards/population/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gemrate.com/v1/cards/population/changes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gemrate.com/v1/cards/population/changes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gemrate.com/v1/cards/population/changes")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gemrate.com/v1/cards/population/changes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"gemrate_ids": [
"25b4432f12a5d6ec29a6f00490200416d5dfa242",
"3a1f9c0b7e2d4856af13c6900128b4e7d9c0a1f2"
],
"count": 2,
"since": "2026-06-01",
"has_more": true,
"next_cursor": "MjAyNi0wNi0wMXwzYTFmOWMwYjdlMmQ0ODU2YWYxM2M2OTAwMTI4YjRlN2Q5YzBhMWYy"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "invalid_grader",
"message": "Unknown grader 'foo'."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing, disabled, or invalid. Pass a valid key in the x-api-key header."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "forbidden",
"message": "Your key does not have access to this resource."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "quota_exceeded",
"message": "You have exceeded your quota for this resource."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong."
},
"meta": {
"request_id": "req_abc123"
}
}Population change feed
GET /v1/cards/{gemrate_id}/population.
Cursoring
The feed is keyset-paginated by an opaque cursor. A typical loop:
- First call: pass
since(an ISO date) for an initial backfill. With neithersincenorcursor, the feed defaults to today (UTC) — you get only the current day’s changes, not a full-history scan. - Read every page until
has_moreisfalse, passing the returnednext_cursorback ascursoreach time. - Store the final
next_cursor. Next time you poll, start from it — you’ll only see ids that changed since.
Every response echoes since, the inclusive lower-bound date it covers (today, in UTC, when you passed neither since nor cursor), so a naive poll can see the baseline it defaulted to.
When you’re caught up, the call returns an empty gemrate_ids with the same position echoed back in next_cursor, so you can keep polling with the same token. cursor takes precedence over since if both are sent.
curl --request GET \
--url https://api.gemrate.com/v1/cards/population/changes \
--header 'x-api-key: <api-key>'import requests
url = "https://api.gemrate.com/v1/cards/population/changes"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.gemrate.com/v1/cards/population/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gemrate.com/v1/cards/population/changes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gemrate.com/v1/cards/population/changes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gemrate.com/v1/cards/population/changes")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gemrate.com/v1/cards/population/changes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"gemrate_ids": [
"25b4432f12a5d6ec29a6f00490200416d5dfa242",
"3a1f9c0b7e2d4856af13c6900128b4e7d9c0a1f2"
],
"count": 2,
"since": "2026-06-01",
"has_more": true,
"next_cursor": "MjAyNi0wNi0wMXwzYTFmOWMwYjdlMmQ0ODU2YWYxM2M2OTAwMTI4YjRlN2Q5YzBhMWYy"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "invalid_grader",
"message": "Unknown grader 'foo'."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing, disabled, or invalid. Pass a valid key in the x-api-key header."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "forbidden",
"message": "Your key does not have access to this resource."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "quota_exceeded",
"message": "You have exceeded your quota for this resource."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong."
},
"meta": {
"request_id": "req_abc123"
}
}Authorizations
Query Parameters
ISO date (YYYY-MM-DD), inclusive — return cards changed on or after this day. Interpreted in UTC; must be on or before today (UTC) and within the last 30 days. Ignored when cursor is also sent.
"2026-06-01"
Opaque pagination token from a prior response's next_cursor. Wins over since. Omit both to default to today (UTC).
Page size, 1–10000.
1 <= x <= 10000