new brunswick
New Brunswick provincial government open data across four upstream surfaces: the federal open.canada.ca CKAN catalogue filtered to organization:nb (dataset discovery — NOT a provincial CKAN; data.gnb.ca/opendata.gnb.ca/nbopendata.ca do not resolve), gnb.socrata.com (New Brunswick's real provincial Socrata portal, 312 datasets, keyless), GeoNB (geonb.snb.ca) ArcGIS Server MapServer services (bare ArcGIS Server REST, NOT ArcGIS Hub — the Hub returns HTTP 401) covering flood hazard, wetlands, contaminated sites, Crown land, parcels, civic addresses, health facilities and public schools — minerals and provincial parks are reachable only through the long-tail nb_query_geonb_layer tool, not a dedicated curated tool — and NB 511 (511.gnb.ca) key-gated live road events, winter road conditions and traffic cameras.
lang: "en" | "fr". Open each tool below for its source-derived parameters.nb_get_crown_land
Get New Brunswick Crown Land parcels from GeoNB (geonb.snb.ca), layer 3.
Use forretrieving Crown Land parcel records administered by NB Natural
new brunswick crown land parcel holder geonb dnr natural resources provincial forestry tenure arcgis mapserver crown
| Parameter | Type | Default |
|---|---|---|
holder | int | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_search_datasets
Search New Brunswick's federal-CKAN catalogue (open.canada.ca, 221 datasets).
Use fordiscovering Government of New Brunswick open datasets by keyword. Results
new brunswick nouveau-brunswick gnb open data catalogue dataset search discover ckan federal portal bilingual provincial
| Parameter | Type | Default |
|---|---|---|
query | str | '' |
extra_fq | str | None | None |
limit | int | 10 |
offset | int | 0 |
lang | Literal['en', 'fr'] | 'en' |
nb_get_dataset_details
Get full metadata for a single New Brunswick federal-CKAN dataset by id or name slug.
Use forretrieving complete metadata for a specific NB dataset — resources (format,
new brunswick nouveau-brunswick gnb dataset details metadata resources license bilingual ckan federal portal provincial
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
lang | Literal['en', 'fr'] | 'en' |
nb_query_dataset
Query/parse a resource from a New Brunswick federal-CKAN dataset by resource index.
Use forpulling actual rows out of a CSV, XLSX, XLS, JSON or GeoJSON NB resource.
new brunswick nouveau-brunswick gnb query dataset resource csv xlsx json geojson download rows ckan federal
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
resource_index | int | 0 |
limit | int | 1000 |
lang | Literal['en', 'fr'] | 'en' |
nb_list_organizations
List New Brunswick's publishing organization and sections on the federal-CKAN catalogue.
Use forseeing how NB's catalogue is sliced by publishing department. NB publishes
new brunswick nouveau-brunswick gnb organizations publishers departments sections ckan federal portal provincial catalogue
| Parameter | Type | Default |
|---|---|---|
lang | Literal['en', 'fr'] | 'en' |
nb_list_categories
List New Brunswick's dataset subject, topic and format facets on the federal-CKAN catalogue.
Use forseeing how NB's catalogue is sliced by subject/topic/format. NB packages
new brunswick nouveau-brunswick gnb categories subjects topics formats facets ckan federal portal provincial catalogue
| Parameter | Type | Default |
|---|---|---|
lang | Literal['en', 'fr'] | 'en' |
nb_search_gnb_socrata_datasets
Search New Brunswick's provincial Socrata portal (gnb.socrata.com, 312 datasets, keyless).
Use fordiscovering New Brunswick provincial open datasets published directly on
new brunswick nouveau-brunswick gnb socrata provincial portal open data catalogue search discover keyless dataset
| Parameter | Type | Default |
|---|---|---|
query | str | '' |
limit | int | 10 |
offset | int | 0 |
lang | Literal['en', 'fr'] | 'en' |
nb_query_gnb_socrata_dataset
Query a New Brunswick gnb.socrata.com dataset via SoQL against /resource/{id}.json.
Use forfetching actual rows from a gnb.socrata.com dataset (find dataset_id via
new brunswick nouveau-brunswick gnb socrata provincial soql query dataset resource where select filter portal
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
where | str | None | None |
select | str | None | None |
limit | int | 1000 |
lang | Literal['en', 'fr'] | 'en' |
nb_list_geonb_services
List GeoNB's ArcGIS Server services via a live REST-directory walk.
Use fordiscovering which of GeoNB's ~62 map services exist before querying
new brunswick geonb services directory discover list map arcgis server catalogue enumeration rest walk
| Parameter | Type | Default |
|---|---|---|
query | str | '' |
include_excluded | bool | False |
lang | Literal['en', 'fr'] | 'en' |
nb_get_geonb_service_layers
Get the layers/tables of a single GeoNB ArcGIS Server service, with
Use forfinding a service's real layer ids before querying it — GeoNB
new brunswick geonb service layers fields record count discover layer id mapserver arcgis metadata schema worked example
| Parameter | Type | Default |
|---|---|---|
service_name | str | required |
lang | Literal['en', 'fr'] | 'en' |
nb_query_geonb_layer
Query any GeoNB layer by service name and layer id — the long-tail
Use forreaching any of GeoNB's un-curated services — including the
new brunswick geonb query layer where clause sql arcgis mapserver escape hatch generic feature service uncurated long tail
| Parameter | Type | Default |
|---|---|---|
service_name | str | required |
layer_id | int | required |
where | str | None | None |
out_fields | str | '*' |
limit | int | MAX_RECORDS |
include_geometry | bool | False |
lang | Literal['en', 'fr'] | 'en' |
nb_get_flood_hazard_areas
Get New Brunswick flood hazard index polygons from GeoNB
Use forNew Brunswick's signature open-data domain — mapped flood hazard
new brunswick flood hazard inundation saint john river historical high water geospatial risk mapping sheet classification
| Parameter | Type | Default |
|---|---|---|
sheet | str | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_historical_floods
Get New Brunswick's recorded historical flood limits from GeoNB
Use forretrieving mapped historical high-water extents on the Saint John
new brunswick historical flood limits saint john river high water 1973 2008 2018 inundation geospatial extent recorded
| Parameter | Type | Default |
|---|---|---|
event | str | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_wetlands
Get New Brunswick wetland polygons from GeoNB (GeoNB_ENV_Wetlands, layer 2).
Use forretrieving mapped wetlands (Provincially Significant Wetlands and
new brunswick wetlands psw provincially significant wetland bog marsh swamp fen environment geospatial buffer class status filter required
| Parameter | Type | Default |
|---|---|---|
wetland_class | str | None | None |
status | str | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_contaminated_sites
Get New Brunswick contaminated site points from GeoNB
Use forretrieving mapped contaminated site locations and their status.
new brunswick contaminated sites environment remediation status bilingual elg property identifier file open date cleanup latitude longitude location
| Parameter | Type | Default |
|---|---|---|
status | str | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_parcels
Get New Brunswick land parcels from GeoNB (GeoNB_SNB_Parcels, layer 0).
Use forresolving a specific New Brunswick property by its Parcel
new brunswick parcel pid cadastre land title gazette county property geonb snb parcels geocoding filter required
| Parameter | Type | Default |
|---|---|---|
pid | str | None | None |
county | str | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_civic_addresses
Get New Brunswick civic addresses from GeoNB (GeoNB_DPS_Civic_Address, layer 0).
Use forresolving a street address to a point — by community, street, or
new brunswick civic address geocoding street community fredericton point location latitude longitude pid county geonb dps address points filter required bilingual
| Parameter | Type | Default |
|---|---|---|
community | str | None | None |
street | str | None | None |
civic_number | int | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_health_facilities
Get New Brunswick health facilities from GeoNB (GeoNB_Health_Facilities),
Use forfinding NB hospitals, after-hours clinics, adult residential
new brunswick health facilities hospital horizon vitalite after hours clinic nursing home pharmacy adult residential geonb health authority regional dispatch
| Parameter | Type | Default |
|---|---|---|
facility_type | str | required |
name | str | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_public_schools
Get New Brunswick public schools from GeoNB (GeoNB_EECD_PublicSchools),
Use forfinding NB public schools in the anglophone (206 schools) or
new brunswick public schools anglophone francophone school district education eecd grade level geonb bilingual sector dispatch
| Parameter | Type | Default |
|---|---|---|
sector | str | 'anglophone' |
district | str | None | None |
limit | int | MAX_RECORDS |
lang | Literal['en', 'fr'] | 'en' |
nb_get_road_events
Get current road events (closures, construction, incidents) from NB 511.
Use forchecking active road events on New Brunswick highways — closures,
new brunswick road events closures construction incidents highway 511 transport traffic accidents real-time current conditions department transportation infrastructure
| Parameter | Type | Default |
|---|---|---|
lang | Literal['en', 'fr'] | 'en' |
nb_get_winter_road_conditions
Get winter road conditions on New Brunswick highways from NB 511 (seasonal).
Use forchecking current winter driving conditions on New Brunswick
new brunswick winter road conditions highway 511 transport snow ice visibility seasonal driving department transportation infrastructure real-time
| Parameter | Type | Default |
|---|---|---|
lang | Literal['en', 'fr'] | 'en' |
nb_get_traffic_cameras
Get New Brunswick highway traffic camera locations from NB 511.
Use forretrieving NB 511 traffic camera locations along New Brunswick
new brunswick traffic cameras 511 highway webcam snapshot images live view road conditions visual department transportation infrastructure
| Parameter | Type | Default |
|---|---|---|
lang | Literal['en', 'fr'] | 'en' |