← Tools Reference

API Ninjas

API Ninjas integration (Developer Tools, Data). Imported from open-connector.

API key6 toolshttps://api.api-ninjas.com
GET
api_ninjas_geocode
Convert a city name into geographic coordinates and country information.

/v1/geocoding

4 parameters
ParamTypeRequiredDescription
citystringrequiredCity name to convert into geographic coordinates.
statestringoptionalState or province used to narrow the city-based lookup.
countrystringoptionalCountry name or ISO country code used to narrow the city-based lookup.
zipcodestringoptionalZIP or postal code used to narrow the geocoding lookup.
GET
api_ninjas_reverse_geocode
Resolve latitude and longitude coordinates into place metadata.

/v1/reversegeocoding

2 parameters
ParamTypeRequiredDescription
latnumberrequiredLatitude coordinate in decimal degrees between -90 and 90.
lonnumberrequiredLongitude coordinate in decimal degrees between -180 and 180.
GET
api_ninjas_weather
Fetch the current weather conditions for a set of coordinates.

/v1/weather

2 parameters
ParamTypeRequiredDescription
latnumberrequiredLatitude coordinate in decimal degrees between -90 and 90.
lonnumberrequiredLongitude coordinate in decimal degrees between -180 and 180.
GET
api_ninjas_weather_forecast
Fetch forecast weather readings for a set of coordinates.

/v1/weatherforecast

2 parameters
ParamTypeRequiredDescription
latnumberrequiredLatitude coordinate in decimal degrees between -90 and 90.
lonnumberrequiredLongitude coordinate in decimal degrees between -180 and 180.
GET
api_ninjas_air_quality
Fetch current air quality metrics for coordinates or a city-based lookup.

/v1/airquality

5 parameters
ParamTypeRequiredDescription
latnumberoptionalLatitude coordinate in decimal degrees between -90 and 90.
lonnumberoptionalLongitude coordinate in decimal degrees between -180 and 180.
citystringoptionalCity name used to look up the requested location.
statestringoptionalState or province used to narrow the city-based lookup.
countrystringoptionalCountry name or ISO country code used to narrow the city-based lookup.
GET
api_ninjas_timezone
Fetch timezone metadata by timezone name or premium location lookup fields.

/v1/timezone

6 parameters
ParamTypeRequiredDescription
timezonestringoptionalIANA timezone identifier used by the free-tier lookup path.
latnumberoptionalLatitude coordinate in decimal degrees between -90 and 90.
lonnumberoptionalLongitude coordinate in decimal degrees between -180 and 180.
citystringoptionalCity name used to look up the requested location.
statestringoptionalState or province used to narrow the city-based lookup.
countrystringoptionalCountry name or ISO country code used to narrow the city-based lookup.