Pour votre développeur

Documentation de l'API

Chaque route de l'API, ses paramètres et ses réponses, avec des exemples. Pour intégrer vos événements à votre site pas à pas : Synchroniser votre agenda.

Les évolutions de l'API

The changes of the public API (/api/v1, described by priv/openapi.yaml) that its clients may need to know about, the newest first.

Stability

Within v1, the API only grows: fields, endpoints, query parameters and enum values are added, never renamed nor removed (clients ignore what they don't know); a field may become nullable, never the reverse. Anything leaving in a v2 is announced at least six months ahead with the Deprecation and Sunset headers (RFC 8594). Errors keep one shape, with a stable code.

2026-11-27

  • GET /events/{id} and GET /entities/{id}: an event older than the copy (over for more than 13 months) and an entity linked to no event of it no longer answer 404, for every account whatever its feed: they are read from Stonks Data at the time of the request, in the same shape (updated_at being Stonks Data's last change for them), 301 for a merged id, 404 when Stonks Data doesn't serve them either, 503 unavailable when it can't be asked now. GET /removals no longer lists such records as out_of_scope when they age out of the copy: they didn't change, keep them (out_of_scope stays for an entity out of the countries of the data). The lists, the agenda (GET /agenda/{id} too) and the exports keep to the copy.
  • GET /removals: a session its event no longer lists (an edit dropped a date) is now listed too (type occurrence, reason deleted), as the sessions deleted with their event; its event comes as changed.
  • A sentence of ask answered 503 ask_unavailable is given back to sentences_per_day. POST /links: 503 unavailable when Stonks Data can't be asked gives the link of the day back (nothing kept); a 503 unavailable when Stonks Data didn't answer in time now says the link may still be processed (GET /links shows it once answered), one still unanswered after a day being deleted.
  • The search by meaning (about of GET /events and of the exports) has a daily cap: a text whose meaning isn't kept yet (kept 30 days) spends one of limits.about_per_day of GET /users/me (500 a day, 20,000 for Pas Loin; 429 daily_limit beyond), given back when its meaning can't be had; usage.about counts them.
  • event_ids of a link (proposeLink, Link): their description corrected. They are the events of the page as Stonks Data lists them, in the feed or not; GET /events/{id} serves the ones the feed holds. Nothing changes in the answers.
  • cover_url of an event and logo_url of an entity: their description corrected. They are public links which never expire, not temporary ones: a new cover or logo has a new link, and its event or entity comes as changed in the sync. Nothing changes in the answers.
  • The exports for a paper edition (exportEvents, GET and POST /events/export, routes of the feed): the events of the filters of listEvents (without its pages, sync and order: 400), at most 10,000, then the choices of a selection: started=false (without the events under way before the period), exclude (public ids, 1,000 at most), per_venue, limit with pick (popularity, the default, or start), the printed order order_by (start, kind, city, popularity); popularity_min and recurring=false as in listEvents. As CSV (the default) or a .docx (format=docx) written by a template given (template, as Stonks Data's), saved (template_name) or the example; locale fr or en; 422 invalid for a template which doesn't parse or an unknown template. The file is named stonks-agenda-<date>.<format>.
  • The templates of the .docx exports: GET /export/templates (the example in locale, the fields, as Stonks Data's ExportTemplate under data.events, and the account's own under data.templates), PUT /export/templates/{name} (text, 10 at most, 422 with error.fields for a text which doesn't parse), DELETE /export/templates/{name} (204, 404 for an unknown name).
  • The links: POST /links proposes an address (url, 2000 characters at most) for the events it shows to be added; Stonks Agenda tries it as the page of an event of a known source, then as a website to read, then as a lead to an entity, and answers the link (201): its outcome read (read already), queued (to be read shortly), known (an entity or a lead has it, entity with its id null when the copy doesn't serve it) or refused, via, event_ids, entity, seed_id. 422 for an address which isn't a web address, 429 daily_limit past 50 links a day (none for Pas Loin), 503 unavailable when Stonks Data can't be asked now (nothing kept: try again). GET /links (the latest first, by page) and GET /links/{id} (404 for another customer's).
  • The corrections: POST /events/{id}/corrections corrects an event of the feed (its fields, its sessions by occurrences, its place in three cases, place.problem venue_address for the address of its venue, wrong_venue for another venue by venue_id or as text, address for the place of an event without a venue; or a note alone), one suggestion to Stonks Data, the answer waiting a few seconds for its (status pending, waiting, accepted, refused or failed with its error); a report of the account's public with author (kind public, its role) when its option is on (403 forbidden otherwise); a report_id sent again answers its first correction (200); the caps a day corrections_per_day and public_reports_per_day (429 daily_limit). GET /corrections (by status, event_id, report_id, updated_since, by page) and GET /corrections/{id} follow them.
  • The smart search, as Stonks Data's: ask of GET /events, a sentence (300 characters at most, 422 beyond) turned into the parameters of the list by Stonks Data's model, the parameters of the request winning but the place (a place the sentence names replaces the area of the request), meta.ask (AskMeta: params, filters for the chips, price_max, dropped). What the copy doesn't support (capacity_min, capacity_max, festival, the sets inside entities) is left out of params and its chips, and named in dropped. A sentence is kept for the day and the language: asked again, it costs nothing; otherwise it spends one of the account's sentences_per_day (429 daily_limit beyond). 503 ask_unavailable (a new code of Error) when it can't be turned into parameters now. Exclusive with similar_to and unlike (400).
  • The reads of the feed, in Stonks Data's shapes (its paths, its Event, EventSummary, Occurrence and AgendaEntry, its errors, pages and cursors, its 301 of a merged id, its public ids), routes of the feed (403 no_plan without one), the plan unlimited reading the whole copy: GET /events (the filters, orders and pages of Stonks Data's listEvents the copy supports, 400 for another parameter; the sync by updated_since and after, an event entering the feed coming as changed), GET /events/{id} (whole; 301 for a merged id with the query kept, 404 when gone or outside the feed), GET /agenda and GET /agenda/{id} (the sessions with their event), GET /entities and GET /entities/{id} (the venues, organizers and artists of the events of the feed: Stonks Data's ServiceEntity without its popularity), GET /removals (what left since a time: everyone's removals and the events which left the feed, left_filters and left_limit; 410 resync_required past 180 days) and GET /tags (the tags reached by the events of the feed, or its entities with linked_to=entities, the default being events unlike Stonks Data's). Differences with Stonks Data: updated_at is the time of the copy's last change, other_dates is always empty, no popularity is served (a filter and an order only), no include.
  • The words, as Stonks Data's of 11-24: q of GET /events, GET /agenda, GET /entities and GET /events/density keeps the records having every word searched, whatever the case, the accents and the punctuation: the start of a word in the names (an event's name, venue and town; an entity's name, town, postcode and country) and the names of the tags given to the record, the whole word or its plural by a final s or x in the texts (summaries, descriptions, an entity's address); the short words (de, la, the...) left out when other words are given. lang (fr, the default, or en) picks the names of the tags.
  • The search by meaning: about of GET /events (500 characters at most) keeps the events related to a description (a cosine similarity of their descriptions from 0.25) or having it in their name, each with similarity and relevance (2 for the name, plus the similarity), the most relevant first unless order_by is given. When its meaning can't be had from Stonks Data, the events having one of its words at least come instead, in the order without about, and meta.about_fallback is true. Exclusive with updated_since, similar_to and unlike (400).
  • GET /events/density: the located events of the feed counted by tile of a web map at a zoom (3 to 12), the largest tiles first, each with its mean position, count, started (the ones under way before from) and the counts per kind (kinds, started_kinds), as Stonks Data's getEventDensity; the filters of the events, without sets, page, order nor the searches by meaning (400).
  • GET /users/me: limits.events_per_month, the places of events of the feed in each calendar month by its plan (0 without a plan, null for unlimited).
  • The tokens of a customer's account: Authorization: Bearer sak_… on every route but the spec and its changelog (401 credential_required without one, invalid_credential for an unknown or revoked one, 403 account_banned).
  • GET /users/me: the customer of the token (its agenda, plan, options, whether it has a feed and why not), its limits, today's usage and the token used.
  • The events one may like, as Stonks Data's of 11-24 and 11-25: similar_to of GET /events takes up to 40 public ids of events and 100 of entities (the entities mean their events: one of their artists, hosts or their venue; the events are compared by their descriptions, from the threshold of about), unlike (with similar_to only) leaves out the events of its entities and the ones closer to one of its events than to every event of similar_to. The events given are left out; an unknown id is ignored, an old id of a merged record finds the one kept. The default order: a liked artist's events first, the soonest first; then the events given take turns (each brings its closest candidate, then its second closest..., in their order in similar_to); last, the events of an entity given without a closest event. Each event carries similarity and relevance (absent when not embedded or without an event given) and liked_entity (null when none). order_by=relevance requires about or similar_to, the events without a relevance last. Every other filter applies, the sets with exclude too (groups[1][venue_id]=…&groups[1][exclude]=true). Exclusive with updated_since (400); more than 40 events or 100 entities, an id which isn't a public id, or unlike alone: 422 invalid.
  • The limits: the requests a minute by plan (the RateLimit-* headers; 429 too_many_requests with Retry-After), the caps a day (429 daily_limit until midnight in Paris), 403 no_plan on the routes of the feed for an account without one.

Chargement de la référence…