• Check out the relaunch of our general collection, with classic designs and new ones by our very own Pissog!
  • The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

Ou Tier api

Hello!
For my final project in school, I've decided to make a website for me and my friends pokemon league(it was done through spreadsheets before). I was wondering if there was an api that would grab whatever is current ou tier list so that I can display it on my own site. So I want to break up list of draftable pokemon by ou, uu, ru, everything else. Writing this list out before was really tedious so trying to automate this stuff as much as possible.

FYI very new to coding so not sure if this is a good/bad question or even possible. Just figuring out my feature list right now.
 
you have several options, you can either directly parse this https://github.com/smogon/pokemon-showdown/blob/master/data/formats-data.ts or this https://github.com/pkmn/smogon <- not totally sure for this one tho

or if you want a typescript solution you can use some kind of wrapper like pokemon-showdown itself or pre's pkmn package :
https://github.com/pkmn/ps/blob/main/dex
Thank you so much! The first option I believe should work just fine since I just learned how to loop data from an api this week.
 
Thank you so much! The first option I believe should work just fine since I just learned how to loop data from an api this week.
note that its not the best solution in the long run since its a TS file so the file structure can be subject to change in the future. im sure there is a better solution for a non-nodejs backend website but i forgot :psysly:
 
note that its not the best solution in the long run since its a TS file so the file structure can be subject to change in the future. im sure there is a better solution for a non-nodejs backend website but i forgot :psysly:
if you have time could you explain the NodeJS solution for this. Haven't discussed it fully with my teacher but I know NodeJS is on the table, I think LAMP stack was most recommended, but we haven't learned that one just yet(Will be starting this project in January).
 
If you are only considering the generation 9 metagames, Pokémon Showdown also exports Pokédex data containing tiering info for each Pokémon. The format is JSON, and the URL is https://play.pokemonshowdown.com/data/pokedex.json. Here is an example for Kingambit:

1760259811071.png
 
Back
Top