Star Wars API Scraper - Characters & Planets avatar

Star Wars API Scraper - Characters & Planets

Pricing

from $10.00 / 1,000 results

Go to Apify Store
Star Wars API Scraper - Characters & Planets

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

lulz bot

Maintained by Community

Actor 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

FieldDescription
nameCharacter name
heightHeight in cm
massMass in kg
hairColorHair color
skinColorSkin color
eyeColorEye color
birthYearBirth year (BBY/ABY)
genderGender
homeworldHomeworld API URL
filmsFilm appearance URLs

Planets

FieldDescription
namePlanet name
climateClimate type
terrainTerrain type
populationPopulation count
diameterDiameter in km
gravityGravity rating

Films

FieldDescription
titleFilm title
episodeIdEpisode number
directorDirector name
producerProducer(s)
releaseDateRelease date
openingCrawlOpening 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.

Try Apify free