{"openapi":"3.0.3","info":{"title":"Perfume data API","version":"1.0.0","description":"Server-to-server API over our perfume dataset. Priced per record: list 1 unit, basic 2, full 4; one unit is $0.0025. Authentication is Authorization: Bearer <key>. There is no CORS - do not call this from a browser, where the key would be public. Ids are opaque and permanent: a record that disappears from the upstream catalogue keeps its id and its last known content with source_status \"absent\", so a 404 on a record only ever means \"no record with this id has been issued\". A repeated id in a batch is charged again. An account reads up to 50,000 records per UTC day; the limit lifts at 00:00 UTC."},"servers":[{"url":"https://parfumdb.net"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retry_after":{"type":"integer","description":"Seconds; also sent as Retry-After."},"required_units":{"type":"integer","description":"payment_required: units the request needs."},"available_units":{"type":"integer","description":"payment_required: units on the balance."},"daily_remaining":{"type":"integer","description":"daily_cap: records left today."},"samples":{"type":"array","items":{"type":"string"},"description":"Test keys: the ids a test key may read."}}}}},"Fragrance":{"type":"object","properties":{"id":{"type":"string","description":"Our stable opaque id of the perfume.","pattern":"^p_[0-9a-hjkmnp-tv-z]{10}$","x-level":"list"},"brand":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"description":"Brand of the perfume.","x-level":"list"},"name":{"type":"string","description":"Perfume name (concentration is usually not part of the name).","x-level":"list"},"year":{"type":"integer","nullable":true,"description":"Launch year.","x-level":"list"},"gender":{"type":"string","enum":["female","male","unisex"],"description":"Normalised gender: female | male | unisex.","x-level":"list"},"gender_raw":{"type":"string","description":"Source gender label.","x-level":"list"},"concentration":{"type":"string","nullable":true,"description":"Concentration label as published (711 free-text variants, multilingual).","x-level":"list"},"rating":{"type":"number","nullable":true,"description":"Average community rating on rating_scale.","x-level":"list"},"rating_scale":{"type":"integer","description":"Maximum of the rating scale.","x-level":"list"},"votes":{"type":"integer","nullable":true,"description":"Number of rating votes (null in the 36 rows where the source shows an average without votes).","x-level":"list"},"images":{"type":"object","properties":{"thumbnail":{"type":"string","format":"uri","nullable":true,"description":"200 px thumbnail of the bottle photo on our CDN.","x-level":"list"},"photo":{"type":"string","format":"uri","nullable":true,"description":"Bottle photo, webp, long side ≤ 2400 px (cropped from the source's padded frame where needed).","x-level":"basic"}},"x-level":"list","required":["thumbnail","photo"]},"collection":{"type":"string","nullable":true,"description":"Collection / line name.","x-level":"basic"},"reviews_count":{"type":"integer","nullable":true,"description":"Number of community reviews; null when the source cell is empty (1.0% of rows), 0 when it says zero.","x-level":"basic"},"bottle_design":{"type":"string","nullable":true,"description":"Bottle designer.","x-level":"basic"},"gtin13":{"type":"string","nullable":true,"description":"GTIN-13 / EAN barcode.","pattern":"^[0-9]{13}$","x-level":"basic"},"top_rank":{"type":"object","properties":{"category":{"type":"string"},"rank":{"type":"integer"}},"required":["category","rank"],"nullable":true,"description":"Position in the source's top-500 chart: category men | women | unisex, rank 1–500.","x-level":"basic"},"accords":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"votes":{"type":"integer","nullable":true}},"required":["id","name","votes"]},"description":"Main accords by votes, descending. Accord ids (pa_) group and join accords across records; v1 has no accord endpoint and no accord lines in the index.","x-level":"basic"},"perfumers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"array","items":{"type":"string"}}},"required":["id","name","role"]},"description":"Perfumers credited; role = roles from the perfumers dictionary, normalised by data's p_perfumer_roles_map.csv (raw → canonical + organisation); [] when unknown.","x-level":"basic"},"notes":{"type":"object","nullable":true,"properties":{"layout":{"type":"array","items":{"type":"string","enum":["top","middle","base","linear"]},"description":"The layers present, in order."},"top":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"images":{"type":"object","properties":{"icon":{"type":"string","format":"uri","nullable":true}},"required":["icon"]}},"required":["id","name","images"],"description":"A note appears at most once in a layer."},"nullable":true},"middle":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"images":{"type":"object","properties":{"icon":{"type":"string","format":"uri","nullable":true}},"required":["icon"]}},"required":["id","name","images"],"description":"A note appears at most once in a layer."},"nullable":true},"base":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"images":{"type":"object","properties":{"icon":{"type":"string","format":"uri","nullable":true}},"required":["icon"]}},"required":["id","name","images"],"description":"A note appears at most once in a layer."},"nullable":true},"linear":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"images":{"type":"object","properties":{"icon":{"type":"string","format":"uri","nullable":true}},"required":["icon"]}},"required":["id","name","images"],"description":"A note appears at most once in a layer."},"nullable":true}},"required":["layout","top","middle","base","linear"],"description":"Note pyramid exactly as published. layout = the levels present; each level is an array of {id, name, images}; absent levels are null. Two layouts occur: [top, middle, base] (rarely a subset) and [linear] — one flat list. images.icon is the note icon on our CDN - the same URL as images.icon of GET /notes/{id} - or null when the note has no icon.","x-level":"full"},"longevity":{"type":"array","items":{"type":"integer"},"minItems":11,"maxItems":11,"nullable":true,"description":"Vote histogram on a 0-10 scale: 11 integers, the element at position i is the number of votes for score i (position 0 = score 0, position 10 = score 10). null when the source has no histogram for this record.","x-level":"full"},"sillage":{"type":"array","items":{"type":"integer"},"minItems":11,"maxItems":11,"nullable":true,"description":"Vote histogram on a 0-10 scale: 11 integers, the element at position i is the number of votes for score i (position 0 = score 0, position 10 = score 10). null when the source has no histogram for this record.","x-level":"full"},"scent":{"type":"array","items":{"type":"integer"},"minItems":11,"maxItems":11,"nullable":true,"description":"Vote histogram on a 0-10 scale: 11 integers, the element at position i is the number of votes for score i (position 0 = score 0, position 10 = score 10). null when the source has no histogram for this record.","x-level":"full"},"bottle":{"type":"array","items":{"type":"integer"},"minItems":11,"maxItems":11,"nullable":true,"description":"Vote histogram on a 0-10 scale: 11 integers, the element at position i is the number of votes for score i (position 0 = score 0, position 10 = score 10). null when the source has no histogram for this record.","x-level":"full"},"value":{"type":"array","items":{"type":"integer"},"minItems":11,"maxItems":11,"nullable":true,"description":"Vote histogram on a 0-10 scale: 11 integers, the element at position i is the number of votes for score i (position 0 = score 0, position 10 = score 10). null when the source has no histogram for this record.","x-level":"full"},"style":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"votes":{"type":"integer","nullable":true}},"required":["label","votes"]},"description":"Style votes, labels Feminine | Masculine | Modern | Classic, descending; zero-vote labels are absent.","x-level":"full"},"season":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"votes":{"type":"integer","nullable":true}},"required":["label","votes"]},"description":"Season votes, labels Spring | Summer | Fall | Winter.","x-level":"full"},"occasion":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"votes":{"type":"integer","nullable":true}},"required":["label","votes"]},"description":"Occasion votes, labels Daily | Leisure | Business | Evening | Night Out | Sport.","x-level":"full"},"tags":{"type":"array","items":{"type":"string"},"description":"Community tags (free text, up to 12).","x-level":"full"},"similar":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"pct":{"type":"number"}},"required":["id","pct"]},"description":"Similar perfumes with similarity percent, descending (up to 30).","x-level":"full"},"layer":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"pct":{"type":"number"}},"required":["id","pct"]},"description":"Perfumes suggested for layering, with percent.","x-level":"full"},"concentrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"concentration":{"type":"string","nullable":true}},"required":["id","concentration"]},"description":"The same line in other concentrations.","x-level":"full"},"source_status":{"type":"string","enum":["present","absent","merged"],"description":"present | absent | merged (R-18: records never disappear).","x-level":"list"},"last_seen":{"type":"string","description":"Date (YYYY-MM-DD) of the latest release that contained the record.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","x-level":"list"},"merged_into":{"type":"string","nullable":true,"description":"Our id of the record this one was merged into, else null.","x-level":"list"},"change_status":{"type":"string","description":"new | unchanged | updated relative to the previous release (new = first appearance; updated = something in the record changed).","enum":["new","unchanged","updated"],"x-level":"list"},"updated_in":{"type":"string","description":"Date (YYYY-MM-DD) of the latest release in which anything in the record changed, or in which it first appeared. Release dates sort as strings; the release tag is in GET /release and X-Data-Release.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","x-level":"list"},"update_kind":{"type":"string","enum":["content","stats"],"description":"What changed in a record marked updated. content: the record's own data, such as its name, brand, year, composition, perfumers or images; fetch it again. stats: only figures that move with the community and the catalogue, such as ratings, votes and vote breakdowns, the accord profile or counters; the record's content is the same. Present only when change_status is updated; a record without update_kind has not been updated.","x-level":"list"}},"required":["id","brand","name","year","gender","gender_raw","concentration","rating","rating_scale","votes","images","source_status","last_seen","merged_into","change_status","updated_in"],"description":"Every property carries x-level, the lowest level that returns it. A request at a level returns every field of that level and below - always present, null when empty - plus the service fields; fields of higher levels are absent."},"Account":{"type":"object","required":["active","balance_units","paid_units","grants","period","daily","index","release","release_date"],"properties":{"active":{"type":"boolean"},"balance_units":{"type":"integer","description":"paid_units plus unexpired grant units."},"paid_units":{"type":"integer"},"grants":{"type":"array","description":"Unexpired grant batches, the soonest to expire first.","items":{"type":"object","required":["units_left","expires_at","kind"],"properties":{"units_left":{"type":"integer"},"expires_at":{"type":"string","format":"date-time","nullable":true,"description":"When the unused units of this batch expire; null for a batch without an expiry (units that come with a plan). Batches are spent soonest-expiring first."},"kind":{"type":"string","enum":["plan","starter","other"],"description":"plan: units that come with a plan, no expiry; starter: units that come with a data file purchase; other: any other grant."}}}},"period":{"type":"object","nullable":true,"required":["started_at","spent_units","minimum_units","shortfall_units"],"properties":{"started_at":{"type":"string","format":"date-time"},"spent_units":{"type":"integer"},"minimum_units":{"type":"integer"},"shortfall_units":{"type":"integer"}}},"daily":{"type":"object","required":["records_used","records_cap","records_remaining"],"description":"Records per UTC day.","properties":{"records_used":{"type":"integer"},"records_cap":{"type":"integer"},"records_remaining":{"type":"integer"}}},"index":{"type":"object","required":["downloads_today","downloads_cap","remaining"],"description":"Index downloads per UTC day.","properties":{"downloads_today":{"type":"integer"},"downloads_cap":{"type":"integer"},"remaining":{"type":"integer"}}},"release":{"type":"string"},"release_date":{"type":"string","nullable":true}}},"Release":{"type":"object","required":["release","release_date","fragrances","source_status_counts","changed_counts","reference_counts","reference_changed_counts","index"],"properties":{"release":{"type":"string"},"release_date":{"type":"string","nullable":true},"fragrances":{"type":"integer","description":"Records in the catalogue, every source_status."},"source_status_counts":{"type":"object","additionalProperties":{"type":"integer"},"description":"Fragrances by source_status."},"changed_counts":{"type":"object","additionalProperties":{"type":"integer"},"description":"Fragrances by change_status."},"reference_counts":{"type":"object","additionalProperties":{"type":"integer"},"description":"brands, perfumers, notes: records."},"reference_changed_counts":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"integer"}},"description":"{brands|perfumers|notes: {change_status: count}}"},"index":{"type":"object","nullable":true,"description":"The published index of THIS release; null while it is still being built, when /api/v1/index answers 503 index_rebuilding.","required":["etag","bytes","records","reference_lines"],"properties":{"etag":{"type":"string"},"bytes":{"type":"integer"},"records":{"type":"integer","description":"Fragrance lines."},"reference_lines":{"type":"object","nullable":true,"additionalProperties":{"type":"integer"},"description":"Index lines per reference kind: {brand, perfumer, note}."}}}}},"Brand":{"type":"object","properties":{"id":{"type":"string","description":"Our opaque brand id.","x-level":"basic"},"name":{"type":"string","description":"Brand name (for 3 277 rows the source only has the slug-derived name).","x-level":"basic"},"country":{"type":"string","nullable":true,"description":"Country (126 values, e.g. 'USA').","x-level":"basic"},"since_year":{"type":"integer","nullable":true,"description":"Founding year.","x-level":"basic"},"perfume_count":{"type":"integer","description":"Number of perfume records in this release that belong to the brand (the brand_id lines of the release index).","x-level":"basic"},"perfumers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"array","items":{"type":"string"}}},"required":["id","name","role"]},"description":"Perfumers associated with the brand. Each perfumer carries role as in the perfumer record ([] when unknown).","x-level":"full"},"popular_perfumes":{"type":"array","items":{"type":"string"},"description":"Popular perfumes of the brand (up to 21).","x-level":"full"},"new_perfumes":{"type":"array","items":{"type":"string"},"description":"Newest perfumes of the brand (up to 9).","x-level":"full"},"source_status":{"type":"string","enum":["present","absent","merged"],"description":"present = in the current release; absent = no longer in the upstream catalogue, last known content kept; merged = folded into merged_into.","x-level":"basic"},"last_seen":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date (YYYY-MM-DD) of the latest release that contained the record.","x-level":"basic"},"merged_into":{"type":"string","nullable":true,"description":"The id this record was merged into, or null.","x-level":"basic"},"change_status":{"type":"string","description":"new | unchanged | updated against the previous release (updated = something in the record changed).","x-level":"basic","enum":["new","unchanged","updated"]},"updated_in":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date (YYYY-MM-DD) of the latest release in which anything in the record changed, or in which it first appeared. Release dates sort as strings; the release tag is in GET /release and X-Data-Release.","x-level":"basic"},"update_kind":{"type":"string","enum":["content","stats"],"description":"What changed in a record marked updated. content: the record's own data, such as its name, brand, year, composition, perfumers or images; fetch it again. stats: only figures that move with the community and the catalogue, such as ratings, votes and vote breakdowns, the accord profile or counters; the record's content is the same. Present only when change_status is updated; a record without update_kind has not been updated.","x-level":"basic"}},"required":["id","name","country","since_year","perfume_count","source_status","last_seen","merged_into","change_status","updated_in"],"description":"Every property carries x-level, the lowest level that returns it. A request at a level returns every field of that level and below - always present, null when empty - plus the service fields; fields of higher levels are absent."},"Perfumer":{"type":"object","properties":{"id":{"type":"string","description":"Our opaque perfumer id (pp_ namespace; the source id is never exposed).","x-level":"basic"},"name":{"type":"string","description":"Perfumer name.","x-level":"basic"},"role":{"type":"array","items":{"type":"string"},"description":"Roles, canonical English (Perfume maker, Brand owner, Creative director, …) via data's p_perfumer_roles_map.csv; organisation from '[…]' kept in a separate element field when the table lands.","x-level":"basic"},"country":{"type":"string","nullable":true,"description":"Country.","x-level":"basic"},"perfume_count":{"type":"integer","description":"Number of perfume records in this release that credit the perfumer.","x-level":"basic"},"avg_rating":{"type":"number","nullable":true,"description":"Average rating of the perfumer's perfumes (0.5–10.0).","x-level":"basic"},"total_ratings":{"type":"integer","nullable":true,"description":"Total rating votes across the perfumer's perfumes.","x-level":"basic"},"source_status":{"type":"string","enum":["present","absent","merged"],"description":"present = in the current release; absent = no longer in the upstream catalogue, last known content kept; merged = folded into merged_into.","x-level":"basic"},"last_seen":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date (YYYY-MM-DD) of the latest release that contained the record.","x-level":"basic"},"merged_into":{"type":"string","nullable":true,"description":"The id this record was merged into, or null.","x-level":"basic"},"change_status":{"type":"string","description":"new | unchanged | updated against the previous release (updated = something in the record changed).","x-level":"basic","enum":["new","unchanged","updated"]},"updated_in":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date (YYYY-MM-DD) of the latest release in which anything in the record changed, or in which it first appeared. Release dates sort as strings; the release tag is in GET /release and X-Data-Release.","x-level":"basic"},"update_kind":{"type":"string","enum":["content","stats"],"description":"What changed in a record marked updated. content: the record's own data, such as its name, brand, year, composition, perfumers or images; fetch it again. stats: only figures that move with the community and the catalogue, such as ratings, votes and vote breakdowns, the accord profile or counters; the record's content is the same. Present only when change_status is updated; a record without update_kind has not been updated.","x-level":"basic"}},"required":["id","name","role","country","perfume_count","avg_rating","total_ratings","source_status","last_seen","merged_into","change_status","updated_in"],"description":"Every property carries x-level, the lowest level that returns it. A request at a level returns every field of that level and below - always present, null when empty - plus the service fields; fields of higher levels are absent."},"Note":{"type":"object","properties":{"id":{"type":"string","description":"Our opaque note id (pn_ namespace).","x-level":"basic"},"name":{"type":"string","description":"Note name.","x-level":"basic"},"aliases":{"type":"array","items":{"type":"string"},"description":"Alternative names of the note (names as used in pyramids; some alias ids carry no name).","x-level":"basic"},"primary_name":{"type":"string","nullable":true,"description":"Primary name of the note as published (v1.11 column; null in v1.10).","x-level":"basic"},"common_position":{"type":"string","nullable":true,"description":"Typical position: 'throughout the entire fragrance' | heart | top | base.","x-level":"basic"},"categories":{"type":"array","items":{"type":"string"},"description":"Note category names.","x-level":"basic"},"first_year":{"type":"integer","nullable":true,"description":"First year the note appears in a perfume.","x-level":"basic"},"last_year":{"type":"integer","nullable":true,"description":"Last year the note appears in a perfume.","x-level":"basic"},"perfume_count":{"type":"integer","description":"Number of perfume records in this release with this note in their pyramid (a perfume counts once, whatever the level).","x-level":"basic"},"images":{"type":"object","properties":{"icon":{"type":"string","format":"uri","nullable":true,"description":"Note image on our CDN (86% have one).","x-level":"basic"}},"x-level":"basic","required":["icon"]},"source_status":{"type":"string","enum":["present","absent","merged"],"description":"present = in the current release; absent = no longer in the upstream catalogue, last known content kept; merged = folded into merged_into.","x-level":"basic"},"last_seen":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date (YYYY-MM-DD) of the latest release that contained the record.","x-level":"basic"},"merged_into":{"type":"string","nullable":true,"description":"The id this record was merged into, or null.","x-level":"basic"},"change_status":{"type":"string","description":"new | unchanged | updated against the previous release (updated = something in the record changed).","x-level":"basic","enum":["new","unchanged","updated"]},"updated_in":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date (YYYY-MM-DD) of the latest release in which anything in the record changed, or in which it first appeared. Release dates sort as strings; the release tag is in GET /release and X-Data-Release.","x-level":"basic"},"update_kind":{"type":"string","enum":["content","stats"],"description":"What changed in a record marked updated. content: the record's own data, such as its name, brand, year, composition, perfumers or images; fetch it again. stats: only figures that move with the community and the catalogue, such as ratings, votes and vote breakdowns, the accord profile or counters; the record's content is the same. Present only when change_status is updated; a record without update_kind has not been updated.","x-level":"basic"}},"required":["id","name","aliases","primary_name","common_position","categories","first_year","last_year","perfume_count","images","source_status","last_seen","merged_into","change_status","updated_in"],"description":"Every property carries x-level, the lowest level that returns it. A request at a level returns every field of that level and below - always present, null when empty - plus the service fields; fields of higher levels are absent."}}},"security":[{"bearerAuth":[]}],"paths":{"/api/v1/fragrances/{id}":{"get":{"summary":"One perfume record","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"level","in":"query","required":false,"schema":{"type":"string","enum":["list","basic","full"],"default":"list"},"description":"Units per record: list 1, basic 2, full 4. A full request for a record whose full-only fields are all empty (null, empty, or vote counts that are all zero) is charged at the basic price; the document returned is still the full one. When the source later adds such data (for example the first note), the same id is charged at the full price from that release on, and the index shows it as updated."},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"},"description":"The ETag of an earlier answer to the same request. If the answer is unchanged: 304, no body, nothing charged, not counted against the daily limit. The ETag covers the whole answer, service fields included. A HEAD request is free as well."}],"responses":{"200":{"description":"The record","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}},"ETag":{"description":"Send it back in If-None-Match.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fragrance"}}}},"304":{"description":"Not modified - free, outside the daily limit","headers":{"ETag":{"schema":{"type":"string"}},"X-Charged-Units":{"description":"Always 0.","schema":{"type":"integer"}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/fragrances/batch":{"post":{"summary":"Up to 100 perfume records","description":"Items come back in request order and length. A repeated id is returned and charged again (a repeated record is a repeated sale) - deduplicate before sending. An id that was never issued comes back as null, is listed in problems and costs nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"level":{"type":"string","enum":["list","basic","full"],"default":"list"}}}}}},"responses":{"200":{"description":"Items in request order","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["items","problems","charged_units"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Fragrance","nullable":true}},"problems":{"type":"array","items":{"type":"object","required":["id","code"],"properties":{"id":{"type":"string"},"code":{"type":"string","enum":["not_found","unavailable_for_legal_reasons"]}}}},"charged_units":{"type":"integer"}}}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"413":{"description":"payload_too_large - the body is over 256 KB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type - send JSON as UTF-8","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/account":{"get":{"summary":"Balance, period and limits (free)","responses":{"200":{"description":"Account state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/release":{"get":{"summary":"Current release and what changed in it (free)","responses":{"200":{"description":"Release info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/index":{"get":{"summary":"Catalogue index for the current release (free, 5 per UTC day)","description":"A gzipped JSONL file: one JSON object per line. Every line has a \"kind\": \"fragrance\" lines carry id, brand_id, brand, name, year, gender, concentration, source_status, merged_into, change_status and updated_in; \"brand\", \"perfumer\" and \"note\" lines carry only id, source_status, merged_into, change_status and updated_in - the change feed of those records (no names). Any line whose change_status is updated also carries update_kind. Skip lines whose kind you do not know: new kinds may appear. change_status is new, unchanged or updated; updated_in is a release date (YYYY-MM-DD). The update_kind says what changed: content (fetch it again) or stats (only figures that move with the community and the catalogue); it is present only on updated lines. Lists that are refreshed with every release (related items; a brand's popular and new items) do not count as a change. Send If-None-Match with the previous ETag: a 304 is free and does not count against the daily limit.","parameters":[{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"gzipped JSONL, one object per line","headers":{"ETag":{"schema":{"type":"string"}},"X-Index-Remaining":{"description":"Index downloads left today (UTC).","schema":{"type":"integer"}}},"content":{"application/gzip":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified - free, outside the limit"},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the index needs a positive balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/brands/{id}":{"get":{"summary":"One brand record","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"level","in":"query","schema":{"type":"string","enum":["basic","full"],"default":"basic"},"description":"basic 2 units, full 4; a full request for a record with no localisations is charged as basic."},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"},"description":"The ETag of an earlier answer to the same request. If the answer is unchanged: 304, no body, nothing charged, not counted against the daily limit. The ETag covers the whole answer, service fields included. A HEAD request is free as well."}],"responses":{"200":{"description":"The record","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}},"ETag":{"description":"Send it back in If-None-Match.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}},"304":{"description":"Not modified - free, outside the daily limit","headers":{"ETag":{"schema":{"type":"string"}},"X-Charged-Units":{"description":"Always 0.","schema":{"type":"integer"}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/brands/batch":{"post":{"summary":"Up to 100 brand records","description":"Items come back in request order and length. A repeated id is returned and charged again (a repeated record is a repeated sale) - deduplicate before sending. An id that was never issued comes back as null, is listed in problems and costs nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"level":{"type":"string","enum":["basic","full"],"default":"basic"}}}}}},"responses":{"200":{"description":"Items in request order","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["items","problems","charged_units"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Brand","nullable":true}},"problems":{"type":"array","items":{"type":"object","required":["id","code"],"properties":{"id":{"type":"string"},"code":{"type":"string","enum":["not_found","unavailable_for_legal_reasons"]}}}},"charged_units":{"type":"integer"}}}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"413":{"description":"payload_too_large - the body is over 256 KB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type - send JSON as UTF-8","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/perfumers/{id}":{"get":{"summary":"One perfumer record","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"level","in":"query","schema":{"type":"string","enum":["basic","full"],"default":"basic"},"description":"basic 2 units, full 4; a full request for a record with no localisations is charged as basic."},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"},"description":"The ETag of an earlier answer to the same request. If the answer is unchanged: 304, no body, nothing charged, not counted against the daily limit. The ETag covers the whole answer, service fields included. A HEAD request is free as well."}],"responses":{"200":{"description":"The record","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}},"ETag":{"description":"Send it back in If-None-Match.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Perfumer"}}}},"304":{"description":"Not modified - free, outside the daily limit","headers":{"ETag":{"schema":{"type":"string"}},"X-Charged-Units":{"description":"Always 0.","schema":{"type":"integer"}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/perfumers/batch":{"post":{"summary":"Up to 100 perfumer records","description":"Items come back in request order and length. A repeated id is returned and charged again (a repeated record is a repeated sale) - deduplicate before sending. An id that was never issued comes back as null, is listed in problems and costs nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"level":{"type":"string","enum":["basic","full"],"default":"basic"}}}}}},"responses":{"200":{"description":"Items in request order","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["items","problems","charged_units"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Perfumer","nullable":true}},"problems":{"type":"array","items":{"type":"object","required":["id","code"],"properties":{"id":{"type":"string"},"code":{"type":"string","enum":["not_found","unavailable_for_legal_reasons"]}}}},"charged_units":{"type":"integer"}}}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"413":{"description":"payload_too_large - the body is over 256 KB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type - send JSON as UTF-8","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/notes/{id}":{"get":{"summary":"One note record","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"level","in":"query","schema":{"type":"string","enum":["basic","full"],"default":"basic"},"description":"basic 2 units, full 4; a full request for a record with no localisations is charged as basic."},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"},"description":"The ETag of an earlier answer to the same request. If the answer is unchanged: 304, no body, nothing charged, not counted against the daily limit. The ETag covers the whole answer, service fields included. A HEAD request is free as well."}],"responses":{"200":{"description":"The record","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}},"ETag":{"description":"Send it back in If-None-Match.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"304":{"description":"Not modified - free, outside the daily limit","headers":{"ETag":{"schema":{"type":"string"}},"X-Charged-Units":{"description":"Always 0.","schema":{"type":"integer"}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}},"/api/v1/notes/batch":{"post":{"summary":"Up to 100 note records","description":"Items come back in request order and length. A repeated id is returned and charged again (a repeated record is a repeated sale) - deduplicate before sending. An id that was never issued comes back as null, is listed in problems and costs nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"level":{"type":"string","enum":["basic","full"],"default":"basic"}}}}}},"responses":{"200":{"description":"Items in request order","headers":{"X-Charged-Units":{"description":"Units charged by this request (0 for a test key).","schema":{"type":"integer"}},"X-Balance-Units":{"description":"Units left on the balance after this request.","schema":{"type":"integer"}},"X-Daily-Remaining":{"description":"Records the account may still read today (UTC).","schema":{"type":"integer"}},"X-Data-Release":{"description":"The data release that answered.","schema":{"type":"string"}},"X-Request-Id":{"description":"Quote it when writing to us.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["items","problems","charged_units"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Note","nullable":true}},"problems":{"type":"array","items":{"type":"object","required":["id","code"],"properties":{"id":{"type":"string"},"code":{"type":"string","enum":["not_found","unavailable_for_legal_reasons"]}}}},"charged_units":{"type":"integer"}}}}}},"400":{"description":"bad_request - nothing is charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized - one answer for every reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"payment_required - the whole request is refused, nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"wrong_site - this key was not issued for this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found - no such endpoint, or no record with this id has ever been issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed - see the Allow header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"413":{"description":"payload_too_large - the body is over 256 KB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type - send JSON as UTF-8","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited | daily_cap | index_cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait. For daily_cap and index_cap: until 00:00 UTC, when the caps lift.","schema":{"type":"integer"}}}},"451":{"description":"unavailable_for_legal_reasons - the record is withheld; its id is never reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled | maintenance | index_rebuilding (the index endpoint, while the published index still belongs to the previous release)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}}}}}}}