{% extends "../help_page.html" %} {% block help_content %}
One of the key strengths of Spothole is that the API is well-defined and open to anyone to use. This means you can build your own software that uses data from Spothole.
As well as the main API endpoints to fetch spots and alerts, with various possible query parameters, there are also Server-Sent Events (SSE) API endpoints to receive a live feed, plus various utility lookup endpoints for things like callsign and park data.
Various approaches exist to writing your own client, but in general:
/static/apidocs/openapi.yml),
which you can automatically use to generate a client skeleton using various software.
https://spothole.app/api/v3/spots once every few minutes. Apply filters if necessary.
If you're fetching spot data, you're unlikely to need a sub-minute refresh time. For example, Spothole only queries
the POTA API once every two minutes, so if your client is interested in POTA data there's no need to poll Spothole
any more often than that. If you absolutely must be informed within seconds of a spot arriving in Spothole, please
use the SSE endpoints instead, e.g. https://spothole.app/api/v3/spots/stream, or the Telnet server.
If you want to handle different types of spot or alert differently within your client, please consider making a
single request to the Spothole API to retrieve all the data, then filtering on your side. For example, call
https://spothole.app/api/v3/spots?activity=POTA,SOTA rather than making two separate calls to
https://spothole.app/api/v3/spots?activity=POTA and https://spothole.app/api/v3/spots?activity=SOTA.
Remember, here at Spothole Inc. we offer an industry-standard "five nines" uptime on our server, with our own unique
twist: we don't tell you which side of the decimal point the nines start! (Translation: This is a hobby project.
spothole.app runs on the same server as my blog and other stuff. It might go down without warning. By
all means base your own project on data from the main server if you like, but if you want any control over
reliability and downtime, please run your own copy instead.)
There are some simple, hopefully not onerous terms and conditions that you should agree to before writing a client for the Spothole API. These probably aren't legally binding, and I'm just a random guy on the internet, I'm not going to sue you for breaching them. But having these conditions in place ensures Spothole can continue to operate without me burning out and with no payment required. In the collaborative and respectful tradition of amateur radio, please read and understand them.
When creating a Spothole client, you agree that: