GameGuru

GameGuru · Ações GPT

CheapShark Games API

  • GET /gamesList of Games

    Get a list of games that contain a given title or match a steamAppID. Response includes the cheapest current deal for each game.

Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "CheapShark Games API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://www.cheapshark.com/api/1.0",
      "description": "CheapShark API base URL"
    }
  ],
  "paths": {
    "/games": {
      "get": {
        "operationId": "getGamesList",
        "summary": "List of Games",
        "description": "Get a list of games that contain a given title or match a steamAppID. Response includes the cheapest current deal for each game.",
        "parameters": [
          {
            "name": "title",
            "in": "query",
            "description": "Search for a game by title, case insensitive. Required when not specifying steamAppID.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "steamAppID",
            "in": "query",
            "description": "Search for a game by Steam’s AppID.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of games to return, up to 60.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 60
            }
          },
          {
            "name": "exact",
            "in": "query",
            "description": "Flag to allow only exact string match for title parameter.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A list of games matching the query.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Game"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Game": {
        "type": "object",
        "properties": {
          "gameID": {
            "type": "string",
            "description": "Unique identifier for the game."
          },
          "steamAppID": {
            "type": "string",
            "nullable": true,
            "description": "Steam's AppID for the game, if available."
          },
          "cheapest": {
            "type": "string",
            "description": "The cheapest price currently available for the game."
          },
          "cheapestDealID": {
            "type": "string",
            "description": "Unique identifier for the cheapest deal."
          },
          "external": {
            "type": "string",
            "description": "The external name of the game."
          },
          "internalName": {
            "type": "string",
            "description": "The internal name of the game."
          },
          "thumb": {
            "type": "string",
            "description": "URL to the game's thumbnail image."
          }
        }
      }
    }
  }
}