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}andGET /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_atbeing Stonks Data's last change for them), 301 for a merged id, 404 when Stonks Data doesn't serve them either, 503unavailablewhen it can't be asked now.GET /removalsno longer lists such records asout_of_scopewhen they age out of the copy: they didn't change, keep them (out_of_scopestays 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 (typeoccurrence,reasondeleted), as the sessions deleted with their event; its event comes as changed.- A sentence of
askanswered 503ask_unavailableis given back tosentences_per_day.POST /links: 503unavailablewhen Stonks Data can't be asked gives the link of the day back (nothing kept); a 503unavailablewhen Stonks Data didn't answer in time now says the link may still be processed (GET /linksshows it once answered), one still unanswered after a day being deleted. - The search by meaning (
aboutofGET /eventsand of the exports) has a daily cap: a text whose meaning isn't kept yet (kept 30 days) spends one oflimits.about_per_dayofGET /users/me(500 a day, 20,000 for Pas Loin; 429daily_limitbeyond), given back when its meaning can't be had;usage.aboutcounts them. event_idsof 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_urlof an event andlogo_urlof 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,GETandPOST /events/export, routes of the feed): the events of the filters oflistEvents(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,limitwithpick(popularity, the default, orstart), the printed orderorder_by(start,kind,city,popularity);popularity_minandrecurring=falseas inlistEvents. 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;localefroren; 422invalidfor a template which doesn't parse or an unknown template. The file is namedstonks-agenda-<date>.<format>. - The templates of the .docx exports:
GET /export/templates(the example inlocale, the fields, as Stonks Data'sExportTemplateunderdata.events, and the account's own underdata.templates),PUT /export/templates/{name}(text, 10 at most, 422 witherror.fieldsfor a text which doesn't parse),DELETE /export/templates/{name}(204, 404 for an unknown name). - The links:
POST /linksproposes 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): itsoutcomeread(read already),queued(to be read shortly),known(an entity or a lead has it,entitywith itsidnull when the copy doesn't serve it) orrefused,via,event_ids,entity,seed_id. 422 for an address which isn't a web address, 429daily_limitpast 50 links a day (none for Pas Loin), 503unavailablewhen Stonks Data can't be asked now (nothing kept: try again).GET /links(the latest first, by page) andGET /links/{id}(404 for another customer's). - The corrections:
POST /events/{id}/correctionscorrects an event of the feed (its fields, its sessions byoccurrences, its place in three cases,place.problemvenue_addressfor the address of its venue,wrong_venuefor another venue byvenue_idor as text,addressfor the place of an event without a venue; or anotealone), one suggestion to Stonks Data, the answer waiting a few seconds for its (statuspending,waiting,accepted,refusedorfailedwith itserror); a report of the account's public withauthor(kindpublic, itsrole) when its option is on (403forbiddenotherwise); areport_idsent again answers its first correction (200); the caps a daycorrections_per_dayandpublic_reports_per_day(429daily_limit).GET /corrections(bystatus,event_id,report_id,updated_since, by page) andGET /corrections/{id}follow them. - The smart search, as Stonks Data's:
askofGET /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,filtersfor the chips,price_max,dropped). What the copy doesn't support (capacity_min,capacity_max,festival, the sets insideentities) is left out ofparamsand its chips, and named indropped. A sentence is kept for the day and the language: asked again, it costs nothing; otherwise it spends one of the account'ssentences_per_day(429daily_limitbeyond). 503ask_unavailable(a new code ofError) when it can't be turned into parameters now. Exclusive withsimilar_toandunlike(400). - The reads of the feed, in Stonks Data's shapes (its paths, its
Event,EventSummary,OccurrenceandAgendaEntry, its errors, pages and cursors, its 301 of a merged id, its public ids), routes of the feed (403no_planwithout one), the planunlimitedreading the whole copy:GET /events(the filters, orders and pages of Stonks Data'slistEventsthe copy supports, 400 for another parameter; the sync byupdated_sinceandafter, 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 /agendaandGET /agenda/{id}(the sessions with their event),GET /entitiesandGET /entities/{id}(the venues, organizers and artists of the events of the feed: Stonks Data'sServiceEntitywithout its popularity),GET /removals(what left since a time: everyone's removals and the events which left the feed,left_filtersandleft_limit; 410resync_requiredpast 180 days) andGET /tags(the tags reached by the events of the feed, or its entities withlinked_to=entities, the default beingeventsunlike Stonks Data's). Differences with Stonks Data:updated_atis the time of the copy's last change,other_datesis always empty, no popularity is served (a filter and an order only), noinclude. - The words, as Stonks Data's of 11-24:
qofGET /events,GET /agenda,GET /entitiesandGET /events/densitykeeps 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, oren) picks the names of the tags. - The search by meaning:
aboutofGET /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 withsimilarityandrelevance(2 for the name, plus the similarity), the most relevant first unlessorder_byis 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 withoutabout, andmeta.about_fallbackis true. Exclusive withupdated_since,similar_toandunlike(400). GET /events/density: the located events of the feed counted by tile of a web map at azoom(3 to 12), the largest tiles first, each with its mean position,count,started(the ones under way beforefrom) and the counts per kind (kinds,started_kinds), as Stonks Data'sgetEventDensity; 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 forunlimited).- The tokens of a customer's account:
Authorization: Bearer sak_…on every route but the spec and its changelog (401credential_requiredwithout one,invalid_credentialfor an unknown or revoked one, 403account_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_toofGET /eventstakes 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 ofabout),unlike(withsimilar_toonly) leaves out the events of its entities and the ones closer to one of its events than to every event ofsimilar_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 insimilar_to); last, the events of an entity given without a closest event. Each event carriessimilarityandrelevance(absent when not embedded or without an event given) andliked_entity(null when none).order_by=relevancerequiresaboutorsimilar_to, the events without a relevance last. Every other filter applies, the sets withexcludetoo (groups[1][venue_id]=…&groups[1][exclude]=true). Exclusive withupdated_since(400); more than 40 events or 100 entities, an id which isn't a public id, orunlikealone: 422invalid. - The limits: the requests a minute by plan (the
RateLimit-*headers; 429too_many_requestswithRetry-After), the caps a day (429daily_limituntil midnight in Paris), 403no_planon the routes of the feed for an account without one.
Chargement de la référence…
La référence n'a pas pu s'afficher ici : lisez la spécification téléchargée ci-dessus.