---
title: "Get aggregated markets"
method: GET
path: "/api/market/aggregated"
tags: ["Market"]
---

# Get aggregated markets

`GET /api/market/aggregated`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/market/aggregated`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/market/aggregated/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns aggregated markets based on the provided market IDs. Can return as a comma-separated string if 'raw' parameter is set.

## Query parameters

- `market_id[]` integer[], required
- `columns[]` string[]
- `raw` boolean

## Response `200`

Aggregated markets

- union
  - object[]
    - `id` integer
    - `name` string
  - string: Comma-separated IDs when raw=true

## Other responses

- `401`: Unauthenticated

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
