Nền Tảng Nhà Phát Triển

Truy cập dữ liệu điểu cầm học BirdFYI thông qua REST API, điểm cuối markdown và luồng.

Điểm Cuối REST API

Tất cả các điểm cuối trả về JSON. Phân trang với ?limit=?offset=. Sử dụng ?lang=ko cho các trường được dịch.

Điểm Cuối Mô Tả Bộ Lọc
/birds/ List all birds
/bird/{slug}/ Bird detail
/orders/ List all taxonomic orders
/order/{slug}/ Order detail
/family/{slug}/ Family detail
/countries/ List all countries
/country/{code}/ Country detail
/habitats/ List all habitats
/habitat/{slug}/ Habitat detail
/glossary/ List glossary terms
/glossary/{slug}/ Glossary term detail
/guides/ List published guides
/guide/{slug}/ Guide detail

Điểm Cuối Markdown

Thêm .md vào bất kỳ URL trang nào để nhận phiên bản markdown. Hữu ích cho bối cảnh LLM, tài liệu và truy cập theo chương trình.

# Bird profile
curl https://birdfyi.com/birds/bald-eagle.md
# Guide article
curl https://birdfyi.com/guide/backyard-birding.md
# With language prefix
curl https://birdfyi.com/ko/birds/bald-eagle.md

Bắt Đầu Nhanh

curl

# List birds
curl https://birdfyi.com/api/birds/
# Search
curl "https://birdfyi.com/api/search/?q=eagle"
# Bird detail (Korean)
curl "https://birdfyi.com/api/birds/bald-eagle/?lang=ko"
# Database stats
curl https://birdfyi.com/api/stats/

Python

import httpx
resp = httpx.get("https://birdfyi.com/api/birds/",
    params={"conservation_status": "CR", "limit": 10})
birds = resp.json()["results"]

Tài Nguyên Bổ Sung