pokeapi icon indicating copy to clipboard operation
pokeapi copied to clipboard

Ribbons endpoint

Open totalaj opened this issue 1 year ago • 8 comments

There is currently no information about Ribbons on the PokeAPI. Is this planned? It would be real neat

totalaj avatar Mar 01 '25 10:03 totalaj

Hi! I'm interested in adding the Ribbon endpoints. Can I work on this issue?

nrak126 avatar Aug 05 '26 19:08 nrak126

Feel free to work on it, nothing is assigned! Unless someone has mentioned it in the issue you should be good. Just link this issue in any PR you make later on

jemarq04 avatar Aug 05 '26 19:08 jemarq04

I'd personally love this, as a Ribbon Hunter I find the information online pretty inconsistent.

phalt avatar Aug 06 '26 09:08 phalt

I have an app also hosted on GitHub, Ribbons.Guide, that provides a web interface for tracking Pokemon and seeing which ribbons they can earn in which games as well as if they're ready to transfer up a generation. @phalt I hope this can help you with your hunts! If this would be helpful for PokeAPI, feel free to use my code (with credit, of course, it was excruciating to figure out the Footprint Ribbon...).

SlyAceZeta avatar Aug 07 '26 18:08 SlyAceZeta

ok so sprites are in place in the sprites repo which can be referenced here in pokeapi when we add the data part of it, I gave a quick look at ribbons.guide (thx @SlyAceZeta ) and it looks pretty elaborate with lot of inference based on game history and stage

now I am no expert on ribbon hunting i call it a day after i beat elite 4/champion so wanted to consult @phalt @SlyAceZeta being that pokeapi is a static api we serve json's ideally we would want to provide comprehensive data around this such that clients/users can just infer the ribbons obtainable themselves

so whats the minimum set of data required for that and how would you folks like to see it modeled, from what I saw on bulbapedia they just seem to list the ribbons, name,desc, pics gen wise so that dosent seem to cut if for the use case discussed so far

FallenDeity avatar Oct 26 '26 16:10 FallenDeity

The way that my app does it is by checking which games a Pokemon can go to, which Ribbons and Marks are earnable in those games, and whether the Pokemon is capable of earning those Ribbons or Marks. The minimum set of data from a Pokemon to figure that out is:

  • species/form info
    • the full list of games the Pokemon species/form can transfer into
    • whether that species/form is voiceless (for the Footprint Ribbon)
  • per-Ribbon/Mark info
    • the full list of games the Ribbon/Mark can be earned in
    • each Ribbon/Mark's ban list
  • per-game info
    • the games that a Pokemon can travel to from that game (Ribbons.Guide handles this by grouping certain games together)
specific Pokemon's info -- this is the part PokeAPI can maybe skip and allow clients/users to handle, so I've put it in a collapse block, but some of this could be adapted in some way
  • the game it's currently in (for which games it can still go to)
  • its Origin Mark or Origin Game (for fringe cases with game or ribbon compatibility)
  • its current level (for the Footprint Ribbon and Winning Ribbon)
  • its met level (for the Footprint Ribbon; note that this specific data point can change!)
  • its current Ribbons and Marks (for excluding Ribbons and Marks it already has, plus fringe cases with certain Marks and the BDSP paid ribbons)
  • its scale value (for the Mini and Jumbo Marks)
  • whether it was one of the USUM-exclusive Totems (cannot leave USUM)
  • whether it has the GMax flag (Pikachu, Eevee, Meowth, and Duraludon can't enter games other than SwSh if they have this)
  • whether it's a Shadow Pokemon from Colosseum or XD (only these can earn the National Ribbon)

I'll leave figuring out how to model the resulting data to you guys since I don't use PokeAPI myself.

SlyAceZeta avatar Oct 26 '26 17:10 SlyAceZeta

There are some various nuances when it comes to what Pokemon can get certain ribbons, like Ditto not getting Gen 4 Contest ribbons because it can only use Transform, but if you use the Rage Glitch, then you can get them on it.

I agree with @SlyAceZeta that users can handle these eligibility conditions on their apps (I do this already myself). If someone wants to tackle adding that to the PokeAPI, it would be great, but for now, maybe just the ribbons' information would be enough.

ItsMeJoji avatar Oct 26 '26 18:10 ItsMeJoji

I am not a committed ribbon hunter so I can't comment, but it seems to me the only thing difficult to add will be a "condition" - and we should avoid trying to model that too specifically. I think we can get away with a text string that just explains it, as we only care about offering the data, not offering mechanics. It also makes it easier to change if we get the mechanic wrong.

phalt avatar Oct 27 '26 01:10 phalt