Damn small node.js library to deal with eBird v2 API
Go to file
Samuel Ortion 457038a41b npm: Publish to npm 2022-08-26 15:57:22 +02:00
src npm: Publish to npm 2022-08-26 15:57:22 +02:00
test npm: Publish to npm 2022-08-26 15:57:22 +02:00
.gitignore src: Add eBird v2.0 API Wrapper 2022-08-26 09:50:04 +02:00
.npmignore npm: Publish to npm 2022-08-26 15:57:22 +02:00
CHANGELOG.md npm: Publish to npm 2022-08-26 15:57:22 +02:00
LICENSE Initial commit 2022-08-25 17:52:03 +02:00
README.md npm: Publish to npm 2022-08-26 15:57:22 +02:00
package-lock.json npm: Publish to npm 2022-08-26 15:57:22 +02:00
package.json npm: Publish to npm 2022-08-26 15:57:22 +02:00

README.md

ebird.js

Damn small node.js library to deal with v2 eBird API.

Installation

npm install --save ebird

Usage

First, get an API key from eBird.

You may use a .env file in your project's root, to store it (don't forget to add it to .gitignore):

# .env
EBIRD_API_KEY=secret

Then you could use dotenv package to retrieve your credentials from this file:

npm install dotenv
require('dotenv').config()
const ebird = require('ebird')(process.env.EBIRD_API_KEY);

Endpoints

data/obs

data/obs/{{regionCode}}/recent
ebird.data.obs.in('FR')().then((data) => {
    console.log(data);
});

NB. The documentation needs further work

References