How do I filter results by country?

Posted in General by Nathan Wardle Sat Sep 21 2019 12:06:54 GMT+0000 (Coordinated Universal Time)·1·Viewed 32 times

I am trying to use the 'species' method and filter them by country. There does not appear to be a way to filter the results, please advise. Thanks
Scott Chamberlain
Sep 23, 2019

Hi, thanks for your question. There's no country information in the /species route.

You can look at other routes however. For example, on the /countrysub route, there is country and sub-country level data. E.g., you can do this query, filtering by US-TX (state of Texas in the US)

https://fishbase.ropensci.org/countrysub/?CSub_Code=US-TX

does that help?

  
Markdown is allowed