Nền tảng nhà phát triển
Truy cập dữ liệu cổ sinh vật học DinoFYI thông qua REST API, endpoint Markdown và feed của chúng tôi. Khám phá các loài khủng long, kỷ địa chất, nhánh phân loại và địa điểm phát hiện.
📖
Tài liệu API
Giao diện Swagger tương tác
📋
Lược đồ OpenAPI
Thông số kỹ thuật máy đọc được
🤖
llms.txt
Tóm tắt trang web thân thiện với AI
📡
Feed
Feed RSS và Atom
Endpoint REST API
Tất cả endpoint đều trả về JSON.
Phân trang với ?limit= và ?offset=.
Sử dụng ?lang=ko cho các trường đã dịch.
| Endpoint | Mô tả |
|---|---|
GET /api/dinosaurs/ |
Danh sách khủng long (lọc theo kỷ, nhánh phân loại, chế độ ăn) |
GET /api/dinosaurs/{slug}/ |
Chi tiết khủng long |
GET /api/periods/ |
Các kỷ địa chất |
GET /api/classifications/ |
Các nhánh khủng long |
GET /api/countries/ |
Các quốc gia có phát hiện hóa thạch |
GET /api/glossary/ |
Thuật ngữ từ điển |
GET /api/guides/ |
Hướng dẫn |
GET /api/search/?q= |
Full-text search across dinosaurs, glossary, and guides |
GET /api/stats/ |
Thống kê cơ sở dữ liệu |
GET /api/random/ |
Random dinosaur |
GET /api/compare/?a=&b= |
Compare two dinosaurs side by side |
Endpoint Markdown
Thêm vào .md vào bất kỳ URL trang nào để nhận phiên bản Markdown. Hữu ích cho ngữ cảnh LLM, tài liệu và truy cập lập trình.
# 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
Bắt đầu nhanh
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"]