Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev guideRecipesAPI ReferenceChangelog
Dev guideAPI ReferenceRecipesChangelogUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

List Metrics

Get a list of all the Metrics for an account, a project, a combination of account and project,or a list of layer_ids. Each parameter must be provided exclusively, with the exception of thespecial case where both account_id and project_id may be provided in the same request.

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…

👍

Beta

The metrics module is in beta. Optimizely is not currently accepting additional customers into this beta program.

Query Params
int64

The unique identifier for the account which contains the metrics.

int64

The unique identifier for the project which contains the metrics.

string
Defaults to full

Modifies the structure of data that is returned. Defaults to the full representation, which contains all of the data for a metric and associated entities.

int32
Defaults to 0

Pagination parameter indicating the result set page at which to return a page of data. Defaults to 0.

int32
Defaults to 25

Pagination parameter indicating the page size (number of records) to return. Defaults to 25.

string

Comma separated list of metric properties that may be used to define the order of records in the paginated result set. The keywords ASC (ascending) and DESC (descending) may be applied to specify the direction of the sort for the named property. e.g., order=description DESC, metric_id ASC. If no direction is specified, it defaults to ASC. Changing the sequence of the properties provided to the order parameter changes the ordering of the result set. The result set will be ordered by the first property and then, within any common values of the first property, ordered by the second property, and so on (i.e., a stable sort is applied).

string

Case insensitive search term applied to the description, display_title, and id fields.

boolean

Selects metrics based on the value of the archived field. If true, returns only archived metrics. If false, returns only non-archived metrics. If absent, returns all metrics.

Response

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json