GET MyJFrog Usage Data

Returns a CSV file containing usage data for the subscription over a specified time period. You can define data filters and output settings for the exported report.

Related Documentation: This API parallels the filtering and reporting features of the MyJFrog portal's Usage Explorer tab.

Security: Requires a valid token

Subscription: This feature is supported on the Cloud (SaaS) platform for all licenses.

Filter and Group Keys

The following keys are valid for the optional filter_by and group_by parameters:

  • action: Valid values are upload or download
  • artifact_path: you can group data in blocks of 32 days or more
  • ip: you can group data in blocks of 32 days or more
  • package_type
  • project
  • repo_type (repository type)
  • repository
  • server_name
  • service
  • username

Rate Limiting

This API request can generate significant processing loads. To retrieve a large data set, define a series of API requests with date ranges or filters.

The following limits are imposed on consecutive submissions of this request:

IP-based limits:

  • 10 requests within 10 minutes
  • 20 requests per hour

Token-based limits:

  • 5 requests within 5 minutes
  • 10 requests per hour

Note: Rate limits may vary from these defaults in response to network conditions and service priorities.

Response

The response payload contains a CSV file named JFrog-data-transfer-YYYYMMDD-yyyymmdd.csv where YYYYMMDD is the value of start_date and yyyymmdd is the value of non_inclusive_end_date. All timestamps in the CSV file are UTC.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
enum
required

The type of data requested. Currently only the value "traffic" is supported, which corresponds to the Data Transfer usage reports of the MyJFrog portal.

Allowed:
Query Params
string
enum
required

Output format. Currently only "csv" is supported.

Allowed:
date
required

The earliest date for which data is reported (YYYY-MM-DD format). Must be within the last 558 days.

date
required

The latest date for which data is reported (YYYY-MM-DD format).

string
enum
required

Granularity of data aggregation:

  • day: report average and/or peak values several times per day (date range cannot exceed 3 months)
  • month: report average and/or peak values several times per month (date range cannot exceed 12 months)
Allowed:
integer
required
1 to 1999

Number of daily or monthly data samples (valid range 1-1999).

filter_by
object

Optional filter to include only records matching the specified values. Example: filter_by[package_type]=docker includes only docker packages. Multiple filters can be applied simultaneously. You can also define multiple values for the same key to broaden the filter (e.g., filter_by[server_name]=myserver1&filter_by[server_name]=myserver2).

group_by
array of strings

Optional grouping of reported data based on the specified keys. Example: group_by=username groups together data records for each user account. Multiple grouping criteria can be specified by repeating the parameter. Note: artifact_path and ip grouping require date ranges of 32 days or more.

group_by
Responses

400

Bad Request - Invalid parameters supplied

401

Unauthorized user - Missing or invalid bearer token

403

Forbidden:

  • User lacks the required view_usage permission
  • User not authenticated for this SaaS subscription
429

Request Denied - Request rate exceeded. Too many/too frequent API requests were submitted.

500

Internal Server Error - An unexpected error occurred

Language
Credentials
Bearer
LoadingLoading…
Response
Choose an example:
text/csv