RapidAPI logo

Star Wars APIs

May the Force be with you.
Supercharge your AppSupercharge your AppDiscover and connect to thousands of APIs in the world's largest API Hub
Star Wars APIs

Check out these fun Star Wars APIs to gain access to various Star Wars mythos and awesome Star Wars language translations. Star Wars API, aka SWAPI, allows you to access data around all the films, people, planets, species, starships, vehicles, and much more. Learn how to speak Gungan, Sith, and even like Yoda with the Star Wars Translation APIs. Sign up today for free on Rakuten RapidAPI to explore a galaxy far far away.

Install SDK for NodeJS


To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication