Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: getcheapgames Track API
description: Game key price comparison. All money is integer cents; rankings are on the price each store lists, without the service fee a marketplace adds at checkout.
version: 0.1.0
tags:
- name: track
paths:
/api/track/free-claim:
post:
tags:
- track
summary: Free Claim
description: 'Count one press of a free "Claim" or "Play now" button, on a card or the game page.
The body is parsed by hand rather than as a typed parameter, so it is read
whatever content type it comes with: a keepalive `fetch` sends JSON, and
`navigator.sendBeacon` with a string sends `text/plain`.
Not counted when the browser says the call came from another site
(`Sec-Fetch-Site`), so another page cannot press our buttons through its
visitors. Older browsers send no such header and are let through: the
count is anonymous and the game must exist, so the most a forger gets is
a number on our own dashboard.'
operationId: free_claim_api_track_free_claim_post
responses:
'204':
description: Successful Response
/api/track/visit:
post:
tags:
- track
summary: Visit
description: 'Count one landing from a tagged link (`utm_source`), cookieless and with no
consent needed: it keeps the campaign''s tags, the path, a country and a
class of browser, nothing that identifies the visitor (gcg/services/visits.py).
A robot that runs the page is recorded too, as `bot`, so the readout can
tell paid clicks that were people from those that were not.'
operationId: visit_api_track_visit_post
responses:
'204':
description: Successful Response
/api/track/hello:
post:
tags:
- track
summary: Hello
description: 'Count today''s visitor, cookieless and with no consent needed: a keyed hash
under the day''s salt, a country and a class of browser
(gcg/services/visitors.py). Same-origin only, and never a prefetch.'
operationId: hello_api_track_hello_post
responses:
'204':
description: Successful Response