開発者プラットフォーム
REST API、Markdownエンドポイント、フィードを通じてDinoFYIの古生物学データにアクセスできます。恐竜の種、地質時代、クレード、発見地を探索しましょう。
REST APIエンドポイント
すべてのエンドポイントはJSONを返します。
ページネーション: ?limit= と ?offset=.
使用 ?lang=ko 翻訳済みフィールド用。
| エンドポイント | 説明 |
|---|---|
GET /api/dinosaurs/ |
恐竜一覧(時代・クレード・食性でフィルター可能) |
GET /api/dinosaurs/{slug}/ |
恐竜の詳細 |
GET /api/periods/ |
地質時代 |
GET /api/classifications/ |
恐竜のクレード |
GET /api/countries/ |
化石が発見された国 |
GET /api/glossary/ |
用語集の項目 |
GET /api/guides/ |
ガイド |
GET /api/search/?q= |
Full-text search across dinosaurs, glossary, and guides |
GET /api/stats/ |
データベース統計 |
GET /api/random/ |
Random dinosaur |
GET /api/compare/?a=&b= |
Compare two dinosaurs side by side |
Markdownエンドポイント
追加 .md を任意のページURLに追加すると、Markdownバージョンを取得できます。LLMコンテキスト、ドキュメンテーション、プログラムからのアクセスに便利です。
# Dinosaur profile
curl https://dinofyi.com/dinosaur/tyrannosaurus-rex.md
# Guide article
curl https://dinofyi.com/guide/mass-extinction-events.md
# With language prefix
curl https://dinofyi.com/ko/dinosaur/tyrannosaurus-rex.md
クイックスタート
curl
# List dinosaurs
curl https://dinofyi.com/api/dinosaurs/
# Search
curl "https://dinofyi.com/api/search/?q=tyrannosaurus"
# Dinosaur detail (Korean)
curl "https://dinofyi.com/api/dinosaurs/tyrannosaurus-rex/?lang=ko"
# Database stats
curl https://dinofyi.com/api/stats/
# Random dinosaur
curl https://dinofyi.com/api/random/
# Compare two dinosaurs
curl "https://dinofyi.com/api/compare/?a=tyrannosaurus-rex&b=triceratops"
Python
import httpx
resp = httpx.get("https://dinofyi.com/api/dinosaurs/",
params={"diet": "carnivore", "limit": 10})
dinosaurs = resp.json()["results"]