Games API
The /games
endpoints are useful when you are prototyping a UI that has interface for games for PC or consoles. We have almost 50,000 games in our database.
Here's an example of how can you fetch data using axios:
axios({
method: 'get',
url: 'https://jsonfakery.com/games/paginated',
responseType: 'application/json'
}).then(function (response) {
// Fetch endpoint response.
// response.data
});
Mock Games (Real-world game titles)
The paginated result will return page links, and other data for proper pagination.
Simple Pagination
The simple pagination endpoint will only display the "Next" and "Previous" links.
Infinite Scrolling Pagination
If your front-end implements "infinite scrolling" user interfaces such as a mobile app, you may use this endpoint:
A random endpoint will fetch a single random item from the database object.
The data within the API is NOT factual, and names or images may be out of context. This JSON information is intended solely for front-end mockups/prototypes and shouldn't be implemented in production environments.