Developers

Overview

Integrate Shooters Hub via simple embeds or the HTTP API. For API calls, create and manage your keys under API Keys.

Embed Options

iFrame (simplest)

Embed the hosted Match Finder; no API key required.

<iframe
  src="https://shootershub.fortneyengineering.com/match-finder?type=NRL22&sort=dateAsc"
  loading="lazy"
  style="width:100%;height:700px;border:0;" allowfullscreen
></iframe>

Script Widget

Lightweight helper that injects an iFrame with your options.

<div id="sh-matches"></div>
<script src="https://shootershub.fortneyengineering.com/embed/match-finder.js"
        data-target="#sh-matches"
        data-type="NRL22"
        data-view="map"
        data-height="700"></script>

WordPress Plugin

Use the Shooters Hub WP plugin to embed the finder without code.

Direct API

For servers or advanced frontends (requires API key).

API Keys

Create and manage keys under API Keys. Keys can be confidential (server-to-server, lock by IP) or public (browser, lock by Origin).

Endpoints

/api/matches

Parameters (subset):

  • type: string (CSV)
  • series: string (CSV)
  • from,to: YYYY-MM-DD
  • lat,lng,radius: location filter
  • sort: dateAsc|dateDesc|nameAsc|nameDesc
  • limit: 10–200

Request:

curl -H "x-api-key: SH_xxx" "https://shootershub.fortneyengineering.com/api/matches?type=NRL22&limit=50"

Response:

{
  "items": []
}