Discussions

Ask a Question
Back to all

Handling incomplete FishBase API species data - best practice?

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!