🆕Getting started

This guide provides an overview of how to get started using the OS Net API, covering the core elements on how to automate the download of OS Net RINEX.

circle-info

If you are not familiar with the OS Net API please read the overview documentation before proceeding.

What you need?

Instructions

circle-info

Please read these pages in conjunction with the Technical specification.

Prerequisites

  • Node.js installed

  • Axios module installed (npm install axios) and then run it with 'node sample-app.js'

  • Basic understanding of JSON and procedural logic

  • API Key or OAuth2 token for authentication

  • A text editor like Visual Studio Code

Example: Automating RINEX File Downloads

This script fetches available RINEX files for a specific station and date, then downloads them to a local folder:

✅ What this script does

  • Queries the /rinex/{year}/{dayOfYear} endpoint to list available files

  • Iterates through the list and downloads each file using its url

  • Saves the files to a local downloads directory

Last updated

Was this helpful?