Skip to content

Fast API search and implementation using various APIs like news API, weather API, memeAPI, and FoodAPI.

Notifications You must be signed in to change notification settings

1s-0s/Rapid-NPM-Package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fast API search and implementation using various APIs like news API, weather API, memeAPI, and FoodAPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published