# history_for

Shows how shortages for an ATC code moved over time. Czechia comes from SUKL's dated notices, reaching back to 2008; other countries publish the present only, so their series is Neap's own daily snapshots and starts on the first snapshot. Call it to see whether a shortage is new, recurring or easing. Defaults to the three years up to to, or up to the data version, by month; pass from to go further back. For today's records, call shortages_by_atc. Czech figures are products with an open interruption notice, and a notice nobody closed still counts as open.

## Input

- `atc` (required): ATC code at any level, for example N, J01, J01C or J01CA04. Matches by prefix, so N covers every nervous system record. To get a code from a medicine name, call find_medicine first.
- `from`: string
- `to`: string
- `by`: Default month.
- `as_of`: Read the data version on or before this date instead of the latest. A pinned read reports source health as it was then.

## Example

```
curl -X POST https://neap.bulkhead.solutions/v1/tools/history_for -H 'content-type: application/json' -d '{"atc":"N05AH04","from":"2026-05-01"}'
```

```json
{
  "atc": "N05AH04",
  "czechia": {
    "basis": "Reconstructed from SUKL's dated notices, per product. An interruption stays open until a resumption, termination or launch notice closes it, so a notice nobody closed counts as active.",
    "by": "month",
    "intervals": 241,
    "firstInterruption": "2009-11-01",
    "points": [
      {
        "period": "2026-05",
        "active": 20,
        "started": 3,
        "ended": 2
      },
      {
        "period": "2026-06",
        "active": 18,
        "started": 3,
        "ended": 5
      },
      "... 5 more"
    ]
  },
  "accumulated": {
    "basis": "Records in shortage or supply tension under a single ATC code, counted in Neap's own daily snapshots; each point is the last snapshot of its period. Announced shortages and records with only candidate...",
    "by": "month",
    "firstSnapshot": "2026-11-07",
    "byCountry": {
      "ES": [
        {
          "period": "2026-11",
          "date": "2026-11-09",
          "active": 32
        }
      ],
      "EU": [
        {
          "period": "2026-11",
          "date": "2026-11-09",
          "active": 1
        }
      ],
      "FR": [
        {
          "period": "2026-11",
          "date": "2026-11-09",
          "active": 1
        }
      ],
      "IT": [
        {
          "period": "2026-11",
          "date": "2026-11-09",
          "active": 54
        }
      ]
    }
  },
  "dataVersion": "2026-11-09",
  "sources": "5 entries, see the full response",
  "attribution": "5 entries, see the full response",
  "warnings": [],
  "complete": true,
  "scope": "...",
  "notAdvice": "Supply facts from public registers. Not clinical advice, not substitution advice."
}
```

---

Automated and unreviewed. Neap reads official sources automatically and no person checks each answer. Data can be incomplete, late or wrong. Always verify against the official source linked with every answer before you act. Not legal, tax or customs advice. Not medical advice. Ask a pharmacist or doctor. A supply status is not a clinical recommendation.

Data version 9 November 2026.
