aztro

FREEMIUM
By sameer.kumar
Updated 8 days ago
5.7/10
Popularity Score
189ms
Latency
100%
Success Rate

aztro API Documentation

aztro API - Get daily horoscope!

View API Details
POSTAll in one endpoint
POSTAll in one endpoint
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
signSTRING
REQUIREDPossible values - aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius, capricorn, aquarius and pisces.
Optional Parameters
daySTRING
OPTIONALPossible values - "today", "yesterday" and "tomorrow"
Code Snippet
unirest.post("https://sameer-kumar-aztro-v1.p.rapidapi.com/?sign=aries&day=today")
.header("X-RapidAPI-Host", "sameer-kumar-aztro-v1.p.rapidapi.com")
.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);
});
Sample Response
General
Request URL: https://sameer-kumar-aztro-v1.p.rapidapi.com/?sign={sign}&day={day}
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

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

unirest.post("https://sameer-kumar-aztro-v1.p.rapidapi.com/?sign=aries&day=today")
.header("X-RapidAPI-Host", "sameer-kumar-aztro-v1.p.rapidapi.com")
.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