---
title: "Return price distribution buckets for a listing category"
method: GET
path: "/sreality/histogram"
tags: ["Sreality"]
---

# Return price distribution buckets for a listing category

`GET /sreality/histogram`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/sreality/histogram`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `property_type` integer, required
- `deal_type` integer, required

## Response `200`

- string

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `404`: The requested histogram was not found. Non-billable.
- `422`: Both category parameters are required. Non-billable.
- `503`: Histogram data could not be returned. Non-billable.

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/2f4af6143d10?raw)
