Star Wars API Scraper - Characters & Planets
Pricing
from $10.00 / 1,000 results
Go to Apify Store

Star Wars API Scraper - Characters & Planets
Scrape Star Wars universe data including characters, planets, films, species, vehicles and starships from SWAPI. Search and filter results.
Pricing
from $10.00 / 1,000 results
Rating
0.0
(0)
Developer
lulz bot
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Share
Star Wars API Scraper (SWAPI)
Scrape the Star Wars universe data from SWAPI. Get characters, planets, films, species, vehicles, and starships with full search and pagination support.
Features
- 6 resource types: People, planets, films, species, vehicles, starships
- Search: Filter by name/title to find specific entries
- Full pagination: Automatically follows all pages for complete datasets
- Rich data: All fields from the SWAPI API, properly transformed
- Configurable limit: Control how many results to return
Output Fields
People
| Field | Description |
|---|---|
name | Character name |
height | Height in cm |
mass | Mass in kg |
hairColor | Hair color |
skinColor | Skin color |
eyeColor | Eye color |
birthYear | Birth year (BBY/ABY) |
gender | Gender |
homeworld | Homeworld API URL |
films | Film appearance URLs |
Planets
| Field | Description |
|---|---|
name | Planet name |
climate | Climate type |
terrain | Terrain type |
population | Population count |
diameter | Diameter in km |
gravity | Gravity rating |
Films
| Field | Description |
|---|---|
title | Film title |
episodeId | Episode number |
director | Director name |
producer | Producer(s) |
releaseDate | Release date |
openingCrawl | Opening text crawl |
Input Options
- Mode: Resource type (people, planets, films, species, vehicles, starships)
- Search Query: Filter results by name (e.g. "Luke", "Tatooine")
- Limit: Max results to return (0 = all)
Use Cases
- Apps & Games: Build Star Wars reference apps or trivia games
- Data analysis: Analyze the Star Wars universe dataset
- Education: Learn about APIs and data scraping with a fun dataset
- Content creation: Generate Star Wars content with accurate data
- Chatbots: Power Star Wars trivia bots with structured data
Example Output
{"name": "Luke Skywalker","type": "person","height": "172","mass": "77","hairColor": "blond","eyeColor": "blue","birthYear": "19BBY","gender": "male","homeworld": "https://swapi.dev/api/planets/1/","films": ["https://swapi.dev/api/films/1/", "..."],"scrapedAt": "2026-04-26T12:00:00.000Z"}
Data Source
- SWAPI -- The Star Wars API, free and open
Run on Apify
This scraper runs on the Apify platform -- a full-stack web scraping and automation cloud. Sign up for a free account to get started with 30-day trial of all features.