Pokemon abilities

PATH: pokemon/abilities
METHOD: get
Required queries:
  1. ability - Required (Ability name or id of a pokemon ability)
Status: 200 | Response type: json
Output:
{
    id: 1,
    name: "stench",
    generation: 3,
    effects: "This Pokémon's damaging moves have a 10% chance to make the target flinch with each hit if they do not already cause flinching as a secondary effect. This ability does not stack with a held item. Overworld: The wild encounter rate is halved while this Pokémon is first in the party.",
    description: "Helps repel wild POKéMON.",
    pokemons: [
        {
        pokemon: "gloom",
        hidden: true
        },
        {
        pokemon: "grimer",
        hidden: false
        },
        ...
    ],
    descriptions: [
        {
        version: "ruby-sapphire"
        },
        {
        version: "emerald"
        },
        ...
    ]
        }
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/pokemon/abilities?ability=1')
.then(res => res.json())
.then(json => {
  console.log(json)
});
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/pokemon/abilities?ability=1")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()

Pokemon items

PATH: pokemon/items
METHOD: get
Required queries:
  1. item - Required (Item name or id of a pokemon item)
Status: 200 | Response type: json
Output:
{
    id: 1,
    name: "master-ball",
    effects: "Used in battle: Catches a wild Pokémon without fail. If used in a trainer battle, nothing happens and the ball is lost.",
    cost: 0,
    attributes: [
        "countable",
        "consumable",
        "usable-in-battle",
        "holdable"
    ],
    category: "standard-balls",
    sprite: "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/master-ball.png",
    descriptions: [
        {
        description: "The best BALL that
        catches a POKéMON
        without fail.",
        version: "ruby-sapphire"
        },
        {
        description: "The best BALL that
        catches a POKéMON
        without fail.",
        version: "emerald"
        },
        ...
    ]
}
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/pokemon/items?item=1')
.then(res => res.json())
.then(json => {
  console.log(json)
});
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/pokemon/items?item=1")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()

Pokemon moves

PATH: pokemon/moves
METHOD: get
Required queries:
  1. move - Required (Pokemon move name or id of a pokemon move)
Status: 200 | Response type: json
Output:
{
    id: 1,
    name: "pound",
    generation: 1,
    effects: "Inflicts regular damage.",
    type: "normal",
    category: "physical",
    contest: "tough",
    pp: 35,
    power: 40,
    accuracy: 100,
    priority: 0,
    pokemon: [
        "clefairy",
        "jigglypuff",
        "grimer",
        "muk",
        ...
    ],
    descriptions: [
        {
        description: "Pounds with forelegs or tail.",
        version: "gold-silver"
        },
        ...
    ]
}
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/pokemon/moves?move=1')
.then(res => res.json())
.then(json => {
  console.log(json)
});
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/pokemon/moves?move=1")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()

Pokedex

PATH: pokemon/pokedex
METHOD: get
Required queries:
  1. pokemon - Required (Pokemon name)
Status: 200 | Response type: json
Output:
{
    name: "pikachu",
    id: "025",
    type: [
        "Electric"
    ],
    species: [
        "Mouse",
        "Pokémon"
    ],
    abilities: [
        "Static",
        "Lightning Rod"
    ],
    height: "0.4 m (1′04″)",
    weight: "6.0 kg (13.2 lbs)",
    base_experience: "112",
    gender: [
        "50% male",
        "50% female"
    ],
    egg_groups: [
        "Fairy",
        "Field"
    ],
    stats: {
        hp: "35",
        attack: "55",
        defense: "40",
        sp_atk: "50",
        sp_def: "50",
        speed: "90",
        total: "320"
    },
    family: {
        evolutionStage: 2,
        evolutionLine: [
            "Pichu",
            "Pikachu",
            "Raichu",
            "Raichu"
        ]
    },
    sprites: {
        normal: "http://i.some-random-api.ml/pokemon/pikachu.png",
        animated: "http://i.some-random-api.ml/pokemon/pikachu.gif"
    },
    description: "When several of these Pokémon gather, their electricity could build and cause lightning storms.",
    generation: "1"
}
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/pokemon/pokedex?pokemon=1')
.then(res => res.json())
.then(json => {
  console.log(json)
});
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/pokemon/pokedex?pokemon=1")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()