Skip to content

Overview

This document defines the APIs for the raw data stream service.

GEODNET Station API

APIs for the raw data stream service: mountpoints, station metadata, precise coordinates, and QC metrics.

Authentication

Every call uses HTTP Basic authentication, the same format as NTRIP. You send your username and password in the Authorization header. GEODNET provides the username and password.

Base64 is not encryption

Basic authentication only encodes your credentials. Anyone who sees the header can decode it. Always call the API over HTTPS, as the examples do, and keep the credentials secret.

Get the header value

  1. Join the username and password with a colon: geoduser:geodpass.
  2. Base64-encode the result.
  3. Put Basic and a space in front of it.
echo -n 'geoduser:geodpass' | base64
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("geoduser:geodpass"))
powershell -Command "[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes('geoduser:geodpass'))"
import base64
base64.b64encode(b"geoduser:geodpass").decode()
Buffer.from("geoduser:geodpass").toString("base64")

Each prints Z2VvZHVzZXI6Z2VvZHBhc3M=, so the request header is:

Authorization: Basic Z2VvZHVzZXI6Z2VvZHBhc3M=

The charset must be compatible with US-ASCII. Servers may suggest UTF-8.

Or let curl build it

curl -u creates the header for you:

curl -u "geoduser:geodpass" "https://rawdata.geodnet.com/api/rawdata/v1/mountpoints"

Status codes

Every response carries a status code. See the status code list for what each code means.