API REFERENCE
Get Catalog Valuations
On this page
/api/catalogs/{catalogId}/valuationsGet the persisted valuation history for a catalog, latest first. A row is written each time a valuation band is computed for the whole catalog (valuation runs and measurement reads persist at most one row per catalog per day). Use limit=1 for the current value. History is what makes week-over-week deltas possible.
Authentication
x-api-key in header
bearerAuth bearer
Request
curl --request GET \
--url 'https://api.recoupable.dev/api/catalogs/YOUR_CATALOG_ID/valuations' \
--header 'x-api-key: YOUR_API_KEY'Replace the YOUR_ placeholders with your values. Required query parameters are included; optional parameters are listed below.
Parameters
Path parameters
catalogIdstringrequiredThe unique identifier of the catalog. The catalog must belong to the authenticated account. Malformed (non-uuid) values are rejected with 400.
Query parameters
limitintegerMaximum number of valuation rows to return, latest first (default 30, max 100). limit=1 returns the current value. Invalid values are rejected with 400.
Default: 30
Responses
200The catalog's persisted valuation rows, latest first. Empty when no valuation has been persisted yet.+
application/json
statusstringrequiredvaluationsarray<object>requiredPersisted valuation rows, latest first.
Item properties for valuations
lownumberrequiredLow end of the estimated catalog value band, USD.
midnumberrequiredMidpoint of the estimated catalog value band, USD.
highnumberrequiredHigh end of the estimated catalog value band, USD.
measured_song_countintegerrequiredSongs measured in the capture this valuation was computed from.
total_streamsintegerrequiredWhole-catalog lifetime stream total at measurement time.
measured_atstringrequiredWhen the underlying measurement was taken.
format: date-time
400Malformed catalogId or limit+
application/json
errorintegerrequiredformat: int32
messagestringrequired401Missing or invalid credentials+
application/json
errorintegerrequiredformat: int32
messagestringrequired404Catalog not found or not owned by the authenticated account+
application/json
errorintegerrequiredformat: int32
messagestringrequiredFull specification
Download the OpenAPI file for complete schemas, constraints, and examples.
Download releases.jsonView operation source
{
"description": "Get the persisted valuation history for a catalog, latest first. A row is written each time a valuation band is computed for the whole catalog (valuation runs and measurement reads persist at most one row per catalog per day). Use limit=1 for the current value. History is what makes week-over-week deltas possible.",
"security": [
{
"apiKeyAuth": []
},
{
"bearerAuth": []
}
],
"parameters": [
{
"name": "catalogId",
"in": "path",
"description": "The unique identifier of the catalog. The catalog must belong to the authenticated account. Malformed (non-uuid) values are rejected with 400.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "limit",
"in": "query",
"description": "Maximum number of valuation rows to return, latest first (default 30, max 100). limit=1 returns the current value. Invalid values are rejected with 400.",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 30
}
}
],
"responses": {
"200": {
"description": "The catalog's persisted valuation rows, latest first. Empty when no valuation has been persisted yet.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CatalogValuationsResponse"
}
}
}
},
"400": {
"description": "Malformed catalogId or limit",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing or invalid credentials",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Catalog not found or not owned by the authenticated account",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}