npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bird-api

v1.4.3

Published

日本の野鳥 Web API

Downloads

62

Readme

日本の野鳥 Web API / bird API

Build Status npm version npm dependencies

これは、日本の野鳥の名前を取得するエンドポイントを提供するWebサーバです。

APIs

野鳥一覧を取得(全データを取得)

GET /v1/birds

{
  "species":[
    {
      "_id":"570cd3d11d4260e3bc3db188",
      "alien":false,
      "upper":"genus",
      "rank":"species",
      "sc":"muta",
      "ja":"ライチョウ",
      "upper_id":"570cd3d01d4260e3bc3db068"
    },{
      "_id":"570cd3d11d4260e3bc3db189",
      "alien":false,
      "upper":"genus",
      "rank":"species",
      "sc":"japonica",
      "ja":"ウズラ",
      "upper_id":"570cd3d01d4260e3bc3db069"
    },
    ...
  ]
}

野鳥一覧を取得(フィールドを限定)

GET /v1/birds?fields=ja,alien

{
  "species":[
    {
      "alien":false,
      "ja":"ライチョウ",
    },{
      "alien":false,
      "ja":"ウズラ",
    },
    ...
  ]
}

野鳥一覧を取得(ページネーション)

GET /v1/birds?limit=30

GET /v1/birds?offset=10

GET /v1/birds?offset=15&limit=5

分類群を取得(birdsリソースと同様にfields、limit、offsetクエリが使えます)

目(order)

GET /v1/orders

科(family)

GET /v1/families

属(genus)

GET /v1/genuses

種(species)

GET /v1/species ※birdsリソースのエイリアス

単一の野鳥を取得

GET /v1/birds/:標準和名?fields=ja,sc(マガモの例)

{
  "species":
    {
      "ja":"マガモ",
      "sc":"platyrhynchos"
    },
  "biomen":"Anas platyrhynchos",
  "taxonomies":[
    {
      "ja":"マガモ属",
      "sc":"anas"
    },{
      "ja":"カモ科",
      "sc":"anatidae"
    },{
      "ja":"カモ目",
      "sc":"anseriformes"
    }
  ]
}

GET /v1/birds/:標準和名(ツグミの例、すべてのフィールドを取得)

レスポンスのフィールド

|property|Type|description| |---:|:---:|:---| |rank|String|分類階級| |ja|String|標準和名| |sc|String|学名| |upper|String|上位の分類階級| |upper_id|String|上位の分類階級のObject_id| |alien|Boolean|日本国内での外来種かどうか| |biomen|String|二名法で表した学名|