ViewRoyal.ai API Docs

List bylaws

Returns a paginated list of bylaws with optional filters for status, category, and year.

GET
/api/v1/{municipality}/bylaws

Authorization

ApiKeyAuth
X-API-Key<token>

API key for authentication. Get your key at /settings/api-keys.

In: header

Path Parameters

municipality*string

Municipality slug (e.g., "view-royal")

Default"view-royal"

Query Parameters

cursor?string

Pagination cursor from previous response

per_page?integer

Number of results per page (max 100)

Default20
Range1 <= value <= 100
status?string

Filter by bylaw status

category?string

Filter by category

year?|

Filter by bylaw year

Response Body

curl -X GET "https://viewroyal.ai/api/v1/view-royal/bylaws"
Empty