# Pokemon Scraper (PokeAPI) (`ninhothedev/pokemon-scraper`) Actor

$0.35/1K 🔥 Fast Pokémon scraper (PokeAPI)! Stats, types, abilities, sprites & base experience for every Pokémon. JSON, CSV, Excel or API in seconds. List names or browse & pull thousands for game apps & ML ⚡

- **URL**: https://apify.com/ninhothedev/pokemon-scraper.md
- **Developed by:** [ninhothedev](https://apify.com/ninhothedev) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Pokemon Scraper (PokeAPI)

Scrape structured **Pokemon data** from the free [PokeAPI](https://pokeapi.co) — stats, types, abilities, sprites, height and weight — as clean JSON. Fetch Pokemon by **name or id**, or bulk-scrape any **range of the Pokedex**. No API key, no login, no proxy required.

Perfect for building **game apps, Pokemon datasets, ML/AI training data, and fan sites**.

***

### What it does

- 🔎 **By name or id** — pass a list like `["pikachu", "charizard", 150]` and get a normalized record for each.
- 📚 **By list range** — set a `limit`/`offset` to pull chunks of the full Pokedex (Gen 1 → newest).
- ⚡ **Flat, ready-to-use stats** — HP, Attack, Defense, Special Attack, Special Defense and Speed are pivoted into named columns (no nested arrays to parse).
- 🖼️ **Best sprite** — prefers official artwork, falls back to the default front sprite.
- 🧱 **Stable schema** — every field is nullable, so downstream tables and pipelines never break.

### Example output

```json
{
  "id": 25,
  "name": "pikachu",
  "height": 4,
  "weight": 60,
  "base_experience": 112,
  "types": ["electric"],
  "abilities": ["static", "lightning-rod"],
  "hp": 35,
  "attack": 55,
  "defense": 40,
  "special_attack": 50,
  "special_defense": 50,
  "speed": 90,
  "sprite": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/25.png",
  "url": "https://pokeapi.co/api/v2/pokemon/25",
  "scraped_at": "2026-07-03T00:00:00+00:00"
}
```

### Input

| Field | Type | Description |
|-------|------|-------------|
| `mode` | select | `pokemon` (scrape each item in `names`) or `list` (scrape a Pokedex range). |
| `names` | array | Pokemon names or numeric ids. Used in `pokemon` mode. Prefilled with `pikachu`, `charizard`, `mewtwo`. |
| `listLimit` | integer | How many Pokemon to fetch in `list` mode (default `50`). |
| `listOffset` | integer | Where to start in the Pokedex in `list` mode (default `0` = Bulbasaur). |
| `maxItems` | integer | Hard cap per run (default `100`, max `1000`) to control cost. |

#### Example: scrape by name

```json
{
  "mode": "pokemon",
  "names": ["pikachu", "charizard", "mewtwo", 6]
}
```

#### Example: scrape the first 100 Pokemon

```json
{
  "mode": "list",
  "listLimit": 100,
  "listOffset": 0
}
```

### Output fields

`id`, `name`, `height`, `weight`, `base_experience`, `types[]`, `abilities[]`, `hp`, `attack`, `defense`, `special_attack`, `special_defense`, `speed`, `sprite`, `url`, `scraped_at`.

### Use cases

- **Game apps** — power a Pokedex, team builder, or battle calculator with real stats.
- **Datasets** — export the full Pokedex to CSV/JSON/Excel for analysis.
- **ML / AI** — build training data for stat prediction, type classification or generative models.
- **Fan sites & bots** — keep a Pokemon wiki, Discord bot, or content site up to date.

### Pricing & cost

Pay only for what you scrape. Typical cost is around **$0.50 per 1,000 Pokemon** (input and output combined) on Apify's pay-per-result model — a few cents for a full Gen-1 pull. Output is clean JSON exportable to CSV, Excel, JSON and API.

### How it compares

| | This actor | Manual PokeAPI calls | Generic HTTP scraper |
|---|---|---|---|
| No code / no API key | ✅ | ❌ | ❌ |
| Flat, pivoted stats | ✅ | ❌ | ❌ |
| Bulk Pokedex ranges | ✅ | ⚠️ manual paging | ⚠️ |
| Stable nullable schema | ✅ | ❌ | ❌ |
| Export CSV/JSON/Excel | ✅ | ❌ | ⚠️ |

### Related actors

- [Rick and Morty Scraper](https://apify.com/ninhothedev/rick-and-morty-scraper)
- [Anime Scraper](https://apify.com/ninhothedev/anime-scraper)
- [TVmaze TV Scraper](https://apify.com/ninhothedev/tvmaze-tv-scraper)
- [Steam Games Scraper](https://apify.com/ninhothedev/steam-games-scraper)

### Support

Questions, bugs, or a field you need added? Open an issue or contact us through the Apify actor page — we reply fast.

### Keywords

pokemon scraper, pokeapi, pokemon api, pokedex data, pokemon stats, pokemon dataset, pokemon types, pokemon abilities, pokemon sprites, pokemon json, machine learning dataset, game data api

# Actor input Schema

## `mode` (type: `string`):

How to select Pokemon. 'pokemon' scrapes each name/id in the 'names' list. 'list' scrapes a range from the full Pokedex using 'listLimit' and 'listOffset'.

## `names` (type: `array`):

List of Pokemon names (e.g. 'pikachu') or numeric ids (e.g. 25) to scrape. Used only in 'pokemon' mode.

## `listLimit` (type: `integer`):

Number of Pokemon to fetch from the Pokedex list in 'list' mode.

## `listOffset` (type: `integer`):

Starting offset into the Pokedex list in 'list' mode (0 = first Pokemon, Bulbasaur).

## `maxItems` (type: `integer`):

Hard cap on the number of Pokemon scraped in a single run, to control cost.

## Actor input object example

```json
{
  "mode": "pokemon",
  "names": [
    "pikachu",
    "charizard",
    "mewtwo"
  ],
  "listLimit": 50,
  "listOffset": 0,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "names": [
        "pikachu",
        "charizard",
        "mewtwo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ninhothedev/pokemon-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "names": [
        "pikachu",
        "charizard",
        "mewtwo",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ninhothedev/pokemon-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "names": [
    "pikachu",
    "charizard",
    "mewtwo"
  ]
}' |
apify call ninhothedev/pokemon-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ninhothedev/pokemon-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/SWZMrdoGPD3Zm4l6F/builds/ClIdJexEFl88D2ASS/openapi.json
