Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ambee-node-sdk
Advanced tools
This is an npm package that provides a convenient and easy-to-use interface to the Ambee API. With this package, you can retrieve real-time data about air quality, weather, and pollen levels in a specific location.
This is an npm package that provides a convenient and easy-to-use interface to the Ambee API. With this package, you can retrieve real-time data about air quality, weather, and pollen levels in a specific location.
Using npm:
npm i ambee-node-sdk
To use the Ambee Node SDK, you will need an API Key. To get an API Key, sign up at API Dashboard .
Once you have an API Key, you can use it in your application as follows:
const Ambee = require('ambee-node-sdk');
const ambee = new Ambee('YOUR-API-KEY');
The following methods are available for Air class:
Get air quality latest data based on a geographical location.
ambee.air.geospatialSearchLatest(12, 77);
Get air quality history data based on a geographical location.
ambee.air.geospatialSearchHistory(12, 77, { from: '2023-04-25 14:00:00', to: '2023-04-25 16:00:00' });
Get air quality latest data based on a postal code and country code of a location.
ambee.air.postalCodeSearchLatest('560020', 'IN');
Get air quality latest data based on a postal code and country code of a location.
ambee.air.postalCodeSearchHistory('560020', 'IN', { from: '2023-04-25 14:00:00', to: '2023-04-25 16:00:00' });
Get air quality data based on city name.
ambee.air.cityWiseSearch('Bengaluru', { limit: 2});
Get air quality data based on country code.
ambee.air.countryWiseSearch('IN', { limit: 2});
The following methods are available for Weather class:
Get latest weather data based on a geographical location.
ambee.weather.geospatialSearchLatest(12, 77, { units: 'si' });
Get weather history data based on a geographical location.
ambee.weather.geospatialSearchHistory(12, 77, { from: '2023-04-25 14:00:00', to: '2023-04-25 16:00:00', units: 'si' });
Get weather history (daily) data based on a geographical location.
ambee.weather.geospatialSearchDaily(12, 77, { from: '2023-04-25 14:00:00', to: '2023-04-25 16:00:00', units: 'si' });
Get weather forecast data based on a geographical location.
ambee.weather.geospatialSearchForecast(12, 77, { units: 'si' });
Get weather alert data based on a geographical location.
ambee.weather.geospatialSearchSevere(12, 77, { units: 'si' });
Get weather data based on name of the place.
ambee.weather.placeWiseSearch('Malleswaram,Bangalore', { units: 'si' });
The following methods are available for Pollen class:
Get latest pollen data based on a geographical location.
ambee.pollen.geospatialSearchLatest(12, 77, { speciesRisk: true });
Get pollen history data based on a geographical location.
ambee.pollen.geospatialSearchHistory(12, 77, { from: '2023-04-25 14:00:00', to: '2023-04-25 16:00:00', speciesRisk: true });
Get pollen forecast data based on a geographical location.
ambee.pollen.geospatialSearchForecast(12, 77, { speciesRisk: true });
Get latest pollen data based on name of the place.
ambee.pollen.geospatialSearchForecast('Malleswaram,Bangalore', { speciesRisk: true });
Get pollen history data based on name of the place.=
ambee.pollen.placeWiseSearchHistory('Malleswaram,Bangalore', { from: '2023-04-25 14:00:00', to: '2023-04-25 16:00:00', speciesRisk: true });
Get pollen forecast data based on a geographical location.
ambee.pollen.placeWiseSearchForecast('Malleswaram,Bangalore', { speciesRisk: true });
For more information on the available methods and their parameters, please refer to the API Reference section of the official documentation.
If you have any questions or issues, please feel free to visit Ambee Support.
FAQs
This is an npm package that provides a convenient and easy-to-use interface to the Ambee API. With this package, you can retrieve real-time data about air quality, weather, and pollen levels in a specific location.
The npm package ambee-node-sdk receives a total of 0 weekly downloads. As such, ambee-node-sdk popularity was classified as not popular.
We found that ambee-node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.