# SpritzLog > SpritzLog is a fragrance wearing journal: people log each spritz, track a > wardrobe, and browse a public catalogue of perfume houses and their perfumes. ## Catalogue - [All perfumes](https://spritzlog.com/perfumes): every canonical perfume, paginated with plain links (`/perfumes?page=2`). - [All brands](https://spritzlog.com/brands): every canonical perfume house, paginated the same way (`/brands?page=2`). - [Perfume page](https://spritzlog.com/perfumes/guerlain+shalimar-edp): the brand slug and the perfume slug joined by `+`. - [Brand page](https://spritzlog.com/brands/guerlain): the brand's complete catalogue plus its most popular perfumes (`/brands/guerlain?cataloguePage=2`). - [Sitemap](https://spritzlog.com/sitemap.xml): every canonical brand, perfume, public profile, public wardrobe, and public index route. Pages are server-rendered and their links exist in the raw HTML, so a crawler that does not execute JavaScript reaches the whole catalogue. ## API ### Perfume search `GET https://spritzlog.com/api/perfumes/search?q=oud&limit=5` | Parameter | Rules | | --- | --- | | `q` | Required. Trimmed, 1–200 characters. | | `limit` | Optional. Integer 1–20. Defaults to 9. | | `excludeId` | Optional perfume UUID to leave out of the results. | A successful response is JSON: ```json { "results": [{ "id": "", "name": "Oud", "brandName": "Example", "canonicalUrl": "https://spritzlog.com/perfumes/example+oud", "concentration": "edp", "year": 2019 }] } ``` `concentration` and `year` are nullable. `canonicalUrl` is the absolute canonical perfume detail URL: cite it directly instead of building one. Do not guess a URL from a name or a slug pattern, because several variants (different concentrations or release years) share one name and each has its own URL. The field is only absent from older cached payloads. An invalid query answers `400` with `{ "error": "Invalid search query" }`; a database or parser failure answers `500` with `{ "error": "Search failed" }`. The endpoint is public and answers same-origin requests from the site. It makes no cross-origin browser CORS promise, so a different origin must call it server-side. ### Supabase REST catalogue The same public catalogue is readable through PostgREST at `https://cjdagwodlqkblzfhzatx.supabase.co/rest/v1` with the publishable key in the `apikey` (and `Authorization: Bearer`) header. That key is public: it is the one the site ships in its client bundle. Only anonymous rows are visible to it; no secret or service key is published or needed here. Useful views, with narrow projections: - `perfume_with_brand` — canonical perfumes with their brand: `?select=perfume_id,perfume_name,perfume_slug,concentration,year,brand_name,brand_slug&perfume_merged_into_id=is.null&brand_merged_into_id=is.null&order=perfume_name,perfume_id` - `brand_with_creator` — canonical brands (the base `brands` table is not readable anonymously): `?select=brand_id,name,slug&merged_into_id=is.null&order=name,brand_id` - `perfume_search_document` — name/brand/year/concentration rows for search: `?select=id,name,year,concentration,brand_name,perfume_slug,brand_slug&order=name,id&limit=100` Both entity views keep aliases and merged records in their row set. A consumer that lists canonical entities has to apply the two `is null` merge filters shown above; a consumer that resolves one alias still needs the unfiltered row. Paginate with the `Range` header or `limit`/`offset` and an explicit `order`, because unordered pages may repeat rows. End every pageable `order` in a unique key (`id` or the entity id), so same-name variants keep one stable position instead of a tie that can repeat or skip a row across pages. The site itself serves the catalogue at the links in [Catalogue](#catalogue); the REST surface is for programmatic access, not for navigable HTML.