डेवलपर प्लेटफॉर्म

हमारे REST API, मार्कडाउन एंडपॉइंट और फीड के माध्यम से 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

मार्कडाउन एंडपॉइंट

जोड़ें .md किसी भी पृष्ठ URL में जोड़ें ताकि मार्कडाउन संस्करण प्राप्त हो। 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"]

अतिरिक्त संसाधन