Coder Social home page Coder Social logo

pokedevs / pokedex-api Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 0.0 6 KB

This is an issue only repository for the PokéDex API. You'll also find announcements about the API in the issues.

Home Page: https://pokedevs.gitbook.io

pokemon pokedex api pokemon-api pokedex-api pokeapi pokedevs

pokedex-api's People

Contributors

iamtraction avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pokedex-api's Issues

Retrieve multiple pokemon in a single request

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

Related to #1, it would be nice to be able to query the API for multiple pokemon in a single request. Could be done via query param ?number=1,3,4,7 on the pokemon endpoint.

Alternatively, you could implement a search endpoint that will return a list of pokemon name/id via a POST request with body data to filter. Something like this:

POST: /v1/search

Body: {"name":"saur"}
This would return all pokemon whose names match saur.

Body: {"gen":[1,2],"name":"saur"}
This would return all pokemon whose names match saur and are in the first 2 gens.

Search would then have the same data model as pokemon, but always return an array instead of a single.

API v2

Breaking Changes

  • Abilities
    abilities field is now an array of objects:
    {
      name: string;
      description: string;
      hidden: boolean;
    }
  • Mega Evolution
    • mega field will now represent whether a Pokemon can mega evolve.
    • mega field will be an object with details of the mega stone if the form is already a mega form.
    {
      stone: string;
      sprite: string;
    }
  • Ultra Beasts
    • Added codename field for the Ultra Beast's codename
    • Removed ultraBeast flag
  • abilities is now an array of string.
  • gender is now a string representing the gender ratio.
  • family is now an array of string representing the evolution line.
  • Removed family field.
  • Removed height and weight fields.
  • Removed mythical, legendary and starter flags.

These changes will be implemented after v2 release:

  • Pokemon with dex number ??? / 0
  • Pokemon forms (excluding mega forms)
  • Mythical flag
  • Legendary flag
  • Starter flag
  • Evolution Family Line
    • Branched Evolution Line
    • Parallel Evolution Line

Pokedex API has been released: pokedevs.gitbook.io

API Calls Recently Began Returning 404's

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

API calls for each and every Pokemon I try are resulting in a 404 error each time. Was working fine a few weeks ago.

I am still however able to access sprite images through editing this link for whichever pokemon is desired: https://cdn.traction.one/pokedex/pokemon/149.png

Meltan and Melmetal aren't on the API

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

I found your API recently, and I'd just like to note that Meltan and Melmetal don't seem to be on the API. This is obviously a big problem.

Image Problems

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

The pokemon images, doesn't work, i don't know if has a problem to the api but this url doesn't work example image

List of all pokemon [New Endpoint]

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

Taking a look to it, I saw we have the endpoint "pokemon/{id|name}", which returns the pokemon info.

But, there is no endpoint that list all the pokemon. Response can be a short array of a piece of info like:

{
    "name": "<pokemon_name>",
    "id": "<pokemon_id>",
    "url": "<pokemon_url_info>"
}

With this type of endpoint we can have a list of all the pokemon, so in apps or webapps can be used to show the user all the existing pokemons, allowing the user to go to the specific info of it.

Thanks in advance

Galar Pokemon

New pokemon released in sword and shield are not yet available in the pokedex

Error 1011 Access denied for showing image

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

Got error when accessing image, or any change how we should use image now?

error

How to use the gender attribute?

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

[Feature Request] Type effectiveness

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

The current API only has the type of Pokemon. It will be great if the API contains properties like effective, resistance as an array.

e.g. Using Pikachu

{
  "effective": ["water", "flying"],
  "resistance": ["ground"]
}

The API is gone?

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

Title is self-explanatory. The API stopped working today, and accessing it through a browser shows a Glitch 404 page saying the project can't be found.

Add new Galar pokemons

I was able to find that new galar pokemons (Generation VIII) are missing from the api and it would be great if you could add them as well! Thanks!

Pokemon API calls no longer working - CORS?

Access to fetch at 'https://pokeapi.glitch.me/v1/pokemon/716' from origin 'http://localhost:5000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

Update to Gen VIII

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

I really love this API because of its ease of use. Is there any by any change you will update it to Gen VIII. Is it possible for me contribute to it too?

API Endpoint for Fetching Pokémon Data Returns HTML Instead of JSON

I'm opening this issue because:

  • I have a question/doubt.
  • [ X] I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

When attempting to fetch Pokémon data from the https://ex.traction.one/pokedex/pokemon/{pokemon_name} endpoint, the expected JSON response is not returned. Instead, an HTML document is received, which seems to be a generic template or a placeholder, indicating the request might not be reaching a live API service. I could not find anything about HTML responses in the readme so I am led to believe this is an error.

Steps to Reproduce:

  1. Execute a curl command to the endpoint

curl -i -X GET \ -H "User-Agent: BastionDiscordBot (https://bastion.traction.one, v10.13.0)" \ https://ex.traction.one/pokedex/pokemon/greninja

or just
curl https://ex.traction.one/pokedex/pokemon/greninja

  1. See that the response is a generic HTML response rather than JSON with expected Pokemon data

Additional Information

  1. This issue was encountered when working on a Spring Boot application that uses this API. Requests made in this application specified the content header as "application/json"

Wrong data for Mega Gyarados

I'm opening this issue because:

  • I have a question/doubt.
  • I want to report a bug/issue.
  • I want to request a feature or suggest something.
  • Other:

Description:

Data returned from https://pokeapi.glitch.me/v1/pokemon/130 for Mega Gyarados is wrong
{
"number": "131",
"types": [
"Water",
"Flying"
],
"sprite": "https://cdn.traction.one/pokedex/pokemon/131-mega.png",
"description": "This gentle POKéMON loves to give people rides and provides a very comfortable way to get around."
}
It should be
{
"number": "130",
"types": [
"Water",
"Dark"
],
"sprite": "https://cdn.traction.one/pokedex/pokemon/130-mega.png",
"description": "Mega Evolution places a burden on its body. The stress causes it to become all the more ferocious."
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.