개발자 플랫폼
REST API, 마크다운 엔드포인트, 인터랙티브 도구를 통해 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/ |
데이터베이스 통계 |
마크다운 엔드포인트
추가 .md 을 페이지 URL에 추가하면 마크다운 버전을 받을 수 있습니다. 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"]