List Nutrition Records
curl --request GET \
  --url https://app-api.spikeapi.com/v3/nutrition_records \
  --header 'Authorization: Bearer <token>'
[
  {
    "dish_description": "beef, ground, lean, cooked with broccoli, raw and rice, brown, cooked",
    "dish_description_translated": "Rindfleisch, Hackfleisch, mager, gekocht mit Brokkoli, roh und Reis, braun, gekocht",
    "dish_name": "beef and broccoli stir-fry",
    "dish_name_translated": "Rindfleisch und Brokkoli Pfanne",
    "failure_reason": "Unable to identify food items",
    "ingredients": [
      {
        "name": "beef, ground, lean, cooked",
        "name_translated": "Rindfleisch, Hackfleisch, mager, gekocht",
        "nutritional_fields": {
          "calcium_mg": 1000,
          "carbohydrate_g": 250,
          "cholesterol_mg": 300,
          "energy_kcal": 800,
          "fat_monounsaturated_g": 20,
          "fat_polyunsaturated_g": 15,
          "fat_saturated_g": 20,
          "fat_total_g": 65,
          "fat_trans_g": 0.5,
          "fiber_total_dietary_g": 25,
          "folate_mcg": 400,
          "iron_mg": 18,
          "magnesium_mg": 400,
          "niacin_mg": 16,
          "phosphorus_mg": 700,
          "potassium_mg": 3500,
          "protein_g": 50,
          "riboflavin_mg": 1.3,
          "sodium_mg": 2300,
          "sugars_total_g": 50,
          "thiamin_mg": 1.2,
          "vitamin_a_rae_mcg": 900,
          "vitamin_b12_mcg": 2.4,
          "vitamin_b6_mg": 1.7,
          "vitamin_c_mg": 90,
          "vitamin_d_mcg": 20,
          "vitamin_e_mg": 15,
          "vitamin_k_mcg": 120,
          "zinc_mg": 11
        },
        "serving_size": 120,
        "unit": "g"
      }
    ],
    "modified_at": "2024-01-15T10:30:00.000Z",
    "nutri_score": "B",
    "record_id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
    "status": "completed",
    "uploaded_at": "2024-01-15T10:30:00.000Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

from_timestamp
string<date-time>
required

Start time of the query range in UTC

Examples:

"2006-01-02T15:04:05"

"2006-01-02T15:04:05Z"

to_timestamp
string<date-time>
required

End time of the query range in UTC

Examples:

"2006-01-02T15:04:05"

"2006-01-02T15:04:05Z"

Response

object[] | null

OK

modified_at
string<date-time>
required

Update timestamp

Examples:

"2024-01-15T10:30:00.000Z"

record_id
string<uuid>
required

Report record ID

Examples:

"6ba7b810-9dad-11d1-80b4-00c04fd430c8"

status
enum<string>
required

Processing status

Available options:
pending,
processing,
completed,
failed
Examples:

"completed"

uploaded_at
string<date-time>
required

Upload timestamp

Examples:

"2024-01-15T10:30:00.000Z"

dish_description
string

Detected dish description

Examples:

"beef, ground, lean, cooked with broccoli, raw and rice, brown, cooked"

dish_description_translated
string

Dish description translated to target language

Examples:

"Rindfleisch, Hackfleisch, mager, gekocht mit Brokkoli, roh und Reis, braun, gekocht"

dish_name
string

Detected dish name

Examples:

"beef and broccoli stir-fry"

dish_name_translated
string

Dish name translated to target language

Examples:

"Rindfleisch und Brokkoli Pfanne"

failure_reason
string

Reason for processing failure

Examples:

"Unable to identify food items"

ingredients
object[] | null

List of detected ingredients with nutritional information

nutri_score
string

Nutri-Score grade (A-E)

Examples:

"B"