{"openapi":"3.1.0","info":{"title":"IoVado public event discovery","version":"1.0.0","description":"Read-only access to the same search used by the website. Coverage, cancellation checks and refresh frequency are not guaranteed. Cite the canonical IoVado event URL; retain the original source link for verification. No API key is required. No content-licensing grant is implied by API access."},"servers":[{"url":"https://iovado.info"}],"security":[],"paths":{"/api/v1/events":{"get":{"operationId":"searchEvents","summary":"Search currently listed ongoing and future events","description":"Returns JSON, ordered chronologically rather than by distance. Send explicit date bounds for time-specific questions. Bounds overlap inclusively; null end dates use the start date. Fully ended events are excluded relative to the database current day even if past dates are requested. Latitude, longitude and radius must be supplied together; spatial filtering takes precedence over city and excludes events without coordinates. Categories OR-match exact stored tags; untagged events will not match. Total and pages are live reads, not a snapshot or a promise of complete local coverage.","parameters":[{"name":"city","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":120},"description":"Case-insensitive city/province substring filter when no spatial filter is supplied. SQL LIKE wildcard characters retain their existing semantics."},{"name":"categories","in":"query","required":false,"schema":{"type":"string","maxLength":1000,"example":"Musica,Arte e Cultura"},"description":"Comma-separated exact tags; at most 20 nonempty values, each at most 100 characters. Missing classification is common."},{"name":"dateFrom","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Inclusive date-only overlap lower bound, YYYY-MM-DD."},{"name":"dateTo","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Inclusive upper bound; must not precede dateFrom."},{"name":"lat","in":"query","required":false,"schema":{"type":"number","minimum":-90,"maximum":90,"example":44.4949},"description":"Latitude; requires lng and radius."},{"name":"lng","in":"query","required":false,"schema":{"type":"number","minimum":-180,"maximum":180,"example":11.3426},"description":"Longitude; requires lat and radius."},{"name":"radius","in":"query","required":false,"schema":{"type":"number","exclusiveMinimum":0,"maximum":2000,"example":25},"description":"Radius in kilometres, not metres. Uses geographical distance, not driving time."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Maximum records in this page."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100000,"default":0},"description":"Pagination offset; retrieve only what the request needs."},{"name":"x-iovado-image-credits","in":"header","required":false,"schema":{"type":"string","enum":["1"]},"description":"Opt in only if you retain required image credit and licence information when displaying/reusing images. Otherwise attribution-required images are withheld from JSON and JSON-LD."}],"responses":{"200":{"description":"Live search result; zero results does not establish that no events exist nearby.","content":{"application/json":{"schema":{"type":"object","required":["events","total","limit","offset"],"properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"}}}}}},"400":{"description":"Invalid, duplicated, partial or unknown search parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Read failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events/cities":{"get":{"operationId":"findCities","summary":"Resolve a city prefix to up to five reference locations","description":"A reference-table match does not imply that matching events are available. Empty or omitted q returns an empty array.","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120,"example":"Bolog"},"description":"Case-insensitive prefix; SQL LIKE wildcard characters retain existing semantics."}],"responses":{"200":{"description":"At most five city matches.","content":{"application/json":{"schema":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"city":{"type":"string"},"province":{"type":["string","null"]},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]}}}}}}},"400":{"description":"Invalid q.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Read failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events/{id}":{"get":{"operationId":"getEvent","summary":"Read one stable event as JSON, JSON-LD or HTML","description":"Past records can still be retrieved by ID. Default is JSON. Explicit format takes precedence over Accept. The HTML representation is a complete single-event document with visible image attribution and JSON-LD, requiring no JavaScript; it is not the canonical website SPA. JSON-LD uses the same event identity/schema as the frontend. Unknown facts and unsupported lifecycle/offer claims are omitted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,17}$"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","jsonld","html"]},"description":"Alternative representation; otherwise negotiated through Accept."},{"name":"x-iovado-image-credits","in":"header","required":false,"schema":{"type":"string","enum":["1"]},"description":"Opt in only if you retain required image credit and licence information when displaying/reusing images. Otherwise attribution-required images are withheld from JSON and JSON-LD."}],"responses":{"200":{"description":"One event. Responses vary by Accept and image-credit capability and are private/no-store.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}},"application/ld+json":{"schema":{"$ref":"#/components/schemas/StructuredEvent"}},"text/html":{"schema":{"type":"string"}}}},"400":{"description":"Invalid ID or format, or an unknown ID (code: event_not_found). Unknown IDs are lookup-validation errors, not cancellation/deletion assertions. This avoids the existing CDN 404-to-SPA fallback.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"406":{"description":"Requested media type is unsupported.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Read failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"field":{"type":"string"}}},"Event":{"type":"object","required":["event_id","links"],"properties":{"event_id":{"oneOf":[{"type":"integer","minimum":1},{"type":"string","pattern":"^[1-9][0-9]{0,17}$"}]},"event_slug":{"type":["string","null"]},"event_permalink":{"type":["string","null"]},"event_title":{"type":["string","null"]},"event_subtitle":{"type":["string","null"]},"event_description":{"type":["string","null"]},"event_image_url":{"type":["string","null"]},"event_source":{"type":["string","null"]},"status":{"type":["string","null"],"description":"Ingestion processing state, NOT cancellation, event lifecycle, ticket availability or organizer verification."},"occ_first_date":{"type":["string","null"],"format":"date","description":"Date or availability-bound start; a span is not proof of continuous activity or a performance every day."},"occ_last_date":{"type":["string","null"],"format":"date","description":"Optional inclusive end bound. Null is treated as a single-day event for search."},"occ_start_time":{"type":["string","null"],"description":"Local clock string when supplied, without a confirmed UTC offset. Null means unknown."},"occ_end_time":{"type":["string","null"],"description":"Local clock string when supplied, without a confirmed UTC offset. Null means unknown."},"occ_ticket":{"type":["string","null"],"description":"Source admission text, not structured price or inventory. Null means unknown."},"venue_name":{"type":["string","null"]},"venue_address":{"type":["string","null"]},"venue_city":{"type":["string","null"]},"venue_province":{"type":["string","null"]},"tag_1":{"type":["string","null"]},"tag_2":{"type":["string","null"]},"tag_3":{"type":["string","null"]},"organizer_name":{"type":["string","null"]},"organizer_email":{"type":["string","null"]},"organizer_phone":{"type":["string","null"]},"organizer_website":{"type":["string","null"]},"venue_lat":{"type":["number","null"]},"venue_lng":{"type":["number","null"]},"links":{"type":"object","required":["canonical","api","jsonld","html"],"properties":{"canonical":{"type":"string","format":"uri"},"api":{"type":"string","format":"uri"},"jsonld":{"type":"string","format":"uri"},"html":{"type":"string","format":"uri"},"source":{"type":"string","format":"uri"}}},"image_attribution":{"$ref":"#/components/schemas/ImageAttribution"}}},"ImageAttribution":{"type":"object","description":"Retain supplied title, credit, source and exact licence. Attribution is not a blanket permission to change or republish images.","required":["version","image_url","title","credit","license_url","license_label","source_url","source_label"],"properties":{"version":{"const":1},"image_url":{"type":"string"},"title":{"type":"string"},"credit":{"type":"string"},"license_url":{"type":"string"},"license_label":{"type":"string"},"source_url":{"type":"string"},"source_label":{"type":"string"}}},"StructuredEvent":{"type":"object","required":["@context","@type","@id","url","identifier"],"properties":{"@context":{"const":"https://schema.org"},"@type":{"const":"Event"},"@id":{"type":"string","format":"uri"},"url":{"type":"string","format":"uri"},"identifier":{"type":"string"},"name":{"type":["string","null"]},"description":{"type":"string"},"image":{"oneOf":[{"type":"string","format":"uri"},{"type":"object","required":["@type","contentUrl","creditText","license"],"properties":{"@type":{"const":"ImageObject"},"contentUrl":{"type":"string","format":"uri"},"name":{"type":"string"},"creditText":{"type":"string"},"license":{"type":"string","format":"uri"}}}]},"startDate":{"type":"string"},"endDate":{"type":"string"},"location":{"type":"object"},"organizer":{"type":"object"}}}}}}