Edit in GitHubLog an issue

1.4 Reporting API methods

Methods that you can call within the 1.4 Reporting API.

Queue

Queue a report to run. You can queue up multiple reports to run concurrently.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.Queue

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Queue" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportDescription":{"reportSuiteID": "examplersid"}}'

This method requires a reportDescription JSON object, which contains the desired reporting parameters. See reportDescription JSON object reference for details.

The response contains a report ID - use this report ID in the Report.Get method to retrieve the report.

Get

Retrieves a report queued using Report.Queue. As a best practice, Do not call this method more than once a second.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.Get

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Get" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportID": 1234567890}'

This method requires a JSON body, which includes the report ID to retrieve. You can obtain a report ID using Report.Queue.

Request elementTypeDescription
reportID
int
Report ID returned by Report.Queue.
page
int
(Optional) Desired page number (out of totalPages) for larger Data Warehouse requests.

Returns a JSON object containing the desired report data. See Report data object reference for details.

If the report is not ready, a HTTP 400 error is returned.

Cancel

Cancels a previously submitted report request, removing it from the processing queue. You can only cancel reports that are queued or running; if you send a request to cancel a completed report, the API returns an error.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.Cancel

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Cancel" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportID": 1234567890}'

This method requires a JSON body, which includes the report ID to retrieve. You can obtain a report ID using Report.Queue.

Returns true is the operation is successful.

GetElements

Retrieves a list of valid dimensions for the user. Some users might not have access to certain dimensions, so you can use this method to retrieve the dimensions that you can access.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.GetElements

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.GetElements" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportSuiteID": "examplersid"}'

This request requires a JSON body, which includes the report suite ID to obtain accessible dimensions.

Request elementTypeDescription
reportSuiteID
string
The report suite ID that you want to list accessible dimensions for.
existingElements
string[]
(Optional) Include a list of elements already present in the reportDescription to get compatible metrics.
existingMetrics
string[]
(Optional) Include a list of metrics already present in the reportDescription to get compatible metrics.
reportType
string
(Optional) Include the report type to get compatible metrics. Valid values include any, ranked, trended, pathing, fallout, and realtime.

Returns a list of dimensions that the user can access. Each dimension contains the following elements:

Response elementTypeDescription
id
string
The dimension ID.
name
string
The dimension name.
correlation
boolean
Determines if the dimension supports correlations. Used in previous versions of Adobe Analytics.
subrelation
boolean
Determines if the dimension supports subrelations. Used in previous versions of Adobe Analytics.

GetMetrics

Retrieves a list of valid metrics for the user. Some users might not have access to certain metrics, so you can use this method to retrieve the dimensions that you can access.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.GetMetrics

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.GetMetrics" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportSuiteID": "examplersid"}'

This request requires a JSON body, which includes the report suite ID to obtain accessible metrics.

NameTypeDescription
reportSuiteID
string
The report suite ID that you want to list accessible metrics for.
existingElements
string[]
(Optional) Include a list of elements already present in the reportDescription to get compatible metrics.
existingMetrics
string[]
(Optional) Include a list of metrics already present in the reportDescription to get compatible metrics.
reportType
string
(Optional) Include the report type to get compatible metrics. Valid values include any, ranked, trended, pathing, fallout, and realtime.

Returns a list of metrics that the user can access. Each metric contains the following elements:

Response elementTypeDescription
id
string
The metric ID.
name
string
The metric name.
type
string
The metric type. Valid values include number, percent, currency, and time.
decimals
int
The number of decimal places that the metric uses.
formula
null
The formula if the metric is a calculated metric.

GetQueue

Returns a list of reports in a company's report queue.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.GetQueue

Copied to your clipboard
curl -X GET "https://api.omniture.com/admin/1.4/rest/?method=Report.GetQueue" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \

Does not require a JSON body. Returns a list of reports currently running for the company. Company is determined by the credentials used in the x-api-key and Authorization headers.

Response elementTypeDescription
reportID
int
The report ID running.
type
string
The type of report. Valid values include ot (overtime report), ra (ranked report), tr (trended report), pa (pathing report), fo (fallout report), rt (realtime report), su (summary report).
queueTime
date
The date/time that the report was queued (Pacific time).
status
string
The status of the report. Valid values include waiting or running.
priority
int
The report priority.
estimate
double
The estimated time remaining (in seconds) before the report is complete.
reportSuiteID
string
The report suite ID of the report.
user
string
The user that requested the report.

Retry

Retries a report that either has failed running or you want to run again. Convenience method that saves trouble of submitting again a full request via Report.Queue.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.Run

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Run" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportID": 1234567890}}'

This method requires a JSON body, which includes the report ID to retrieve. You can obtain a report ID using Report.Queue.

Returns true is the operation is successful.

Run

Run a real-time report immediately without using the queue.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.Run

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Run" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{"reportDescription":{"reportSuiteID": "examplersid","source": "realtime"}}'

This method requires a reportDescription JSON object, which contains the desired reporting parameters. See reportDescription JSON object reference for details. The source element must be set to realtime for this API call to work.

Returns a JSON object containing the desired report data. See Report data object reference for details.

Validate

Determines if a reportDescription object is valid without running the report. If the report is not valid, an error is returned detailing the problem.

POST https://api.omniture.com/admin/1.4/rest/?method=Report.Validate

Copied to your clipboard
curl -X POST "https://api.omniture.com/admin/1.4/rest/?method=Report.Validate" \
-H "x-api-key: {CLIENTID}" \
-H "Authorization: Bearer {ACCESSTOKEN}" \
-H "Content-Type: application/json" \
-d '{
"reportDescription": {
"reportSuiteID": "examplersid",
"source": "standard",
"dateFrom": "now",
"dateTo": "noon",
"metrics": [
{
"id": "pageviews"
}
],
"locale": "en_US",
"dateGranularity": "minute:30",
"currentData": false
}
}'

This method requires a reportDescription JSON object, which contains the desired reporting parameters. See reportDescription JSON object reference for details.

  • If the reportDescription JSON object is valid, the response contains "valid": true.
  • If the reportDescription JSON object is invalid, the API returns an error outlining the issue. See Troubleshooting for details.
  • If source is set to realtime, ensure either currentData is set to false or currentData is not part of the request, otherwise a 500 - Internal Server Error is returned.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.