JS wrapper to the ebird API.
ebird-js is just a convenience library for interacting with the ebird 1.1 api.
npm install --save ebird-js
var ebird = require('ebird-js');
var params = {
lng: '-76.51',
lat: '42.46',
};
ebird.obs.geo.recent(params).then((data) => {
// An array of observations
console.log(data);
}).catch((error) => {
console.log(error);
})
fmt
defaults to json
.
All others see ebird 1.1 docs
This path contains data services.
returns recent nearby observations
ebird.data.obs.geo.recent(params)
returns recent nearby observations of a species
ebird.data.obs.geo_spp.recent(params)
returns recent observations at hotspots
ebird.data.obs.hotspot.recent(params)
returns recent observations of a species at hotspots
ebird.data.obs.hotspot_spp.recent(params)
returns recent observations at locations
ebird.data.obs.loc.recent(params)
returns recent observations of a species at locations
ebird.data.obs.loc_spp.recent(params)
returns recent observations in a region
ebird.data.obs.region.recent(params)
returns recent observations of a species in a region
ebird.data.obs.region_spp.recent(params)
returns recent nearby notable observations
ebird.data.notable.geo.recent(params)
returns recent notable observations at hotspots
ebird.data.notable.hotspot.recent(params)
returns recent notable observations at locations
ebird.data.notable.loc.recent(params)
returns recent notable observations in a region
ebird.data.notable.region.recent(params)
returns nearest locations with observations of a species
ebird.data.nearest.geo_spp.recent(params)
This path contains products consisting of aggregated raw data.
This service provides a summary of recent sightings for birding hotspots.
ebird.data.nearest.geo_spp.recent(params)
This path contains supporting lookup services for the /data and /product services
returns species in the ebird taxonomy
ebird.ref.taxa(params)
provides a list of eBird hotspots for a given region, optionally filtered to those with recent data
ebird.ref.hotspot.region(params)
provides a list of nearby eBird hotspots, optionally filtered to those with recent data
ebird.ref.hotspot.geo(params)
returns location-based look-up data
ebird.ref.location(params)
Undocumented ebird api.
params:
q: String to search on. Required
Example Response:
[
{
name: "United States (US)",
code: "US"
},
...
]
returns location name and code.
ebird.ref.region(params)