Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 1.73 KB

README.md

File metadata and controls

67 lines (54 loc) · 1.73 KB

Stranger Things API

Stranger Things API

Home Docs
Pull Requests Issues
Contribution Guide Code of Conduct Lisense

Base API URL

API_URL - https://stranger-things-character-api.p.rapidapi.com

API KEY

Get an API Key from Rapid API

Get All Characters Example

const axios = require("axios");

const options = {
  method: 'GET',
  url: 'https://stranger-things-character-api.p.rapidapi.com/characters',
  params: {limit: '5', skip: '10'},
  headers: {
    'X-RapidAPI-Key': <YOUR_API_KEY>,
    'X-RapidAPI-Host': 'stranger-things-character-api.p.rapidapi.com'
  }
};

axios.request(options).then(function (response) {
	console.log(response.data);
}).catch(function (error) {
	console.error(error);
});

Get a Single Character Example

const axios = require("axios");

const options = {
  method: 'GET',
  url: 'https://stranger-things-character-api.p.rapidapi.com/characters/68',
  headers: {
    'X-RapidAPI-Key': <YOUR_API_KEY>,
    'X-RapidAPI-Host': 'stranger-things-character-api.p.rapidapi.com'
  }
};

axios.request(options).then(function (response) {
	console.log(response.data);
}).catch(function (error) {
	console.error(error);
});