/films/6

API Endpoint:

Request:

request.js
1fetch("https://swapi.info/api/films/6")
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

Result:

response.json
1{
2 "title": "Revenge of the Sith",
3 "episode_id": 3,
4 "opening_crawl": "War! The Republic is crumbling\r\nunder attacks by the ruthless\r\nSith Lord, Count Dooku.\r\nThere are heroes on both sides.\r\nEvil is everywhere.\r\n\r\nIn a stunning move, the\r\nfiendish droid leader, General\r\nGrievous, has swept into the\r\nRepublic capital and kidnapped\r\nChancellor Palpatine, leader of\r\nthe Galactic Senate.\r\n\r\nAs the Separatist Droid Army\r\nattempts to flee the besieged\r\ncapital with their valuable\r\nhostage, two Jedi Knights lead a\r\ndesperate mission to rescue the\r\ncaptive Chancellor....",
5 "director": "George Lucas",
6 "producer": "Rick McCallum",
7 "release_date": "2005-05-19",
8 "characters": [
9 "https://swapi.info/api/people/1",
10 "https://swapi.info/api/people/2",
11 "https://swapi.info/api/people/3",
12 "https://swapi.info/api/people/4",
13 "https://swapi.info/api/people/5",
14 "https://swapi.info/api/people/6",
15 "https://swapi.info/api/people/7",
16 "https://swapi.info/api/people/10",
17 "https://swapi.info/api/people/11",
18 "https://swapi.info/api/people/12",
19 "https://swapi.info/api/people/13",
20 "https://swapi.info/api/people/20",
21 "https://swapi.info/api/people/21",
22 "https://swapi.info/api/people/33",
23 "https://swapi.info/api/people/35",
24 "https://swapi.info/api/people/46",
25 "https://swapi.info/api/people/51",
26 "https://swapi.info/api/people/52",
27 "https://swapi.info/api/people/53",
28 "https://swapi.info/api/people/54",
29 "https://swapi.info/api/people/55",
30 "https://swapi.info/api/people/56",
31 "https://swapi.info/api/people/58",
32 "https://swapi.info/api/people/63",
33 "https://swapi.info/api/people/64",
34 "https://swapi.info/api/people/67",
35 "https://swapi.info/api/people/68",
36 "https://swapi.info/api/people/75",
37 "https://swapi.info/api/people/78",
38 "https://swapi.info/api/people/79",
39 "https://swapi.info/api/people/80",
40 "https://swapi.info/api/people/81",
41 "https://swapi.info/api/people/82",
42 "https://swapi.info/api/people/83"
43 ],
44 "planets": [
45 "https://swapi.info/api/planets/1",
46 "https://swapi.info/api/planets/2",
47 "https://swapi.info/api/planets/5",
48 "https://swapi.info/api/planets/8",
49 "https://swapi.info/api/planets/9",
50 "https://swapi.info/api/planets/12",
51 "https://swapi.info/api/planets/13",
52 "https://swapi.info/api/planets/14",
53 "https://swapi.info/api/planets/15",
54 "https://swapi.info/api/planets/16",
55 "https://swapi.info/api/planets/17",
56 "https://swapi.info/api/planets/18",
57 "https://swapi.info/api/planets/19"
58 ],
59 "starships": [
60 "https://swapi.info/api/starships/2",
61 "https://swapi.info/api/starships/32",
62 "https://swapi.info/api/starships/48",
63 "https://swapi.info/api/starships/59",
64 "https://swapi.info/api/starships/61",
65 "https://swapi.info/api/starships/63",
66 "https://swapi.info/api/starships/64",
67 "https://swapi.info/api/starships/65",
68 "https://swapi.info/api/starships/66",
69 "https://swapi.info/api/starships/68",
70 "https://swapi.info/api/starships/74",
71 "https://swapi.info/api/starships/75"
72 ],
73 "vehicles": [
74 "https://swapi.info/api/vehicles/33",
75 "https://swapi.info/api/vehicles/50",
76 "https://swapi.info/api/vehicles/53",
77 "https://swapi.info/api/vehicles/56",
78 "https://swapi.info/api/vehicles/60",
79 "https://swapi.info/api/vehicles/62",
80 "https://swapi.info/api/vehicles/67",
81 "https://swapi.info/api/vehicles/69",
82 "https://swapi.info/api/vehicles/70",
83 "https://swapi.info/api/vehicles/71",
84 "https://swapi.info/api/vehicles/72",
85 "https://swapi.info/api/vehicles/73",
86 "https://swapi.info/api/vehicles/76"
87 ],
88 "species": [
89 "https://swapi.info/api/species/1",
90 "https://swapi.info/api/species/2",
91 "https://swapi.info/api/species/3",
92 "https://swapi.info/api/species/6",
93 "https://swapi.info/api/species/15",
94 "https://swapi.info/api/species/19",
95 "https://swapi.info/api/species/20",
96 "https://swapi.info/api/species/23",
97 "https://swapi.info/api/species/24",
98 "https://swapi.info/api/species/25",
99 "https://swapi.info/api/species/26",
100 "https://swapi.info/api/species/27",
101 "https://swapi.info/api/species/28",
102 "https://swapi.info/api/species/29",
103 "https://swapi.info/api/species/30",
104 "https://swapi.info/api/species/33",
105 "https://swapi.info/api/species/34",
106 "https://swapi.info/api/species/35",
107 "https://swapi.info/api/species/36",
108 "https://swapi.info/api/species/37"
109 ],
110 "created": "2014-12-20T18:49:38.403000Z",
111 "edited": "2014-12-20T20:47:52.073000Z",
112 "url": "https://swapi.info/api/films/6"
113}
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.