Skip to content

Latest commit

 

History

History
153 lines (136 loc) · 3.79 KB

README.md

File metadata and controls

153 lines (136 loc) · 3.79 KB

Rapid-JS

Fast API search and implementation using various APIs like newsAPI, weatherAPI, memeAPI and FoodAPI.

Node JS Usage

News API

const rapidAPI = require('rapid-js');

let topHeadlines = rapidAPI.headlines(KEY,CATEGORY);
let newsByKeyword = rapidAPI.keyword(KEY,SEARCH_WORD,COUNTRY);

Weather API

const rapidAPI = require('rapid-js');

let weatherData = rapidAPI.weather(KEY,CITYNAME);
let weatherByCityID = rapidAPI.weatherByCityID(KEY,ID);
let weatherByLatLon = rapidAPI.weatherByLatLon(KEY,LAT,LON,COUNT);
let weatherByZIP = rapidAPI.weatherByZIP(KEY,ZIP,COUNTRYCODE);
let weatherByRectZone = rapidAPI.weatherByRectZone(KEY,DIMENSION);

Meme API

const rapidAPI = require('rapid-js');

let memes = rapidAPI.meme();

Food API

const rapidAPI = require('rapid-js');

let foodDetails = rapidAPI.food(KEY,Food_ID,FOOD_NAME);

API Methods and Optional Parameters

NewsAPI

Method name Parameter list
headlines API_KEY CATEGORY COUNTRY(optional) SORTBY(optional) LANGUAGE(optional)
keyword API_KEY SEARCH_WORD COUNTRY(optional) SORTBY(optional) LANGUAGE(optional)

WeatherAPI

Method name Parameter list
weather API_KEY CITY_NAME STATE_CODE(optional) MODE(optional) UNITS(optional) LANGUAGE(optional)
weatherByCityId API_KEY CITY_ID MODE(optional) UNITS(optional) LANGUAGE(optional)
weatherByLatLon API_KEY LATITUDE LONGITUDE COUNT(optional) MODE(optional) UNITS(optional) LANGUAGE(optional)
weatherByZip API_KEY ZIP COUNTRY_CODE(optional) MODE(optional) UNITS(optional) LANGUAGE(optional)
weatherByRectZone API_KEY Dimension(BBOX) STATE_CODE(optional) MODE(optional) UNITS(optional) LANGUAGE(optional)

MemeAPI

Method name Parameter list
meme No arguments required

FoodAPI

Method name Parameter list
food API_KEY FOOD_ID FOOD_NAME

Links for API_KEY