Public gigs API
Show your band's gigs on your own website, straight from Manage a Band.
Every band has a public, read-only address that returns its confirmed gigs, past and upcoming, as JSON. Your website reads it, so the list of shows updates itself when you confirm a gig, edit it or cancel it. No login and no API key are needed.
- Only confirmed gigs are listed. Gigs that haven't been confirmed, and cancelled ones, aren't.
- Each gig has its date, start and end time, and venue. Contact persons, notes, income, answers and members are never included. The venue is shown as the band wrote it, so write it the way you'd like it to appear (e.g. not a private home address).
- Your band's address is on the band's Settings tab in Manage a Band (log in, open the band, then Settings).
The request
GET https://manage-a-band.com/api/v1/bands/{bandId}/gigs| Parameter | Values | What it does |
|---|---|---|
when | all, upcoming, past (default all) | Only upcoming gigs (not started yet), only past ones, or all. |
from | YYYY-MM-DD | Only gigs on or after this date (the band's local date). |
to | YYYY-MM-DD | Only gigs on or before this date (the band's local date). |
order | asc, desc (default asc) | Oldest first (asc) or newest first (desc). |
limit | 1-1000 | At most this many gigs (after sorting). |
Examples: ?when=upcoming for the coming shows, ?when=past&order=desc&limit=10 for the ten latest, ?from=2027-01-01&to=2027-12-31 for one year.
The answer
Gigs are sorted by start time. Dates and times are in the band's time zone; startsAt and endsAt also carry the UTC offset. endTime and endsAt are null when no end time was given.
{
"band": {
"id": "6f1c2a4e-1b7d-4c55-9a8e-2d3f4b5c6d7e",
"name": "The Core",
"timeZone": "Europe/Stockholm"
},
"gigs": [
{
"id": "0b8e6c1a-7f2d-4e3b-9c5a-1d2e3f4a5b6c",
"date": "2027-02-13",
"startTime": "21:00",
"endTime": null,
"startsAt": "2027-02-13T21:00:00+01:00",
"endsAt": null,
"venue": "Oceanen",
"past": true
},
{
"id": "4a5b6c7d-8e9f-4a1b-8c2d-3e4f5a6b7c8d",
"date": "2027-03-14",
"startTime": "19:00",
"endTime": "23:00",
"startsAt": "2027-03-14T19:00:00+01:00",
"endsAt": "2027-03-14T23:00:00+01:00",
"venue": "Pustervik, stora scenen",
"past": false
}
]
}Errors are JSON too, with status 400 (a bad parameter), 404 (no such band) or 429 (too many requests): {"error": "No such band."}.
On your website
Any website can read it from the visitor's browser. A minimal example:
<ul id="gigs"></ul>
<script>
fetch("https://manage-a-band.com/api/v1/bands/YOUR-BAND-ID/gigs?when=upcoming")
.then(r => r.json())
.then(data => {
const list = document.getElementById("gigs");
for (const gig of data.gigs) {
const li = document.createElement("li");
li.textContent = gig.date + " " + gig.startTime + " - " + gig.venue;
list.append(li);
}
});
</script>Answers may be cached for 5 minutes, so a change can take a few minutes to show. Please don't call it more than a few times a minute; a website that fetches it when a page is shown is fine.
OpenAPI
The API is described in OpenAPI 3.1, for code generators and API tools: /api/openapi.json.