# Festivals API overview

Street art festivals, their editions, and the artworks painted at each edition.

The Festivals API lists street art festivals, their editions, and the artworks painted at each edition.

**Base link:** `https://streetartcities.com/api/festivals`

**API reference:** [open in Swagger UI](https://petstore3.swagger.io/?url=https://streetartcities.com/api/festivals/openapi), or grab the [OpenAPI spec](https://streetartcities.com/api/festivals/openapi) directly.

## Endpoints

| Endpoint                                                      | Scope | What it does                                                                                       |
| ------------------------------------------------------------- | ----- | -------------------------------------------------------------------------------------------------- |
| `GET /api/festivals`                                          | none  | [All festivals, with their editions](/festivals-api/reference/list-festivals/)                     |
| `GET /api/festivals/:festivalId`                              | none  | [One festival](/festivals-api/reference/get-a-festival/)                                           |
| `GET /api/festivals/:festivalId/editions/:editionId/artworks` | none  | [The artworks of one edition](/festivals-api/reference/list-an-editions-artworks/)                 |
| `GET /api/festivals/:festivalId/stats`                        | none  | [Artist, 'Seen' and like counts, and the line-up](/festivals-api/reference/get-a-festivals-stats/) |
| `GET /api/festivals/:festivalId/events`                       | none  | [The events that are part of the festival](/festivals-api/reference/list-a-festivals-events/)      |

None of them need an access token. Filter the list with `city` (like `ostend`) or `country` (like `BE`).

## A festival

```json
{
  "@type": "Festival",
  "id": "the-crystal-ship",
  "title": "The Crystal Ship",
  "href": "https://streetartcities.com/festivals/the-crystal-ship",
  "country": "BE",
  "city": "ostend",
  "location": {
    "name": "Ostend harbour",
    "address": "Vindictivelaan, 8400 Oostende, Belgium",
    "lat": 51.2296,
    "lng": 2.9257
  },
  "logo": "https://streetartcities.com/media/…/logo.png",
  "headerImage": "https://streetartcities.com/media/…/header.jpg",
  "backgroundColor": "#fdf2ec",
  "accentColor": "#e62d37",
  "pageStyle": "poster",
  "description": "<p>A festival of murals by the sea.</p>",
  "socialLinks": [{ "type": "website", "url": "https://thecrystalship.org" }],
  "editions": [
    {
      "id": "2026",
      "title": "2026",
      "startDate": "2026-04-01",
      "endDate": "2026-04-30",
      "description": "<p>The tenth edition.</p>",
      "ticketsUrl": "https://thecrystalship.org/tickets",
      "tag": "The Crystal Ship 2026"
    }
  ]
}
```

`href` is the festival's page on Street Art Cities. `description` is HTML. Editions come newest first, and last a year at most. Only their `tag` is always set: `title`, `startDate` and `endDate` can be `null`, and editions without dates come last.

## An edition's artworks

An artwork belongs to an edition when it carries the edition's `tag` as its `festival` tag. Places with the tag are left out, but removed artworks and works in progress are included. `GET /api/festivals/:festivalId/editions/:editionId/artworks` takes the same options as [searching markers](/markers-api/searching-markers/) except `status`, and gives the same results.

## Stats and line-up

`GET /api/festivals/:festivalId/stats` counts the different artists on the festival's artworks, and how often people marked those artworks as 'Seen'. It gives the totals for all editions, the same counts per edition, every artist with how many of the artworks they made, and how many people liked the festival:

```json
{
  "artistsCount": 2,
  "seensCount": 140,
  "editions": {
    "2026": { "artistsCount": 2, "seensCount": 95 },
    "2025": { "artistsCount": 1, "seensCount": 45 }
  },
  "artists": [
    {
      "id": "aryz",
      "title": "Aryz",
      "country": "ES",
      "artworksCount": 2,
      "image": "https://streetartcities.com/media/…/small.jpg"
    },
    {
      "id": "bisser",
      "title": "Bisser",
      "country": null,
      "artworksCount": 1,
      "image": null
    }
  ],
  "likesCount": 4
}
```

`country` is the two-letter code of the country the artist is from, when we know it. `image` is their profile picture, or else one of their artworks at the festival.

## Events

Events on the [events calendar](https://streetartcities.com/events) can be part of a festival. `GET /api/festivals/:festivalId/events` lists them, past ones included, oldest first:

```json
{
  "items": [
    {
      "id": "4f1c…",
      "title": "Opening night",
      "type": "Exhibition",
      "href": "https://thecrystalship.org/opening",
      "image": "https://streetartcities.com/media/…/poster.jpg",
      "venue": "Venetian Galleries",
      "address": "Koningin Astridlaan 1, Oostende",
      "country": "BE",
      "city": "ostend",
      "startDate": "2026-04-01",
      "endDate": null,
      "startTime": "19:00",
      "endTime": null
    }
  ]
}
```

An edition's events are the ones whose dates overlap the edition's. To link an event to a festival, set its `festival` to the festival's id with the Edits API, and unset it to unlink it again:

```json
{
  "entityType": "calendar-event",
  "entityId": "4f1c…",
  "actions": { "festival": "the-crystal-ship" }
}
```

The festival's managers link, unlink and change its events straight away. Anyone else's change is a suggestion, which the festival's managers can review too.

## Changing festivals

The Festivals API is read-only. To add or change a festival, [suggest a change](/edits-api/suggesting-changes/) with the Edits API, with `entityType` set to `festival`:

```json
{
  "entityType": "festival",
  "entityId": "the-crystal-ship",
  "actions": { "editions.2026.endDate": "2026-05-02" }
}
```

Change one edition with paths like `editions.2026.description`, add one by setting `editions.2027`, and remove one with `{ "editions.2026": { "$unset": true } }`. The festival's own managers, the people who manage all festivals, the country's managers and our admins review every suggestion.

## Errors

Errors look like this:

```json
{ "error": { "message": "Festival not found." } }
```
