Integrate via All Games API
Gamezop All Games API allows you to access data on our games so you can list them in your own UI.
The All Games API lets you access a list of games and associated details (description, screenshots etc.) so that you can directly launch games from your app / site instead of sending users to the Gamezop Game Centre.
Making the request
Get All Games
GET
https://pub.gamezop.com/v3/games?id={PropertyID}&lang={ISOLangTag}
Get a list of games
objects.
Query Parameters
id*
String
Your Property ID
lang
String
ISO 639 alpha-2 or alpha-3 language code. A full list of valid language codes is available in the IANA Language Subtag Registry (search for Type: language
)
Sample response
The response contains a single array games
with multiple game objects. Each games
object contains
code
A unique alphanumeric identifier for the game
url
The URL to the game that you can embed in your app or website
name
A name object for the game, capturing the game name in multiple languages. It will always have an en
value of the name of the game.
The object will also have the name of the game in the language requested in the API call, if any. If we do not have the game name translated in the language requested, you will get an empty string for that language's value.
isPortrait
true
if the game is a Portrait game; false
if the game is Landscape
description
A short description object of the game (can be displayed to the end-user), capturing the game description in multiple languages. It will always have an en
value of the description of the game.
The object will also have the description of the game in the language requested in the API call, if any. If we do not have the game description translated in the language requested, you will get an empty string for that language.
gamePreviews
A game preview object for the game, containing video links in multiple languages. A game preview is basically a link to a YouTube video containing a screen recording of the game being played. You can use this to show the user how the game is to be played. This value may be empty for some games. Note: There may be several games without any game preview links.
assets
An assets object for the game. This contains several assets that can be used as promotional banners:
cover
: CDN URL to a 600x492 pixels image assetbrick
: CDN URL to a 310x150 pixels image assetwall
: CDN URL to a 1024x500 pixels image assetscreens
: An array of 3 CDN URLs with screenshots of gameplaycoverTiny
: CDN URL to a very low-res image asset for the game which can be used as a placeholder till thecover
image can loadbrickTiny
: CDN URL to a very low-res image asset for the game which can be used as a placeholder till thebrick
image can load
categories
The genre to which the game belongs.
It will always have an en
value for the categories of the game. This value will have an array
of the categories that the game falls in. A game will always belong to only one of these categories:
Arcade
Action
Sports & Racing
Strategy
Puzzle & Logic
Adventure
The array may optionally have a second value:
Featured
This second category is present for games that are currently trending / popular on the Gamezop platform. Featured games change frequently. The object will also have the category names in the language requested in the API call, if any. If we do not have translations for the category names the requested language, you will get an empty array for that language.
height
The height (in pixels), of the canvas in which the game runs. Useful if you want to allocate a specific amount of space for the game on your desktop webpage.
width
The width (in pixels), of the canvas in which the game runs. Useful if you want to allocate a specific amount of space for the game on your desktop webpage.
gamePlays
Lifetime count of game plays for that game. Each time a user finishes a game start and end loop, it is counted as 1 game play. Each user session may have several game plays.
hasIntegratedAds
If true
, it means that this game has in-game ads which cannot be removed. In-game ads are different from the ads that come before or during gameplay.
In-game ads are those ads which users opt-in to watch. For instance, users may have an option to get an extra life by watching an ad. If the value for hasIntegratedAds
is false
, it means that the game does not give users any option to watch an ad.
If you are working with us on a model where you have ads disabled, you should avoid using games where this value is true
.
If the API response contains any other keys besides the ones documented above, do not use those keys. They will be removed from the API.
Caching the API response
We discourage integrating our API directly in your front-end project. Instead, request data from the All Games API from your servers, and cache the data at your end. Service your frontend requests from your own APIs using this data.
We strongly suggest you set up a cron to update the games data on your server once every 24 hours. We often add new games and update other data for existing games, which your users may not be able to access if you do not refresh your cache.
Looking for a deeper integration with our games? Check out Gamezop's advanced guides.
Last updated