Navigation
Access the Seeds of Hawaii database programmatically via our REST API.
The Seeds of Hawaii API provides access to data on 800+ Hawaiian plant species.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/species | List species with basic filters |
| POST | /api/query | Advanced queries and calculations |
| GET | /api/statistics | Database statistics |
| POST | /api/llm | Natural language queries |
The /api/query endpoint supports complex queries via POST.
POST /api/query
Content-Type: application/json
{
"filters": {
"federal_listing": "Endangered",
"native_status": "Endemic",
"island": "Maui"
},
"advanced": {
"exclusive_to_island": "Maui",
"has_measurements": true
},
"limit": 100,
"offset": 0
}Species present on this island (may also be elsewhere)
Species found ONLY on this island and nowhere else
Endangered, Threatened, or Not Listed
Endemic, Indigenous, or Introduced
{
"calculate": {
"type": "seed_volume",
"params": { "genus": "Hibiscus" }
}
}{
"calculate": {
"type": "seed_count_in_volume",
"params": {
"container_volume_ml": 250,
"genus": "Abutilon"
}
}
}curl -X POST http://localhost:3000/api/query \
-H "Content-Type: application/json" \
-d '{"filters": {"federal_listing": "Endangered"}, "limit": 50}'curl -X POST http://localhost:3000/api/query \
-H "Content-Type: application/json" \
-d '{"advanced": {"exclusive_to_island": "Maui"}}'const response = await fetch('/api/query', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
filters: { native_status: 'Endemic' },
advanced: { has_measurements: true },
limit: 100
})
});
const data = await response.json();import requests
response = requests.post(
'http://localhost:3000/api/query',
json={
'filters': {'family': 'Campanulaceae'},
'advanced': {'exclusive_to_island': 'Oahu'}
}
)
data = response.json()