# Primat

> Oberoende tjänst som varje dag samlar in matpriser från svenska dagligvarukedjors butiker (ICA, Coop, Willys, Hemköp, Lidl, City Gross): ordinarie-, kampanj- och medlemspriser, EAN-kopplade, med daglig historik sedan december 2025. Faktalager (pris, produkt, EAN, butik) via API.

## API and data (English, agent-first)
- [API docs](https://primat.nu/api): endpoints, schemas, tiers, error codes.
- [OpenAPI contract](https://primat.nu/api/v3/openapi.json): the machine-readable v3 spec.
- [Try it with NO key](https://primat.nu/api/v3/demo/products?q=banan): real data, 25 results/call, 250 requests/day. Scope to stores: &stores=chain:store_id,… (max 15).
- [Find stores near a place](https://primat.nu/api/v3/demo/stores/resolve?place=Uppsala): the site's own place-to-stores resolver — returns the chain:store_id pairs stores= takes.
- Instant API key, no email round-trip: POST https://primat.nu/api/v3/signup {"email": "you@example.com"}
- [Priser och API-nyckel](https://primat.nu/data): gratisnivå och betalnivåer.

## URL grammar (HTML; every page below is open, no login)
- https://primat.nu/vara/{ean} — product page: cheapest carrying stores, nationally or near a chosen place.
- https://primat.nu/vara/{ean}/{chain}-{store_id} — the product-at-ONE-store page: current price, ordinarie/jämförpris, price-changed + store-checked dates, Product+Offer JSON-LD. Chains: ica, coop, willys, hemkop, lidl, citygross.
- https://primat.nu/butik/ — the store register (every store, linked); https://primat.nu/butik/{chain}/{store_id}/ — one store's prices and offers.
- https://primat.nu/butik/{chain}/{store_id}/sortiment — the store's whole catalog as category links; …/sortiment/{class} lists its products, 100 per page, each row linking the product-at-store page.
- https://primat.nu/?q={query} — site search. Open for the user-triggered fetchers Claude-User and ChatGPT-User (see robots.txt); bulk crawlers: use the API instead.

## Recipe: "what does <product> cost at <store>?"
Every step is an ordinary link, so this works even for fetchers that only follow URLs they have already seen:
1. [https://primat.nu/butik/](https://primat.nu/butik/) — pick the chain, find the store by name or town.
2. On the store page, follow "… varor i sortimentslistan" to the catalog.
3. Pick the category, then the product — every row links its product-at-store page with the current price, jämförpris and freshness dates.
4. That page also lists the product's price at NEARBY stores ("På butiker i närheten") — a two-store question in one town usually ends right there.
Shortcuts when available to you: the site search https://primat.nu/?q={query}, or two keyless API calls (demo/stores/resolve then demo/products with stores=).

## Index och analyser
- [Momskollen](https://primat.nu/moms): momssänkningens genomslag per kedja, dagligen.
- [Krympflation](https://primat.nu/krympflation): verifierade förpackningskrympningar.
- [Alla butiker](https://primat.nu/butik/): priser och erbjudanden per butik.
