Платформа для разработчиков

Получите доступ к палеонтологическим данным DinoFYI через наш REST API, Markdown-эндпоинты и каналы. Исследуйте виды динозавров, геологические периоды, клады и места обнаружения.

Эндпоинты 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"]

Дополнительные ресурсы