Pokédex Assistant GPT

Pokédex Assistant GPT · Acciones GPT

PokeAPI

API for retrieving Pokémon data.

  • GET /pokemon/{pokemonName}Retrieve detailed information about a specific Pokémon
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "PokeAPI",
    "description": "API for retrieving Pokémon data.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://pokeapi.co/api/v2",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/pokemon/{pokemonName}": {
      "get": {
        "operationId": "getPokemonByName",
        "summary": "Retrieve detailed information about a specific Pokémon",
        "parameters": [
          {
            "name": "pokemonName",
            "in": "path",
            "required": true,
            "description": "Name of the Pokémon to retrieve",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Detailed information about the specified Pokémon",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "abilities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ability": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              }
                            }
                          },
                          "is_hidden": {
                            "type": "boolean"
                          },
                          "slot": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "base_experience": {
                      "type": "integer"
                    },
                    "forms": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "game_indices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "game_index": {
                            "type": "integer"
                          },
                          "version": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "height": {
                      "type": "integer"
                    },
                    "held_items": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "id": {
                      "type": "integer"
                    },
                    "is_default": {
                      "type": "boolean"
                    },
                    "location_area_encounters": {
                      "type": "string"
                    },
                    "moves": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "name": {
                      "type": "string"
                    },
                    "order": {
                      "type": "integer"
                    },
                    "species": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      }
                    },
                    "sprites": {
                      "type": "object"
                    },
                    "stats": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "types": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "weight": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request if the request parameters are incorrect"
          },
          "404": {
            "description": "Pokémon not found"
          }
        }
      }
    }
  }
}