{"openapi":"3.1.0","info":{"title":"Street Art Cities Festivals API","description":"Street art festivals, their editions, and the artworks painted at each edition.","version":"1.0.0"},"servers":[{"url":"https://streetartcities.com","description":"Production"},{"url":"https://streetartdev.com","description":"Development"}],"components":{"schemas":{"Festival":{"type":"object","properties":{"@type":{"type":"string","const":"Festival"},"id":{"type":"string"},"title":{"type":"string"},"href":{"type":"string","description":"The festival's page on Street Art Cities"},"country":{"type":"string","description":"Two-letter country code, like `NL`"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City ID, like `amsterdam`"},"location":{"anyOf":[{"type":"object","properties":{"name":{"description":"The venue, like `Galvanizers Yard`","anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"lat":{"type":"number"},"lng":{"type":"number"}},"required":["lat","lng"]},{"type":"null"}],"description":"Where the festival happens, if it has one main place"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"headerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"backgroundColor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The background colour of the festival's page, like `#fdf2ec`"},"accentColor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The festival's accent colour, like `#e62d37`"},"pageStyle":{"anyOf":[{"type":"string","enum":["rounded","poster","simple","open"]},{"type":"null"}],"description":"How the festival's page looks on Street Art Cities"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rich text, as HTML"},"socialLinks":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["website","shop","instagram","facebook","mastodon"]},"url":{"type":"string"}},"required":["type","url"]},"description":"Links to the festival's website and socials"},"editions":{"type":"array","items":{"$ref":"#/components/schemas/FestivalEdition"},"description":"Newest first"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["@type","id","title","href","country","city","location","logo","headerImage","backgroundColor","accentColor","pageStyle","description","socialLinks","editions"]},"FestivalEdition":{"type":"object","properties":{"id":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The edition's name, often its year"},"startDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First day, like `2026-06-01`"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last day, like `2026-06-14`"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rich text, as HTML"},"ticketsUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where to get tickets for the edition, if it has any"},"tag":{"type":"string","description":"The `festival` tag on the edition's artworks, like `Festival 2026`"}},"required":["id","title","startDate","endDate","description","ticketsUrl","tag"]},"FestivalEvent":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Like `Exhibition` or `Guided tour`"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where to find out more about the event, or get tickets"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"venue":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The gallery or venue, if it has one"},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City ID, like `amsterdam`"},"startDate":{"type":"string","description":"First day, like `2026-06-01`"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last day, like `2026-06-03`"},"startTime":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Like `19:00`"},"endTime":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","title","type","href","image","venue","address","country","city","startDate","endDate","startTime","endTime"]},"Marker":{"type":"object","properties":{"@type":{"type":"string","const":"Marker"},"id":{"type":"string"},"href":{"type":"string","description":"Link to the marker on Street Art Cities. Always show it when you show the marker"},"city":{"description":"The city it's in. Missing when it isn't in a city","type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}},"required":["id"]},"country":{"description":"Two-letter country code, like `NL`","type":"string"},"countryName":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"address":{"type":"string"},"type":{"type":"string","description":"Marker type, like `artwork` or `legal_wall`"},"title":{"type":"string"},"status":{"description":"`active`, `inProgress` or `removed`","type":"string"},"description":{"description":"Can contain simple HTML, like links and line breaks","type":"string"},"artists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"href":{"type":"string"}},"required":["id","title","href"]},"description":"The artists who made it. Always empty, unless the marker is an artwork"},"artistsString":{"type":"string","description":"Names of the artists, comma separated. Empty, unless the marker is an artwork"},"tags":{"type":"array","items":{"type":"string"}},"thumbnail":{"description":"Link to a small image","type":"string"},"likes":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"images":{"description":"Pictures, the first one is the main one. Not in search results","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"attribution":{"description":"Name of the photographer. Always show it with the image","type":"string"}},"required":["url"],"additionalProperties":{}}},"attributes":{"description":"Extra details, like the year it was made. Not in search results","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"distance":{"description":"Meters from `lat` and `lng`, when searching by distance. Only in search results","type":"number"}},"required":["@type","id","href","lat","lng","type","artists","artistsString","tags","likes"]}}},"paths":{"/api/festivals":{"get":{"operationId":"getApiFestivals","tags":["Festivals"],"security":[],"summary":"List festivals","description":"All festivals, with their editions.","responses":{"200":{"description":"The festivals","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Festival"}}},"required":["items"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}}},"parameters":[{"in":"query","name":"city","schema":{"type":"string","pattern":"^[\\w-]+$"},"description":"Only festivals in this city, like `amsterdam`"},{"in":"query","name":"country","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"description":"Only festivals in this country, like `NL`"}]}},"/api/festivals/{festivalId}":{"get":{"operationId":"getApiFestivalsByFestivalId","tags":["Festivals"],"security":[],"summary":"Get a festival","parameters":[{"name":"festivalId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The festival","content":{"application/json":{"schema":{"type":"object","properties":{"@type":{"type":"string","const":"Festival"},"id":{"type":"string"},"title":{"type":"string"},"href":{"type":"string","description":"The festival's page on Street Art Cities"},"country":{"type":"string","description":"Two-letter country code, like `NL`"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City ID, like `amsterdam`"},"location":{"anyOf":[{"type":"object","properties":{"name":{"description":"The venue, like `Galvanizers Yard`","anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"lat":{"type":"number"},"lng":{"type":"number"}},"required":["lat","lng"]},{"type":"null"}],"description":"Where the festival happens, if it has one main place"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"headerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"backgroundColor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The background colour of the festival's page, like `#fdf2ec`"},"accentColor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The festival's accent colour, like `#e62d37`"},"pageStyle":{"anyOf":[{"type":"string","enum":["rounded","poster","simple","open"]},{"type":"null"}],"description":"How the festival's page looks on Street Art Cities"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rich text, as HTML"},"socialLinks":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["website","shop","instagram","facebook","mastodon"]},"url":{"type":"string"}},"required":["type","url"]},"description":"Links to the festival's website and socials"},"editions":{"type":"array","items":{"$ref":"#/components/schemas/FestivalEdition"},"description":"Newest first"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["@type","id","title","href","country","city","location","logo","headerImage","backgroundColor","accentColor","pageStyle","description","socialLinks","editions"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}}}}},"/api/festivals/{festivalId}/stats":{"get":{"operationId":"getApiFestivalsByFestivalIdStats","tags":["Festivals"],"security":[],"summary":"Get a festival's stats","description":"How many artists made the festival's artworks and how often people saw them, in total and per edition, and who those artists are.","parameters":[{"name":"festivalId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The stats","content":{"application/json":{"schema":{"type":"object","properties":{"artistsCount":{"type":"number","description":"How many different artists made the artworks"},"seensCount":{"type":"number","description":"How often people marked the artworks as 'Seen'"},"editions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"artistsCount":{"type":"number","description":"How many different artists made the artworks"},"seensCount":{"type":"number","description":"How often people marked the artworks as 'Seen'"}},"required":["artistsCount","seensCount"]},"description":"The same counts for each edition, by edition id"},"artists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Two-letter code of the country they're from, if known"},"artworksCount":{"type":"number","description":"How many of the festival's artworks they made"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Their profile picture, or else one of their artworks"}},"required":["id","title","country","artworksCount","image"]},"description":"Every artist on the festival's artworks"},"likesCount":{"type":"number","description":"How many people liked the festival"}},"required":["artistsCount","seensCount","editions","artists","likesCount"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}}}}},"/api/festivals/{festivalId}/events":{"get":{"operationId":"getApiFestivalsByFestivalIdEvents","tags":["Festivals"],"security":[],"summary":"List a festival's events","description":"The community events linked to the festival, past ones included, oldest first. Each edition's events are the ones whose dates overlap the edition's.","parameters":[{"name":"festivalId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The events","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FestivalEvent"}}},"required":["items"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}}}}},"/api/festivals/{festivalId}/editions/{editionId}/artworks":{"get":{"operationId":"getApiFestivalsByFestivalIdEditionsByEditionIdArtworks","tags":["Festivals"],"security":[],"summary":"List an edition's artworks","description":"The artworks carrying the edition's `festival` tag (places with the tag are left out), including removed ones and works in progress. Takes the same options as [searching markers](/markers-api/searching-markers/), except `status`.","parameters":[{"name":"festivalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"editionId","in":"path","required":true,"schema":{"type":"string"}},{"in":"query","name":"q","schema":{"type":"string","maxLength":200},"description":"Words to look for in the title, artists, address and tags"},{"in":"query","name":"country","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"description":"Two-letter country code, like `NL`"},{"in":"query","name":"city","schema":{"type":"string","pattern":"^[\\w-]+$"},"description":"City ID, like `amsterdam`"},{"in":"query","name":"type","schema":{"type":"string","pattern":"^[\\w-]+$"},"description":"Marker type, like `artwork` or `legal_wall`"},{"in":"query","name":"status","schema":{"default":"active","type":"string","enum":["active","inProgress","removed","all"]},"description":"`active` by default. Use `removed` for artworks that are gone, or `all` for everything"},{"in":"query","name":"tag","schema":{"type":"string","maxLength":100},"description":"Only markers with this tag"},{"in":"query","name":"artist","schema":{"type":"string","pattern":"^[\\w-]+$"},"description":"Only markers by this artist, like `banksy`"},{"in":"query","name":"lat","schema":{"type":"number","minimum":-90,"maximum":90},"description":"Latitude, to find markers near a spot (use with `lng`)"},{"in":"query","name":"lng","schema":{"type":"number","minimum":-180,"maximum":180},"description":"Longitude, to find markers near a spot (use with `lat`)"},{"in":"query","name":"radius","schema":{"default":5,"type":"number","exclusiveMinimum":0,"maximum":100},"description":"How far from `lat` and `lng` to look, in km (5 by default)"},{"in":"query","name":"sort","schema":{"type":"string","enum":["relevance","distance","newest","oldest"]},"description":"`distance` when you pass `lat` and `lng`, otherwise `relevance` when you pass `q`, and `newest` when you don't"},{"in":"query","name":"format","schema":{"default":"json","type":"string","enum":["json","geojson"]},"description":"`geojson` gives a GeoJSON FeatureCollection instead"},{"in":"query","name":"updatedSince","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"description":"Only what changed since this time, like `2026-09-01T00:00:00Z`"},{"in":"query","name":"page","schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"description":"Which page of results, starting at 1"},{"in":"query","name":"perPage","schema":{"default":20,"type":"integer","minimum":1,"maximum":100},"description":"How many results per page (20 by default, at most 100)"}],"responses":{"200":{"description":"The artworks","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Marker"}},"page":{"type":"number"},"perPage":{"type":"number"},"total":{"type":"number","description":"How many markers match, over all pages"}},"required":["items","page","perPage","total"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{}}},"required":["message"]}},"required":["error"]}}}}}}}}}