Nền tảng nhà phát triển

Truy cập dữ liệu thực vật PlantFYI qua REST API, endpoint markdown và công cụ tương tác.

Endpoint REST API

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

Endpoint Mô tả
/api/plants/ Danh sách tất cả loài thực vật
/api/plants/{slug}/ Chi tiết loài thực vật
/api/families/ Danh sách họ thực vật
/api/orders/ Danh sách bộ thực vật
/api/countries/ Danh sách quốc gia có thực vật bản địa
/api/climate-zones/ Danh sách vùng khí hậu
/api/search/?q= Tìm kiếm trong tất cả nội dung
/api/glossary/ Thuật ngữ thực vật học
/api/stats/ Thống kê cơ sở dữ liệu

Endpoint Markdown

Thêm .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.

# Plant species profile
curl https://plantfyi.com/plant/rosa-gallica.md
# Plant family
curl https://plantfyi.com/families/rosaceae.md
# Guide article
curl https://plantfyi.com/guide/companion-planting.md
# With language prefix
curl https://plantfyi.com/ko/plant/rosa-gallica.md

Bắt đầu nhanh

curl

# List plants
curl https://plantfyi.com/api/plants/
# Search
curl "https://plantfyi.com/api/search/?q=rose"
# Plant detail (Korean)
curl "https://plantfyi.com/api/plants/rosa-gallica/?lang=ko"
# Database stats
curl https://plantfyi.com/api/stats/

Python

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

Tài nguyên bổ sung