Discussions
Handling incomplete FishBase API species data - best practice?
yesterday by Saakin
Hi everyone š
Iām using the FishBase API to pull species information for an educational resource Iām building at Saakin. Sometimes the API returns empty or partial data (e.g., missing habitat, growth, or distribution fields), even for species that appear valid.
Before I over-engineer this, whatās the recommended approach when fields are missing?
- Retry the same endpoint?
- Query alternative endpoints?
- Or safely treat it as āno data availableā?
Also, is there a way to confirm whether data truly doesnāt exist vs. a temporary gap?
Thanks in advance!