get_metrics
Arguments and Behavior
The tool can appear in discovery before metric reads are enabled for your credentials. Metric queries have no public REST reference.
Uniform metric values for named metrics, windows and subjects: one row per subject, cohort, metric and window with value, unit, observation count, quality, availability and reason. Discover ids with meta(topic=metrics). Omit grades and one card fans out to every grade and finish cohort, so pass grades to narrow it and page large answers with cursor. Rows pass through untouched, including null values with their availability and reason; unestablished finish/grade cells are withheld into not_shown. Unrecognized ids answer invalid_params with the valid list.
metricsarray · RequiredMetric ids, e.g. median_price. Discover ids with meta(topic=metrics); Unrecognized ids answer invalid_params with the valid list.
windowsarray · RequiredTrailing windows, e.g. 7d, 30d or 90d. Unrecognized windows answer invalid_params with the valid list.
subject_typestring · OptionalSubject type, e.g. card (default). Only card is served today; set and index answer invalid_params listing the current types until added.
Default
"card"subject_idsarray · RequiredSubject ids, 1 to 100 (same format as card_id for cards).
gradesarray · OptionalGrade keys narrowing the cohorts, e.g. PSA:10. Omit for every grade.
finishstring · OptionalPrint finish cohort. A metric without a finish grain rejects it.
languagestring · OptionalLanguage token, e.g. en.
editionstring · OptionalEdition, e.g. first_edition.
stampstring · OptionalStamp token.
gamestring · OptionalTCG: pokemon (default), onepiece, or riftbound.
optionsobject · OptionalOpen per-metric options. Unrecognized options answer invalid_params with the valid list.
cursorstring · OptionalOpaque page cursor from the previous page.

