usage-tracker

Create a Usage Tracker usage metric event.

post/api/metric

Request

  • Base URL
    https://analytics.datacite.org
  • URL
    https://analytics.datacite.org/api/metric
  • Auth
    none required

Headers

X-Forwarded-Forstring required

Originating IP address of the client. Used for de-duplication of events. Not stored.

User-Agentstring required

Originating User-Agent of the client. Used to filter bots and for de-duplication of events. Not stored.

Request body

n'view' | 'download' required

The metric type of the event.

ustring required

The URL source of the reported view or download event.

istring required

The data-repoid unique identifier of the Repository for tracking usage analytics.

pstring required

The downcased DOI name of the reported view or download event.

Example request

{
  "u": "https://examplerepo.org/10.5072/1234abc",
  "i": "da-1a2b34",
  "p": "10.5072/1234abc"
}

Response

Success.

Changes

No recorded changes to this operation across all 1 revision of this API.