This package is an api to ebird data. It uses web scrapers to pull data from the ebird site.
npm install ebird
var ebird = ;// Create a new instance of the ebird api.var instance = ;// Authorize with an ebird username and passwordinstance;
Constructs an instance of the ebird api.
var instance = new ebird(); If you have a ebird session token you can pass that in the constructor
var instance = new ebird(sessionToken);.
Authenticates an ebird instance. Returns a session token so you can skip full auth when using a different ebird instance. Ebird uses phantom js to log in, which can be flaky. To receive better reliability save the session token between uses to avoid instantiating phantom js.
This functions all work the same. They return a personal list of counts for a user for the given location.
"name": place_name"code": ebird_code"items":"number": count"time": time_frame_string...
Retrieves an array of objects for a bird list.
// Example response. ebird.list('US-CA', 'life');commonName: "Black-bellied Whistling-Duck"date: "24 Apr 2015"location: "Baytown Nature Center (UTC 039)"rowNumber: "1"scientificName: "Dendrocygna autumnalis"sp: "US-TX"speciesCode: "bbwduc"...
Returns an array of sightings for either a needs or a rarities list.
species:name: 'Pin-tailed Whydah 'scientificName: 'Vidua macroura'confirmed: truecount: '1'date: 'Apr 2, 2016 08:40'location:name: 'Peck Rd. Water Conservation Park 'lat: '34.10053'long: '-118.01333'checklist: ''county: 'Los Angeles'state: 'California, United States'observer: 'eBirder User'details: ''
Returns an array of species and frequencies for a user's target birds #### Options
location: Location CodestartMonth: Month number 1-12endMonth: Month number 1-12locationFilter: Location code 'aba' or 'world'timeFilter: 'life' 'year' 'month' or 'day'
species:name: 'Yellow Warbler'code: 'yelwar'frequency: 577985map: '...'