ropensci / rredlist

IUCN Red List API Client
https://docs.ropensci.org/rredlist
Other
50 stars 15 forks source link

API vs Website again #39

Closed electricquad closed 4 years ago

electricquad commented 5 years ago

I see the previous discussion on the API vs Website issue. I am encountering that as well. For the order I am looking at, we pulled country level occurrence data from the website and from the API. API returns a lower species count in most cases.

For example: "Nyassunio nyassaensis" occurs in 3 countries according to the website while rl_occ_country("Nyassunio nyassaensis",key=IUCN_REDLIST_KEY) returns no occurrences.

I guess I just want to understand why the website and API differ?

sckott commented 5 years ago

thanks for your question. I don't know for sure, but i suspect because their API is NOT used in their website, so the website is pulling from a different data source than the API exposes.

Ill ask and see if I get a response at least for this example

electricquad commented 5 years ago

Thanks, I can provide a more comprehensive example and comparison dataset for the order Unionoida for all countries off the website if that will help. The issue is the same if you query countries (e,g, Malawi - 8 species of Unionoida on the website, 0 on the API)

electricquad commented 5 years ago

Ok, I guess I just solved the problem. Doing a download of the unionoida results through the website, with all of the options checked in my profile seems to get me what I want. It doesn't address the API difference, but it gets the data...

sckott commented 5 years ago

Glad you solved your problem! Hoping to hear back soon and I'll let you know