GeoMark Web Service REST API
gov · Government
The Geomark Web Service allows you to create and share geographic areas of interest over the web in a variety of formats and coordinate systems. This service is especially helpful when you need to share an area of interest with people who require that the data be in a different format, or they use different mapping software. 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-
Authentication
Sample Requests
The attribution can be downloaded as a info file format. The download files can then be processed by a client application to access the geomark info fields and to get the URLs to the geometry download resources.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}.{fileFormatExtension}?srid=4326"import requests
params = {
"srid": "4326"
}
response = requests.get(
"https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}.{fileFormatExtension}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}.{fileFormatExtension}');
url.searchParams.set('srid', '4326');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}.{fileFormatExtension}")
q := baseURL.Query()
q.Set("srid", "4326")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}.{fileFormatExtension}")
uri.query = URI.encode_www_form({
"srid" => "4326"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}.{fileFormatExtension}?" . http_build_query([
"srid" => "4326"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));The source geomarks can be specified by with the geomarkUrl parameter. Repeat the parameter if sourcing from multiple geomarks
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/boundingBox.{fileFormatExtension}?srid=4326"import requests
params = {
"srid": "4326"
}
response = requests.get(
"https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/boundingBox.{fileFormatExtension}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/boundingBox.{fileFormatExtension}');
url.searchParams.set('srid', '4326');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/boundingBox.{fileFormatExtension}")
q := baseURL.Query()
q.Set("srid", "4326")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/boundingBox.{fileFormatExtension}")
uri.query = URI.encode_www_form({
"srid" => "4326"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/boundingBox.{fileFormatExtension}?" . http_build_query([
"srid" => "4326"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));The geomark feature resource returns a single spatial feature with either a single (Point, LineString, Polygon) or multi-part geometry (MultiPoint, MultiLineString, MultiPolygon) and the geomark attribution. The geometry and attribution can be downloaded as a spatial download file format in a suppo
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/feature.{fileFormatExtension}?srid=4326"import requests
params = {
"srid": "4326"
}
response = requests.get(
"https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/feature.{fileFormatExtension}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/feature.{fileFormatExtension}');
url.searchParams.set('srid', '4326');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/feature.{fileFormatExtension}")
q := baseURL.Query()
q.Set("srid", "4326")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/feature.{fileFormatExtension}")
uri.query = URI.encode_www_form({
"srid" => "4326"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/gov.bc.ca/geomark/4.1.2/geomarks/{geomarkId}/feature.{fileFormatExtension}?" . http_build_query([
"srid" => "4326"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with GeoMark Web Service REST API?
GeoMark Web Service REST API is a Government API. Developers commonly use government APIs for:
- surfacing public datasets in citizen-facing apps
- building transparency and civic engagement tools
- accessing legislation, court records, and official data
- powering research and journalism tools
- creating compliance and regulatory monitoring dashboards
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. GeoMark Web Service REST API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?