# Geocoder REST API API

> This API represents address cleaning, correction, completion, geocoding, reverse geocoding, and proximity resources for intersection addresses, physical addresses and their occupants in British Columbia. Please read our [data collection notice](https://github.com/bcgov/api-specs/blob/master/COLLECTION_NOTICE.md#collection-notice). Please note that you may experience issues when submitting requests to the delivery or test environment if using this [OpenAPI specification](https://github.com/bcgov/api-specs) in other API console viewers. [API keys](https://api.gov.bc.ca/devportal/api-directory/273) are unique and can be acquired with a GitHub or IDIR account. **Notification:** If you have applications or web pages that link to the BC Address Geocoder you must use the following URL. *https://geocoder.api.gov.bc.ca* Please note that the following URLs were deprecated in September 2018 [More Details](https://www2.gov.bc.ca/gov/content?id=103ADC5A956842828554238DEF28D6E5). - http://apps.gov.bc.ca/pub/geocoder - https://apps.gov.bc.ca/pub/geocoder \ \.

Geocoder REST API is an open data API from gov.bc.ca. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 16 endpoints.

## At a glance

- Category: [Open Data](https://www.openparable.com/apis/category/open-data)
- Provider: gov.bc.ca
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://geocoder.api.gov.bc.ca/
- Documentation: https://www2.gov.bc.ca/gov/content?id=118DD57CD9674D57BDBD511C2E78DC0D
- OpenAPI description: https://api.apis.guru/v2/specs/gov.bc.ca/geocoder/2.0.0/openapi.json
- Version: 2.0.0
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://geocoder.api.gov.bc.ca/addresses.OUTPUTFORMAT" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /addresses.{outputFormat}` — Geocode an address
- `GET /intersections/near.{outputFormat}` — Find intersections near to a geographic point
- `GET /intersections/nearest.{outputFormat}` — Find nearest intersection to a geographic point
- `GET /intersections/within.{outputFormat}` — Find intersections in a geographic area
- `GET /intersections/{intersectionID}.{outputFormat}` — Get an intersection by its unique ID
- `GET /occupants/addresses.{outputFormat}` — Geocode an address and identify site occupants
- `GET /occupants/near.{outputFormat}` — Find occupants of sites near to a geographic point
- `GET /occupants/nearest.{outputFormat}` — Find occupants of the site nearest to a geographic point
- `GET /occupants/within.{outputFormat}` — Find occupants of sites in a geographic area
- `GET /occupants/{occupantID}.{outputFormat}` — Get an occupant (of a site) by its unique ID
- `GET /parcels/pids/{siteID}.{outputFormat}` — Get a comma-separated string of all pids for a given site
- `GET /sites/near.{outputFormat}` — Find sites near to a geographic point
- `GET /sites/nearest.{outputFormat}` — Find the site nearest to a geographic point
- `GET /sites/within.{outputFormat}` — Find sites in a geographic area
- `GET /sites/{siteID}.{outputFormat}` — Get a site by its unique ID
- `GET /sites/{siteID}/subsites.{outputFormat}` — Represents all subsites of a given site

## Questions

### Does the Geocoder REST API API need an API key?

Yes. The Geocoder REST API API uses API key authentication; the documentation explains how to get credentials.

### Does the Geocoder REST API API support HTTPS?

Yes, the Geocoder REST API API is served over HTTPS.

### How many endpoints does the Geocoder REST API API have?

Its OpenAPI description lists 16 endpoints in version 2.0.0. All of them are shown on this page.

### What are alternatives to the Geocoder REST API API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

## Similar open data APIs

- [Search Services](https://www.openparable.com/apis/search-services): API for Internet Archive's Search-related services
- [Wayback API](https://www.openparable.com/apis/wayback): API for Internet Archive's Wayback Machine
- [Wikipedia](https://www.openparable.com/apis/wikipedia): Mediawiki Encyclopedia
- [Nasdaq Data Link](https://www.openparable.com/apis/nasdaq-data-link): The source for financial, economic, and alternative datasets, serving investment professionals.
- [University of Oslo](https://www.openparable.com/apis/university-of-oslo): Courses, lecture videos, detailed information for courses etc. for the University of Oslo (Norway)
- [Data API](https://www.openparable.com/apis/data): Serves the Clever Data API
- [Kaggle](https://www.openparable.com/apis/kaggle): Create and interact with Datasets, Notebooks, and connect with Kaggle
- [CollegeScoreCard.ed.gov](https://www.openparable.com/apis/collegescorecard-ed-gov): Data on higher education institutions in the United States
- [U.S. EPA Enforcement and Compliance History Online (ECHO) - All Data](https://www.openparable.com/apis/u-s-epa-enforcement-and-compliance-history-online-echo-all-data): Enforcement and Compliance History Online (ECHO) is a tool developed and maintained by EPA's Office of Enforcement and Compliance Assurance for public use. ECHO provides integrated compliance and enforcement information for over 1 million regulated facilities nationwide. ECHO Rest Services provide multiple service endpoints, each with specific capabilities, to search and retrieve data on facilities regulated as Clean Air Act (CAA) stationary sources, Clean Water Act (CWA) dischargers, Resource Conservation and Recovery Act (RCRA) hazardous waste generators/handlers, and Safe Drinking Water Act (SDWA) public water systems. Data of interest from other EPA sources, such as the Toxics Release Inventory, is also supplied for context. \ The get_facilities, get_map, get_qid, and get_download end points are meant to be used together, while the enhanced get_facility_info end point is self contained. The get_facility_info end point returns either an array of state, county or zip clusters with summary statistics per cluster or an array of facilities. \ The recommended use scenario for get_facilities, get_qid, get_map, and get_downoad is: \ <b>1)</b> Use get_facilities to validate passed query parameters, obtain summary statistics and to obtain a query_id (QID). QIDs are time sensitive and will be valid for approximately 30 minutes. <b>2)</b> Use get_qid, with the returned QID, to paginate through arrays of facility results. <b>3)</b> Use get_map, with the returned QID, to zoom in/out and pan on the clustered and individual facility coordinates that meet the QID query criteria. <b>4)</b> Use get_download, with the returned QID, to generate a Comma Separated Value (CSV) file of facility information that meets the QID query criteria. \ \ Use the qcolumns parameter to customize your search results. Use the Metadata service endpoint for a list of available output objects, their Column Ids, and their definitions to help you build your customized output. \ Additional ECHO Resources: <a href="https://echo.epa.gov/tools/web-services">Web Services</a>, <a href="https://echo.epa.gov/resources/echo-data/about-the-data">About ECHO's Data</a>, <a href="https://echo.epa.gov/tools/data-downloads">Data Downloads</a>
- [Authorized Partner API Specification](https://www.openparable.com/apis/authorized-partner-specification): To access files in user’s DigiLocker account from your application, you must first obtain user’s authorization.
- [GENESIS](https://www.openparable.com/apis/genesis): Federal Statistical Office Germany
- [Scoop.it](https://www.openparable.com/apis/scoop-it): Content Curation Service

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/geocoder (OpenParable). Cite the canonical URL above.
