무료 게임 검색기 (FreeToGame.com)
무료 게임 검색기 (FreeToGame.com) · GPT Actions
FreeToGame API
Access programmatically the best free-to-play games and free MMO games.
GET /gamesRetrieve a list of games, optionally filtered by platform, category, and sort order.GET /gameRetrieve details for a specific game by its ID.GET /filterFilter games by multiple tags for personalized results.
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "FreeToGame API",
"version": "1.0.0",
"description": "Access programmatically the best free-to-play games and free MMO games."
},
"servers": [
{
"url": "https://www.freetogame.com/api",
"description": "FreeToGame API server"
}
],
"paths": {
"/games": {
"get": {
"summary": "Retrieve a list of games, optionally filtered by platform, category, and sort order.",
"operationId": "getGames",
"parameters": [
{
"name": "platform",
"in": "query",
"required": true,
"description": "The platform of the games to retrieve (pc, browser, all).",
"schema": {
"type": "string"
}
},
{
"name": "category",
"in": "query",
"required": true,
"description": "The category of the games to retrieve (e.g., mmorpg, shooter).",
"schema": {
"type": "string"
}
},
{
"name": "sort-by",
"in": "query",
"required": false,
"description": "The sorting criteria (release-date, popularity, alphabetical, relevance).",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A list of games matching the criteria.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Game"
}
}
}
}
},
"400": {
"description": "Invalid request parameters."
}
}
}
},
"/game": {
"get": {
"summary": "Retrieve details for a specific game by its ID.",
"operationId": "getGameDetails",
"parameters": [
{
"name": "id",
"in": "query",
"required": true,
"description": "The unique identifier of the game.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Details of the specified game.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GameDetails"
}
}
}
},
"400": {
"description": "Invalid game ID."
}
}
}
},
"/filter": {
"get": {
"summary": "Filter games by multiple tags for personalized results.",
"operationId": "filterGames",
"parameters": [
{
"name": "tag",
"in": "query",
"required": true,
"description": "Insert tag, e.g., mmorpg, shooter, pvp, mmofps, and more.",
"schema": {
"type": "string"
}
},
{
"name": "platform",
"in": "query",
"required": true,
"description": "The platform of the games to retrieve (e.g., pc, browser).",
"schema": {
"type": "string"
}
},
{
"name": "sort",
"in": "query",
"required": false,
"description": "The sorting criteria (release-date, popularity, relevance).",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Filtered list of games based on tags and optional parameters.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Game"
}
}
}
}
},
"400": {
"description": "Invalid request parameters."
}
}
}
}
},
"components": {
"schemas": {
"Game": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"title": {
"type": "string"
},
"thumbnail": {
"type": "string",
"format": "uri"
},
"short_description": {
"type": "string"
},
"game_url": {
"type": "string",
"format": "uri"
},
"genre": {
"type": "string"
},
"platform": {
"type": "string"
},
"publisher": {
"type": "string"
},
"developer": {
"type": "string"
},
"release_date": {
"type": "string",
"format": "date"
},
"freetogame_profile_url": {
"type": "string",
"format": "uri"
}
}
},
"GameDetails": {
"allOf": [
{
"$ref": "#/components/schemas/Game"
},
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"description": {
"type": "string"
},
"minimum_system_requirements": {
"type": "object",
"properties": {
"os": {
"type": "string"
},
"processor": {
"type": "string"
},
"memory": {
"type": "string"
},
"graphics": {
"type": "string"
},
"storage": {
"type": "string"
}
}
},
"screenshots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"image": {
"type": "string",
"format": "uri"
}
}
}
}
}
}
]
}
}
}
}