開発者プラットフォーム

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"]

追加リソース