Welcome to the Matemine.shop API!

This is the official API for the Matemine.shop marketplace, where you can browse and access data about video games.

Our data is sourced from Moby Games, and most routes in this API require token authentication for security. However, the /games route can be accessed directly from the browser without authentication.

Below, you'll find documentation for the /games route, including how to use its query parameters to filter, sort, and paginate your search results.

Endpoint

GET /games

Description

This endpoint retrieves a list of games based on the provided filters, pagination, and sorting options.

Query Parameters

Filter Parameters

Examples:

?nintendo=SNES,Wii
?sega=Genesis,Dreamcast
?playstation=PlayStation%205,PSP
?xbox=Xbox,Xbox%20Series
        

Pagination Parameters

Examples:

?perPage=24
?page=2
        

Sorting Parameters

Examples:

?sort=rating-asc
?sort=price-desc
        

Response Format

{
  "games": [
    {
      "game_id": 500,
      "title": "Star Wars: Dark Forces",
      "description": "Kyle Katarn is a former Imperial officer turned mercenary, now hired by the Rebel Alliance. After having stolen the Death Star plans ...",
      "price": "36.31",
      "rating": "7.90",
      "sample_cover_image": "https://cdn.mobygames.com/covers/4144523-star-wars-dark-forces-dos-front-cover.jpg",
      "sample_cover_thumbnail": "https://cdn.mobygames.com/64f827c0-aba7-11ed-99ae-02420a00019e.webp",
      "available": true
    },
    ...
  ],
  "totalPages": 10
}
        

Example Requests

Error Handling

If an invalid parameter value is provided (e.g., unsupported sort option), the server will replace it with the default value, alpha-desc in this case.

If no games match the specified filters, the server will return an empty response:

{
  "games": [],
  "totalPages": 0
}