API_URL - https://stranger-things-character-api.p.rapidapi.com
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 ) ;
} ) ;