API Endpoint:


2 .then((res) => res.json()) // Parse the JSON content from the API to be consumed
3 .then((json) => console.log(json)) // Log the JSON response to your console
4 .catch((error) => console.error(error)) // Log the API error (if any) to your console


2 "name": "Cato Neimoidia",
3 "rotation_period": "25",
4 "orbital_period": "278",
5 "diameter": "0",
6 "climate": "temperate, moist",
7 "gravity": "1 standard",
8 "terrain": "mountains, fields, forests, rock arches",
9 "surface_water": "unknown",
10 "population": "10000000",
11 "residents": [
12 "https://swapi.info/api/people/33"
13 ],
14 "films": [
15 "https://swapi.info/api/films/6"
16 ],
17 "created": "2014-12-10T13:46:28.704000Z",
18 "edited": "2014-12-20T20:58:18.449000Z",
19 "url": "https://swapi.info/api/planets/18"
What is this ?

The Star Wars API, or "swapi" (Swah-pee) is the world‘s first quantified and programmatically-accessible data source for all the data from the Star Wars canon universe!

We‘ve taken all the rich contextual stuff from the universe and formatted into something easier to consume with software. Then we went and stuck an API on the front so you can access it all!

How can I use it ?

All the data is accessible through our HTTP web API. Consult our explorer pages if you‘d like to get started.

Promise of longevity

Swapi.info is here to stay!. Created as service which runs solely via static files, this service does not require database or expensive hosting to run. Currently hosted on the generosity of Cloudflare Pages, the only barrier to utilization is a public facing domain. No other costs associated with running this project yourself as well. Created as a self-owned alternative to keep my older projects alive, now publicly available and Open Source allows it to be perpetually available to the community.