Elixir SWAPI
The Star Wars API, reimplemented in Elixir.
The Star Wars API
This is a collection of all the resources within the vast Star Wars universe, presented in easily accessible JSON format. Including details about films, characters, starships, vehicles, planets, and more. Whether you're a developer working on a Star Wars-themed project or a fan eager to explore the intricate details of the galaxy far, far away, this API provides a rich and organized dataset for your needs.
Usage
You can use this API in your projects and tutorials. You can find all resources under documentation tab. We also provide Postman collection and Open API definition.
For performance testing, you can find docker image on our GitHub repo and run the whole application yourself.
Examples
GET
https://swapi.profiq.com/api/planets/1
{
"id": 1,
"name": "Tatooine",
"created": "2014-12-09T13:50:49Z",
"url": "https://swapi.profiq.com/api/planets/1",
"diameter": "10465",
"edited": "2014-12-20T20:58:18Z",
"films": [
"https://swapi.profiq.com/api/films/1",
"https://swapi.profiq.com/api/films/3",
"https://swapi.profiq.com/api/films/4",
"https://swapi.profiq.com/api/films/5",
"https://swapi.profiq.com/api/films/6"
],
"terrain": "desert",
"surface_water": "1",
"rotation_period": "23",
"residents": [
"https://swapi.profiq.com/api/people/1",
"https://swapi.profiq.com/api/people/2",
"https://swapi.profiq.com/api/people/4",
"https://swapi.profiq.com/api/people/6",
"https://swapi.profiq.com/api/people/7",
"https://swapi.profiq.com/api/people/8",
"https://swapi.profiq.com/api/people/9",
"https://swapi.profiq.com/api/people/11",
"https://swapi.profiq.com/api/people/43",
"https://swapi.profiq.com/api/people/62"
],
"population": "200000",
"orbital_period": "304",
"gravity": "1 standard",
"climate": "arid"
}
GET
https://swapi.profiq.com/api/starships?search="death star"
{
"count": 1,
"next": null,
"results": [
{
"id": 9,
"name": "Death Star",
"length": "120000",
"created": "2014-12-10T16:36:50Z",
"url": "https://swapi.profiq.com/api/starships/9",
"edited": "2014-12-20T21:26:24Z",
"films": [
"https://swapi.profiq.com/api/films/1"
],
"starship_class": "Deep Space Mobile Battlestation",
"pilots": [],
"passengers": "843,342",
"model": "DS-1 Orbital Battle Station",
"max_atmosphering_speed": "n/a",
"manufacturer": "Imperial Department of Military Research, Sienar Fleet Systems",
"hyperdrive_rating": "4.0",
"crew": "342,953",
"cost_in_credits": "1000000000000",
"consumables": "3 years",
"cargo_capacity": "1000000000000",
"MGLT": "10"
}
],
"previous": null
}