1. Pack Artifacts

Historical Research Pack Artifact API

Download one file of a pack. Only files listed in the manifest are served, and each is checked against its recorded byte length and SHA-256 before it is sent. The response carries the hash as its ETag, so you can verify the bytes you received. Background: research packs.

HISTORICAL RESEARCH PACKS
Host
historical
Plan
Alpha+
at
Optional
Format
File download

Endpoint

GET/v1/research/packs/{packId}/artifacts/{name}
Host: historical.flashalpha.com Auth required (X-Api-Key) Rate Limited: Yes Plan: Alpha+

Parameters

NameInTypeRequiredDefaultDescription
packIdpathstringrequired-Pack ID from the catalog
namepathstringrequired-An artifact name from the manifest, e.g. trades.csv
atquerydatetime-ET wall-clock instant; the file is served only if its pack was available then. Invalid values return 400 invalid_at.

Request

curl -H "X-Api-Key: YOUR_API_KEY" -o trades.csv \
  "https://historical.flashalpha.com/v1/research/packs/income-spy-qqq-2024-2025-v1-db139753fe8b/artifacts/trades.csv"
import hashlib, requests

BASE = "https://historical.flashalpha.com/v1/research/packs"
PACK = "income-spy-qqq-2024-2025-v1-db139753fe8b"
H = {"X-Api-Key": "YOUR_API_KEY"}

resp = requests.get(f"{BASE}/{PACK}", headers=H)
resp.raise_for_status()
manifest = resp.json()
for a in manifest["artifacts"]:
    resp = requests.get(f"{BASE}/{PACK}/artifacts/{a['name']}", headers=H)
    resp.raise_for_status()
    body = resp.content
    assert len(body) == a["bytes"] and hashlib.sha256(body).hexdigest() == a["sha256"], a["name"]
    open(a["name"], "wb").write(body)
print("all artifacts verified")
const resp = await fetch(
  "https://historical.flashalpha.com/v1/research/packs/income-spy-qqq-2024-2025-v1-db139753fe8b/artifacts/trades.csv",
  { headers: { "X-Api-Key": "YOUR_API_KEY" } }
);
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const csv = await resp.text();
console.log(resp.headers.get("ETag"), csv.split("\n")[0]);

Try it live

Replays archived data as of the at time you pick (ET wall-clock). Needs an Alpha plan API key.

GET

Response

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Disposition: attachment; filename=trades.csv
ETag: "6874a236528f..."   (the file's SHA-256)
X-Content-Type-Options: nosniff

<file bytes>

Sending request…

See this endpoint on archived data

Send this exact request and the real response shows up here, right next to the example.

Responses can exceed 180 KB.

Response Fields

FieldTypeDescription
BodybytesThe file exactly as recorded in the manifest
Content-Typestring (header)The artifact's media_type
Content-Dispositionstring (header)Always an attachment named after the artifact, including report.html
ETagstring (header)The artifact's SHA-256, lowercase hex

Errors

Status Error When
400invalid_research_artifactPack ID or file name contains characters outside the allowed set.
400invalid_atat is not yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss (ET).
400-A query value has the wrong type, or a required value is missing. The body is an RFC 7807 problem-details object with errors.<param>.
401-Missing or invalid X-Api-Key. The body is empty; check the status code before parsing JSON.
403tier_restrictedYour plan is below Alpha. The body includes current_plan and required_plan.
404research_artifact_not_foundThe name is not in the manifest, or the pack was not available at at.
429Quota exceededDaily quota used up. Retry-After gives the seconds until the reset at 00:00 UTC. Rejected requests (including 403) count toward the quota.
503research_artifact_integrity_failedThe stored file no longer matches its manifest hash; nothing is served.

Files in the First Pack

ArtifactMedia typeBytes
accounting-audit.jsonapplication/json27,854
benchmark-curves.csvtext/csv88,053
cash-ledger.csvtext/csv326,096
equity-2025.pngimage/png375,221
equity-2025.svgimage/svg+xml164,650
equity-curves.csvtext/csv2,550,883
independent-audit.jsonapplication/json240
independent-checks.csvtext/csv1,663,683
input-hashes.jsonapplication/json892
methodology.jsonapplication/json1,721
report.htmltext/html533,931
reproduce.zipapplication/zip2,178,022
reproduction.jsonapplication/json437
summary.jsonapplication/json145,034
trades.csvtext/csv190,862

Start with report.html (a standalone report; download the related files with it for local browsing) or summary.json. reproduce.zip holds the frozen captured inputs, model code and commands to regenerate the results offline without a database or credentials.