Scans
Scans are audit/debug records created when NutritionSignals processes an image (or other analyzers, as they ship). Use this endpoint to retrieve a scan event for traceability, support, and debugging.
A scan record typically includes timestamps, processing metadata, image references (like image_object_path),
and the structured nutrition result (when available).
Endpoint
GET /v1/scans/{scan_id}
Requests are made to:
Base URL
https://api.nutritionsignals.com
Authentication
All requests require an API key sent as a Bearer token in the Authorization header.
Authorization header
Authorization: Bearer YOUR_API_KEY
Don’t have a key yet? Read Authentication.
Path parameters
scan_id(string) — the scan identifier returned by NutritionSignals when a scan is created
Try it
Paste your API key, enter a scan id, click Run, and you’ll see the raw JSON response.
This runs in the browser. Your key (and last-used scan id) are stored only in your browser (localStorage) so you don’t need to retype them.
They’re sent only to the Base URL you enter below when you click Run.
- If you get
404, the scan doesn’t exist (or you’re querying the wrong project/environment). - If you get
401, your API key is missing/invalid.
{}Examples
Use any standard HTTP client. Here are copy/paste examples:
curl "https://api.nutritionsignals.com/v1/scans/SCAN_ID" -H "Authorization: Bearer $NUTRITIONSIGNALS_API_KEY"
Response
Example response (fields may vary by scan type and availability):
Example response
{
"scan_id": "scan_01HZZZZZZZZZZZZZZZZZZZZZZZ",
"status": "completed",
"created_at": "2026-01-06T15:00:00.000Z",
"updated_at": "2026-01-06T15:00:03.500Z",
"image_object_path": "scans/scan_01HZZZZZZZZ.webp",
"image_url": "https://api.nutritionsignals.com/v1/images/scans/scan_01HZZZZZZZZ.webp",
"image_hash": "sha256:…",
"result": {
"confidence": 0.86,
"nutrition": {
"calories": 420,
"protein_g": 28,
"carbs_g": 35,
"fat_g": 18
}
},
"meta": {
"source": "food_image_analysis",
"duration_ms": 3400
}
}
Common fields
scan_id— identifier for this scanstatus—queued|processing|completed|failedimage_object_path— internal storage object path (if an image was uploaded)image_url— a clickable URL served via your domain (if available)result— structured output (varies by scan type)meta— processing/debug metadata (best-effort)
Errors
401— Missing/invalid API key404— Scan not found429— Rate limited5xx— Server error
API endpoints
- Name
GET /v1/scans/:scan_id- Description
Retrieve scan/audit details for debugging and support.