Skip to content

Set Metrics

Introduction

The Set Metrics endpoint provides an overview of key statistics related to a specific set, such as the number of published titles associated with the set.

Set Metrics Object

The set metrics resource includes the following fields:

Field Type Description
products Integer The total number of published titles in the set.

Managing Set Resources

The metrics endpoint is read-only and does not accept modification requests.

Getting Set Metrics (GET)

Endpoint

GET https://api.openpublishing.com/resource/v3/sets/<ID>/metrics

<ID> is the unique identifier of the set.

Response Structure

The response is a JSON object containing the metric resource object.

Example Request

URL:

GET https://api.openpublishing.com/resource/v3/sets/3/metrics

Example Response

```json { "products": 3 }