Skip to content
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

Add API endpoint for Dataverse.org metrics #2417

Closed
raprasad opened this issue Jul 27, 2015 · 4 comments
Closed

Add API endpoint for Dataverse.org metrics #2417

raprasad opened this issue Jul 27, 2015 · 4 comments
Labels

Comments

@raprasad
Copy link
Contributor

  • Add simple API including:
    • of public datasets

    • of public dataverses

    • of registered users

    • downloads

  • May be expanded later
  • How dynamic should this be?
    • Suggestion:
      • table: "dv_public_stats"
      • column: id, timestamp, JSON (or Text)
  • API:
    • Uses database if called within last x hours,
    • If not, dynamically finds stats
@raprasad raprasad added this to the 4.2 milestone Jul 27, 2015
@bencomp
Copy link
Contributor

bencomp commented Jul 29, 2015

What would the necessary permissions for access to these endpoints be? Anyone (with a key) for the simple metrics and superuser for diagnostic endpoints (that may include all datasets and dataverses)?

Isn't the number of public dataverses and datasets queriable from Solr?

@pdurbin
Copy link
Member

pdurbin commented Jul 29, 2015

Isn't the number of public dataverses and datasets queriable from Solr?

Yes. In fact, the Search API queried by SHARE for https://osf.io/share/?q=*&optional=source%3Aharvarddataverse&sort=Date and https://osf.io/api/v1/share/search/?q=source:harvarddataverse

With the exception of API endpoints that are blocked to localhost for admin purposes, all APIs currently require an API token but #1838 may change this.

@raprasad
Copy link
Contributor Author

@bencomp, they need stats (these to start) for the dataverse.org site; creating graphs, etc.

  • Point of a separate API endpoint is the stats they'd like to display will probably change out of the current solr scope in coming months. That said, they should be available via anyone's API key

@raprasad raprasad removed this from the 4.2 milestone Sep 11, 2015
@mercecrosas mercecrosas modified the milestone: In Review Nov 30, 2015
@scolapasta scolapasta removed this from the Not Assigned to a Release milestone Jan 28, 2016
@raprasad
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants