---
title: "POIs within a census place"
method: GET
path: "/v1/places/{geoid}/pois"
tags: ["areal"]
---

# POIs within a census place

`GET /v1/places/{geoid}/pois`

## Request

- Base URL: `https://api.close.city`
- URL: `https://api.close.city/v1/places/{geoid}/pois`
- Auth: HTTP bearer

Every point of interest whose location falls within a census place's
boundary (city/town). The place analog of `/v1/pois`; filter by `type` to
get, e.g., all supermarkets in a city. This route is spatial only, with no
travel times.

## Path parameters

- `geoid` string, required: Census place GEOID

## Query parameters

- `type` integer[], nullable: Destination type id(s) to keep
- `q` string, nullable: Name substring
- `limit` integer, nullable
- `cursor` string, nullable

## Response `200`

Successful Response

- PoiSearchResponse
  - `next_cursor` string, nullable: Opaque keyset cursor; null on the last page
  - `results` PoiSearchResult[], required
    - `address` Address, required: A POI street address; every field is nullable. (shape.shape_pois, queries.pois.detail)
      - `city` string, nullable
      - `state` string, nullable
      - `street` string, nullable
      - `zip` string, nullable
    - `dest_id` integer, required
    - `lat` number, required
    - `lon` number, required
    - `name` string, required

## Other responses

- `304`: Not modified (If-None-Match matched the ETag); no body, no tokens charged
- `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)
- `404`: Resource not found (block-not-found, poi-not-found, place-not-found, point-not-covered, no-isochrone-data, direction-not-available)
- `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)
