开发者平台
通过REST API、Markdown端点和交互式工具访问PlantFYI植物数据。
REST API端点
所有端点返回JSON。
分页参数: ?limit= 和 ?offset=.
使用 ?lang=ko 用于翻译字段。
| 端点 | 描述 |
|---|---|
/api/plants/ |
列出所有植物物种 |
/api/plants/{slug}/ |
植物物种详情 |
/api/families/ |
列出植物科 |
/api/orders/ |
列出植物目 |
/api/countries/ |
列出有本地植物的国家 |
/api/climate-zones/ |
列出气候带 |
/api/search/?q= |
搜索所有内容 |
/api/glossary/ |
植物学术语表 |
/api/stats/ |
数据库统计 |
Markdown端点
附加 .md 到任意页面URL即可获取Markdown版本。适用于LLM上下文、文档和程序化访问。
# 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
快速开始
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"]