Skip to content

Instantly share code, notes, and snippets.

@Cu3PO42
Last active January 8, 2022 16:56
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Cu3PO42/8c5de0c6d1072f28a086 to your computer and use it in GitHub Desktop.
Save Cu3PO42/8c5de0c6d1072f28a086 to your computer and use it in GitHub Desktop.

Request (POST)

Request Headers

  • Origin
    Set to http://3ds.pokemon-gl.com.

  • Referer
    Set to http://3ds.pokemon-gl.com/battle/oras/.

  • Content-Type
    Set to application/x-www-form-urlencoded; charset=UTF-8.

  • User-Agent
    Can be anything, but must be set.

Request Body

  • languageId
ID Language
1 Japanese
2 English
3 French
4 Italian
5 German
  • seasonId
ID Season
108 VGC 2015
  • battleType
ID Battle Type
0 Average of all others
1 Singles
2 Doubles
3 Triples
4 Rotation
5 Specials
  • timezone
    Timezone string

  • pokemonId
    n-f where n is the Pokédex number, without trailing zeroes, and f is the form ID

  • displayNumberWaza
    Number of most common moves to list (default: 10)

  • displayNumberTokusei
    Number of most commonly used abilities to list (default: 3)

  • displayNumberSeikaku
    Number of most commonly used Natures to list (default: 10)

  • displayNumberItem
    Number of most commonly used items to list (default: 10)

  • displayNumberLevel
    Does not appear to have an influence on the response (default: 10)

  • displayNumberPokemonIn
    Number of most common teammates to list(default: 10)

  • dispayNumberPokemonDown
    Number of most common Pokémons that kill this Pokémon to list

  • displayNumberPokemonDownWaza
    Number of moves that this Pokémon most commonly dies to to list

  • timestamp
    JavaScript timestamp of the request time (UNIX timestamp * 1000 + ms)

Note: The default values are what the Pokémon GL website uses, they still need to be specified.

Response (JSON)

  • beforePokemonId
    Pokémon with previous ID (loops around at #719 (Diancie)) and standard form

  • nextPokemonId
    Pokémon with next ID (loops around at #719 (Diancie)) and standard form

  • rankingPokemonDown : [PokemonRanking]
    Pokémon this Pokémon most commonly dies to.
    Is "" for Pokémon that aren't used/allowed in the current meta game.

  • rankingPokemonDownWaza : [MoveRanking]
    Moves this Pokémon most commonly dies to.
    The last element of the Array always represents all other moves. It has 0 for all the indices and null for wazaName.
    Is "" for Pokémon that aren't used/allowed in the current meta game.

  • rankingPokemonDownWazaOther : MoveRanking Statistical probablility for the Pokémon not to faint through an opponent's move. Indices are 0, wazaName is null. Is "" for Pokémon that aren't used/allowed in the current meta game.

  • rankingPokemonIn : [PokemonRanking]
    Most common teammates for this Pokémon.
    Is "" for Pokémon that aren't used/allowed in the current meta game.

  • rankingPokemonInfo : Pokemon
    Info about the Pokémon itself.

  • rankingPokemonSufferer : [PokemonRanking] Pokémon that this Pokémon most commonly defeats.
    Is "" for Pokémon that aren't used/allowed in the current meta game.

  • rankingPokemonSuffererWaza : [MoveRanking]
    Moves this Pokémon most commonly uses to defeat other Pokémon.
    Is "" for Pokémon that aren't used/allowed in the current meta game.

  • rankingPokemonTrend : object
    Is "" for Pokémon that aren't used/allowed in the current meta game.

    • itemInfo : [ItemRanking]
      Items most commonly carried by this Pokémon.

    • seikakuInfo : [NatureRanking]
      Natures most commonly used on this Pokémon.

    • tokuseiInfo : [AbilityRanking]
      Abilities most commonly found on this Pokémon.

    • wazaInfo : [MoveRanking]
      Moves most commonly known by this Pokémon.

  • status_code : String

Code Status
0000 OK
4000 Unknown languageId or missing User-Agent. Possibly other errors.
  • timezoneName : String
    Presumably timezone that was passed in?

Pokemon

  • formName : String
    Name of the form. May be null.

  • formNo : String
    ID of the form.

  • height : String
    Height of the Pokémon. Parable as double. Unit depends on languageId

languageId Unit
1, 3, 4, 5 centimeter
2 centi feet
  • monsno : Int
    Pokédex number.

  • name : String Name of the Pokémon.

  • ranking : Int
    Ranking of the Pokémon in the current context.

  • sequenceNumber : Int
    Apparently the same as ranking.

  • typeId1 : Int
    ID of the first type.

  • typeId2 : Int
    ID of the second type. 0 if the Pokémon only has one type.

  • typeName1 : String
    Name of the first type.

  • typeName2 : String
    Name of the second type. null if the Pokémon doesn't have a second type.

  • weight : String
    Weight of the Pokémon. Can be parsed as double. Unit depends on the languageId.

languageId Unit
1, 3, 4, 5 hectograms
2 hecto lbs

PokemonRanking

  • battlingChangeFlg : Int
    1 if the Pokémon changed its form during battle, e.g. mega evolved, otherwise 0.

  • countBattleByForm : Int
    Might be the same as battlingChangeFlg, but might also contain the number of alternate forms used.

  • formName : String
    Name of the form. May be null.

  • formNo : String
    ID of the form.

  • monsno : Int
    Pokédex number.

  • name : String Name of the Pokémon.

  • ranking : Int
    Ranking of the Pokémon in the current context.

  • sequenceNumber : Int
    Apparently the same as ranking.

  • typeId1 : Int
    ID of the first type.

  • typeId2 : Int
    ID of the second type. 0 if the Pokémon only has one type.

  • typeName1 : String
    Name of the first type.

  • typeName2 : String
    Name of the second type. null if the Pokémon doesn't have a second type.

MoveRanking

  • ranking : Int
    Ranking of the move in the current context, sorted by usage.

  • sequenceNumber : Int
    Apparently the same as ranking.

  • typeId : Int
    Type of the move.

  • usageRate : Double
    Usage rate of the move in percent in the current context.

  • wazaName : String
    Name of the move.

ItemRanking

  • name : String
    Name of the item.

  • ranking : Int
    Ranking of the item in the current context, sorted by usage.

  • sequenceNumber : Int
    Apparently the same as ranking.

  • usageRate : Double
    Usage rate of the item in percent in the current context.

NatureRanking

  • name : String
    Name of the nature.

  • ranking : Int
    Ranking of the nature in the current context, sorted by usage.

  • sequenceNumber : Int
    Apparently the same as ranking.

  • usageRate : Double
    Usage rate of the nature in percent in the current context.

AbilityRanking

  • name : String
    Name of the ability.

  • ranking : Int
    Ranking of the ability in the current context, sorted by usage.

  • sequenceNumber : Int
    Apparently the same as ranking.

  • usageRate : Double
    Usage rate of the ability in percent in the current context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment