Hostplants
Insect–host plant association records with reference citations and sortable tables.
GET /api/v1/hostplants
Paginated hostplant association records linking Lepidoptera species to their documented host plants, with reference citations.
curl "https://api.ilepbase.com/api/v1/hostplants?q=abrostola&page=1&pageSize=10"Query Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | No | — | Search by insect or hostplant family, genus, or species name. |
page | int | No | 1 | Page number. |
pageSize | int | No | 10 | Items per page. |
Response
{
"success": true,
"data": {
"items": [
{
"id": "hp-001",
"insectFamily": "Noctuidae",
"insectGenus": "Abrostola",
"insectSpecies": "Abrostola tripartita",
"hostplantFamily": "Urticaceae",
"hostplantGenus": "Urtica",
"hostplantSpecies": "Urtica dioica",
"references": "Robinson et al. 2010",
"source": "HOSTS"
}
],
"pagination": {
"page": 1, "pageSize": 10,
"total": 3200, "totalPages": 320,
"hasNext": true, "hasPrev": false
}
},
"timestamp": "2026-04-23T12:00:00.000Z"
}Key Fields
| Field | Type | Description |
|---|---|---|
items[].insectFamily | string | Insect's taxonomic family. |
items[].insectGenus | string | Insect's genus. |
items[].insectSpecies | string | Insect's species name. |
items[].hostplantFamily | string | Host plant family. |
items[].hostplantGenus | string | Host plant genus. |
items[].hostplantSpecies | string | Host plant species name. |
items[].references | string | Literature citation for the association. |
items[].source | string | Data source, such as the HOSTS database. |