Skip to content

spinov001-art/pokeapi-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

pokeapi-python 🎮

Lightweight Python client for PokeAPI. Get Pokemon stats, abilities, types, and more. No API key needed.

Quick Start

from pokeapi import PokeClient

client = PokeClient()

# Get Pokemon by name or ID
pokemon = client.pokemon("pikachu")
print(f"{pokemon['name']} — HP: {pokemon['hp']}, Attack: {pokemon['attack']}")
print(f"Types: {', '.join(pokemon['types'])}")
print(f"Abilities: {', '.join(pokemon['abilities'])}")

# Search by type
fire_pokemon = client.by_type("fire")
print(f"{len(fire_pokemon)} fire-type Pokemon")

# Get generation
gen1 = client.generation(1)
print(f"Gen 1: {len(gen1)} Pokemon")

# Random Pokemon
random = client.random()
print(f"Random: {random['name']}")

Features

  • 1000+ Pokemon — all generations, forms, and variants
  • Stats, abilities, types — complete battle data
  • Type matchups — strengths and weaknesses
  • Sprite URLs — official artwork for each Pokemon
  • Zero config — no API key, no signup

API Reference

Method Description
pokemon(name_or_id) Get Pokemon details
by_type(type_name) List Pokemon of a type
generation(gen_number) Pokemon in a generation
random() Random Pokemon
ability(name) Ability details
type_info(name) Type matchup data

Use Cases

  • Pokemon team builder
  • Pokedex web/mobile app
  • Discord bot with Pokemon commands
  • Educational tool for kids learning to code
  • Data analysis projects

Related Projects

License

MIT


Need a Custom Tool Built?

I build production-ready scrapers, APIs, and data tools — 78+ deployed on Apify, 270+ open-source repos.

📧 spinov001@gmail.com$250 flat rate, 48h delivery. Describe your project, get a free estimate in 2 hours.

🔧 Browse 78+ ready-made tools on Apify →

About

Lightweight Python client for PokeAPI — Pokemon stats, abilities, types. No API key needed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages