-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider options for opening APIs without tokens #1838
Comments
As I just suggested on IRC: how about making this part of configuration of a Dataverse installation? If possible, making it configurable per endpoint could be useful. I would very likely open up the Search API, likely to open the dataset metadata (native) endpoint and possibly open up the dataverse (native) endpoint. If "free access" enabled, not including an API key should be interpreted as if a guest API key was used. I don't know about best practices for rate limiting, but the basis for it could be configurable as well (e.g. by IP, per day/week/month). There is an issue for rate limiting logic, IQSS/dataverse-pm#23, in which @kcondon writes:
|
If a Dataverse installation someday runs in a mode where the Search API doesn't require a token, a proof of concept Android app I wrote could be used without needing he modifications I opened this issue about: IQSS/dataverse-android#1 :) |
Unfortunately the search requires an api key, unlike figshare, socrata labs, datahub (ckan) and others... so we're going to hold off on integrating it into http://github.com/karissa/dps |
The eUtils guidelines (http://www.ncbi.nlm.nih.gov/books/NBK25497/#chapter2.Usage_Guidelines_and_Requiremen) might be worth a look. Requiring authentication (token or otherwise) for read-access APIs seems unusual, at least based on other repository APIs I've used (eUtils, RCSB). Is there a significant effect on system load? |
Yesterday at https://botbot.me/freenode/dat/msg/75629403/ I asked @joehand to weigh in on what @Karissa wrote at #1838 (comment) saying, "Is requiring an API Token a show stopper for including Dataverse installations in PublicBits?" He responded, "I think it's not a complete blocker now. That original idea was more user driven requests closer to one time http requests. But now I think we'll be doing something closer to centralized harvesting." This reminds me of https://share.osf.io , of course, (and related issue #2291), where SHARE is using an API token to query the Dataverse Search API periodically. (Now that OAI-PMH is supported as of Dataverse 4.5 I suppose they could switch to that.) Anyway, as I originally expressed at #1809 (comment) I still feel that requiring API tokens will prevent potential collaborators from even trying out Dataverse APIs. I like how the GitHub API doesn't require any authentication. "For unauthenticated requests, the rate limit allows you to make up to 10 requests per minute" according to https://developer.github.com/v3/search/#rate-limit . At least that let's you play with the API a bit before creating an account. For the record, a few days after @Karissa made her comment, I pushed a branch at c876fee with a configuration option called Incidentally, it was a pleasure to meet @joehand yesterday. I gave him a demo of @pameyer 's https://data.sbgrid.org at http://irclog.iq.harvard.edu/dataverse/2016-10-28#i_44033 😄 |
Hello, I got a question regarding the tokens that are necessary to use the API of Harvard Dataverse. I developed a free desktop application that is able My question is: I read the Harvard Dataverse General Terms of Use and the Harvard Dataverse API Terms of Use I already contacted the Harvard Dataverse team per E-Mail, asking the same question. |
@T-Hormesch it's awesome that you've created a free desktop application that is able to search Harvard Dataverse. (Maybe we could list it at http://guides.dataverse.org/en/4.6.1/api/apps.html .) It should work on all the other installations of Dataverse on the map at http://dataverse.org . I'm not a lawyer and opening the ticket at https://help.hmdc.harvard.edu/Ticket/Display.html?id=249710 was the right thing to do to get in touch with people from Harvard. You could consider allowing your users to paste in their own API token. I know this is a pain and it's why IQSS/dataverse-android#1 is still open for an Android app I knocked together over winter break years ago. I think it would be nice if the Dataverse Search API was like the GitHub Search API, allowing anonymous access for the first few requests and then requiring a token for additional requests (throttling, as described at IQSS/dataverse-pm#23). |
To focus on the most important features and bugs, we are closing issues created before 2020 (version 5.0) that are not new feature requests with the label 'Type: Feature'. If you created this issue and you feel the team should revisit this decision, please reopen the issue and leave a comment. |
In 4.0, we require tokens for all APIs even if searching published dataverses and datasets. Going forward, we want to think of the best way to open this up (rate limts? guest token?)
The text was updated successfully, but these errors were encountered: