Show sanctions list cache freshness (free)
list_cache_statusCheck whether OFAC, EU, UK and UN sanctions lists are cached, fresh, stale, or missing before screening, and see if the next screen_names run will reuse or re-download them.
Instructions
WHAT: Show, per list (OFAC_SDN, OFAC_CONS, EU, UK, UN), whether a parsed copy is cached in your Apify account, when it was downloaded from the official source, the source publication date, entry count, and whether the next screen_names run will reuse it or re-download it. WHEN TO USE: before a large or time-critical screen_names batch (to know whether lists load in ~2-5 s or 10-40 s), or to state in a report how current the screened lists were. WHEN NOT TO USE: to screen names (screen_names, paid) or to list covered sources and their URLs (list_sources, free, no token). Does not refresh the cache; the next screen_names run does that. BEHAVIOR: GET requests to the Apify API only (your user, the key-value store "fairquery-sanctions-list-cache", one small record per list); never writes. Typically <1 s; up to ~3 s when the Actor has not yet written per-list meta records and the cached lists themselves (~1.6 MB gzip in total) are read instead. COST: free; needs your APIFY_TOKEN (the cache lives in your account) but starts no Actor run and charges no event. RETURNS: one status object; lists[] in the order above plus fresh / stale / missing summaries and a next_run sentence; Errors: APIFY_TOKEN_MISSING, APIFY_TOKEN_INVALID, APIFY_API_FAILED (retryable). PARAMETERS: maxAgeHours sets the freshness window used for fresh (default 6, the window screen_names runs use; the Actor never accepts more than 12). A list is fresh only if it was downloaded at most maxAgeHours ago and is non-empty; stale lists are never used for screening, they are re-downloaded. store_found=false means no screen_names run has cached anything in this account yet, so all five lists are missing. read_from says whether a small meta record or the cached list itself was read. EXAMPLE: {} -> {"store_found":true,"lists":[{"list":"OFAC_SDN","cached":true,"fresh":false,"fetched_at":"2026-10-17T19:15:36Z","age_hours":21.27,"published_at":"2026-10-15T16:34:34Z","entries":19457,...},...],"stale":["OFAC_SDN","OFAC_CONS","EU","UK","UN"],"next_run":"OFAC_SDN, ... would be re-downloaded ..."}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxAgeHours | No | Optional number 0-12, default 6 (the freshness window screen_names uses). 0 reports every cached list as stale. Example: 6 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | Yes | ||
| lists | Yes | Per list: list, cached, fresh, fetched_at, age_hours, published_at, source_last_modified, entries, bytes, read_from | |
| stale | Yes | ||
| missing | Yes | ||
| next_run | Yes | What the next screen_names run will do with each list | |
| store_id | Yes | ||
| store_found | Yes | false = no cache in this Apify account yet | |
| cache_max_age_hours | Yes |