แพลตฟอร์มนักพัฒนา
เข้าถึงข้อมูลพืชของ PlantFYI ผ่าน REST API จุดปลาย markdown และเครื่องมือแบบโต้ตอบ
📖
เอกสาร API
Swagger UI แบบโต้ตอบ
📋
สกีมา OpenAPI
ข้อกำหนดที่เครื่องอ่านได้
🤖
llms.txt
สรุปเว็บไซต์ที่เป็นมิตรกับ AI
🌱
เครื่องมือ
เครื่องมือทำสวนแบบโต้ตอบ 10 รายการ
จุดปลาย 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"]