Get a user’s API usage

This endpoint retrieves information about a the API usage, broken down by endpoint, of an user in a specific range of days (last 30 days by default).
The period of time can be delimited by the two query parameters start_date and end_date, being the first and last day when API usage data will be retrieved, respectively.

🚧

Time range restrictions

The maximum range of time allowed by this endpoint is 30 days. If a greater range of time is specified, this endpoint will return an error message as response.

The user can be retrieved either by user ID or by API key, but the latter only works if the requester is the user himself or an administrator of a group the user belongs to.

{
  "data": {
    "daily": {
      "2020-08-10": {
        "urls": 2
      },
      "2020-08-11": {
        "domains": 1,
        "file_relationships": 1,
        "files": 1
      },
      "2020-08-12": {
        "analyses": 25,
        "file_analyse": 3,
        "files": 6
      },
      "2020-08-17": {
        "urls": 3
      },
      "2020-08-18": {
        "urls": 1
      },
      "2020-08-20": {
        "file_download": 36,
        "file_relationships": 5,
        "files": 1
      },
      "2020-08-21": {
        "file_analyse": 1,
        "file_download": 92,
        "files": 1
      },
      "2020-08-23": {
        "analyses": 5,
        "file_analyse": 1
      },
      "2020-08-25": {
        "file_download": 51
      },
      "2020-08-26": {
        "file_download": 51
      },
      "2020-08-28": {
        "file_download": 14
      },
      "2020-08-31": {
        "file_download": 6
      },
      "2020-09-01": {
        "file_download": 81
      },
      "2020-09-02": {
        "file_relationships": 5,
        "graphs": 1
      },
      "2020-09-03": {
        "file_relationships": 6,
        "graph_comments": 1,
        "graph_items": 3,
        "graphs": 2,
        "retrohunt_jobs": 2
      },
      "2020-09-05": {
        "comment_relationships": 1,
        "comments": 4,
        "domain_comments": 1,
        "domain_graphs": 2,
        "domain_relationships": 1,
        "file_analyse": 1,
        "statistics": 1
      },
      "2020-09-06": {
        "file_behaviours": 6,
        "file_relationships": 2,
        "graph_comments": 1,
        "graphs": 5
      },
      "2020-09-07": {
        "domain_relationships": 1,
        "intelligence_search": 5,
        "resolutions": 1,
        "search": 6,
        "submissions": 1,
        "url_relationships": 1,
        "urls": 2
      }
    },
    "total": {
      "analyses": 30,
      "comment_relationships": 1,
      "comments": 4,
      "domain_comments": 1,
      "domain_graphs": 2,
      "domain_relationships": 2,
      "domains": 1,
      "file_analyse": 6,
      "file_behaviours": 6,
      "file_download": 331,
      "file_relationships": 19,
      "files": 9,
      "graph_comments": 2,
      "graph_items": 3,
      "graphs": 8,
      "intelligence_search": 5,
      "resolutions": 1,
      "retrohunt_jobs": 2,
      "search": 6,
      "statistics": 1,
      "submissions": 1,
      "url_relationships": 1,
      "urls": 8
    }
  }
}
Language
Click Try It! to start a request and see the response here!