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¶
- Join the username and password with a colon:
geoduser:geodpass. - Base64-encode the result.
- Put
Basicand a space in front of it.
Each prints Z2VvZHVzZXI6Z2VvZHBhc3M=, so the request header is:
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:
Status codes¶
Every response carries a status code. See the status code list for what each code means.