---
title: "Blocks that can reach many POIs"
method: POST
path: "/v1/pois/catchment"
tags: ["batch"]
---

# Blocks that can reach many POIs

`POST /v1/pois/catchment`

## Request

- Base URL: `https://api.close.city`
- URL: `https://api.close.city/v1/pois/catchment`
- Auth: HTTP bearer

Every census block within reach of each of many POIs and its travel time,
one row per (POI, block, mode). This is the batch form of
`GET /v1/pois/{dest_id}/catchment`. Each row carries its origin `dest_id`.

## Request body

- CatchmentBatch
  - `block` integer[], nullable
  - `dest_ids` integer[], required: POI destination ids (1-250)
  - `max_minutes` number, nullable
  - `mode` string[], nullable

## Response `200`

Successful Response

- BatchCatchmentResponse: POST /v1/pois/catchment (routers.batch.poi_catchment_batch)
  - `errors` OriginError[], required
    - `detail` string, required
    - `type` string, required: Error slug: block-not-found, no-block-data, point-not-covered, or poi-not-found
  - `results` BatchCatchmentResult[], required
    - `dest_id` integer, required: Origin POI destination id
    - `geoid` string, required
    - `mode` string, required
    - `travel_time` number, required: Minutes, 1 decimal
  - `truncated` integer[], required: dest_ids skipped once the row budget was spent
  - `truncated_reason` string, nullable: 'insufficient-balance' or 'row-budget'; null if nothing was truncated

## Other responses

- `400`: Invalid request (e.g. invalid-parameters, invalid-cursor, invalid-bbox, missing-location, missing-area, invalid-geometry, polygon-too-complex, missing-origins, too-many-origins)
- `401`: Missing or invalid API key (missing-key, invalid-key)
- `403`: Key disabled (account-disabled)
- `429`: Rate limited or token balance exhausted (rate-limited, tokens-exhausted); sets Retry-After
- `503`: Backend temporarily unavailable (debit-unavailable, store-unavailable); may set Retry-After

---

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