Skip to content
AF
Google Health API reference

Moods: the Google Health API moods data type

Read from Google’s documentation on 2026-10-17 · discovery document revision 20261014 · Google’s data-types page last updated 2026-10-06

Moods (moods) is a Sample data type in the Google Health API. Google's data-types table lists create, update and batchDelete for it under the .mindfulness.writeonly scope. The table marks it with neither webhook nor true-zeros support. Google's Fitbit migration table names no Fitbit Web API predecessor for it.

Moods at a glance

From the Moods row of Google’s data-types table, joined to the discovery document’s DataPoint schema.

Display name
Moods
dataType (in endpoint URLs)
moods
filter parameter
moodsGoogle: “The identifier separated by underscores (for example, active_minutes) used as the value for the dataType filter parameter in daily rollup and rollup requests.”
Record type
Sample — Google: “Represents instantaneous measurements.”
Storage resolution
not stated in Google’s table
Webhook support
Not marked in Google’s table
True zeros support
Not marked in Google’s table
Channel
v4
DataPoint field
DataPoint.moods → MoodsIts description: “Optional. Data for points in the moods sample data type collection.”
Compatible devices
0 in Google’s table

Operations and request paths

The operations Google’s table lists for moods, each matched to its users.dataTypes.dataPoints method in the discovery document. The path is the documented path template (the method’s flatPath on https://health.googleapis.com/) with {dataTypesId} filled in as moods. Google on {user}: “The {user} can be either the alias me or the authenticated user's numeric Health User ID (retrieved via GetIdentity).”

Table listsMethodDocumented path template
createcreatePOST https://health.googleapis.com/v4/users/{usersId}/dataTypes/moods/dataPoints
updatepatchvia Google’s endpoint-mapping table (flagged below)PATCH https://health.googleapis.com/v4/users/{usersId}/dataTypes/moods/dataPoints/{dataPointsId}
batchDeletebatchDeletePOST https://health.googleapis.com/v4/users/{usersId}/dataTypes/moods/dataPoints:batchDelete

Every method, and how many of the data types list it: the methods overview.

Scopes

The scopes Google’s table lists for moods, as full URLs, with the consent text Google’s Scopes page gives each. Every Google Health API scope.

ScopeAccessGoogle’s permission text
https://www.googleapis.com/auth/googlehealth.mindfulness.writeonlywriteAdd mindfulness data to Google Health, and edit or delete the data it adds.

Fields of Moods

The schema the discovery document gives DataPoint.moods, required fields first. Types are as the discovery document states them; the label is the word Google’s description opens with. The schemas its fields refer to follow, one level deep.

Moods — Google: “Moods record.”

FieldTypeGoogle’s description
moodsRequiredarray<string>Required. The moods logged.
  • MOOD_UNSPECIFIED — Unspecified mood.
  • AMAZED — Amazed.
  • AMUSED — Amused.
  • ANGRY — Angry.
  • ANNOYED — Annoyed.
  • ANXIOUS — Anxious.
  • HAPPY — Happy.
  • CONTENT — Content.
  • SAD — Sad.
  • WORRIED — Worried.
  • FRUSTRATED — Frustrated.
  • EXCITED — Excited.
  • CALM — Calm.
  • STRESSED — Stressed.
  • ASHAMED — Ashamed.
  • BRAVE — Brave.
  • CONFIDENT — Confident.
  • DISAPPOINTED — Disappointed.
  • DISCOURAGED — Discouraged.
  • DISGUSTED — Disgusted.
  • DRAINED — Drained.
  • EMBARRASSED — Embarrassed.
  • GRATEFUL — Grateful.
  • GUILTY — Guilty.
  • HOPEFUL — Hopeful.
  • HOPELESS — Hopeless.
  • INDIFFERENT — Indifferent.
  • IRRITATED — Irritated.
  • JEALOUS — Jealous.
  • JOYFUL — Joyful.
  • LONELY — Lonely.
  • OVERWHELMED — Overwhelmed.
  • PASSIONATE — Passionate.
  • PEACEFUL — Peaceful.
  • PROUD — Proud.
  • RELIEVED — Relieved.
  • SATISFIED — Satisfied.
  • SCARED — Scared.
  • SURPRISED — Surprised.
  • ENERGIZED — Energized.
  • FATIGUED — Fatigued.
  • VERY_CALM — Very calm.
  • VERY_STRESSED — Very stressed.
  • NEUTRAL — Neutral.
  • AFRAID — Afraid.
  • HURTING — Hurting.
  • BORED — Bored.
  • BITTER — Bitter.
  • ENVIOUS — Envious.
  • CONFUSED — Confused.
  • CURIOUS — Curious.
  • AWESTRUCK — Awestruck.
  • INSPIRED — Inspired.
  • LONGING — Longing.
  • ACCOMPLISHED — Accomplished.
  • LOVING — Loving.
  • COMPASSIONATE — Compassionate.
  • DEPRESSED — Depressed.
  • GOOD — Good.
  • LOW_ENERGY — Low energy.
  • OBSESSIVE_THOUGHTS — Obsessive thoughts.
  • PANIC — Panic.
  • PLAYFUL — Playful.
  • PLEASED — Pleased.
  • SENSITIVE — Sensitive.
  • SLEEPY — Sleepy.
  • SWINGS — Mood swings.
  • UNHAPPY — Unhappy.
  • VERY_SELF_CRITICAL — Very self-critical.
sampleTimeRequiredObservationSampleTimeRequired. The time at which moods were measured.
valencesOptionalarray<string>Optional. The valences.
  • VALENCE_UNSPECIFIED — Unspecified valence.
  • UNPLEASANT — Unpleasant.
  • BASELINE — Baseline.
  • PLEASANT — Pleasant.

ObservationSampleTime

Google: “Represents a sample time of an observed data point.”

FieldTypeGoogle’s description
physicalTimeRequiredstring/google-datetimeRequired. The time of the observation.
utcOffsetRequiredstring/google-durationRequired. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
civilTimeOutput onlyCivilDateTimeOutput only. The civil time in the timezone the subject is in at the time of the observation.

Fitbit Web API predecessor

Google’s Fitbit Web API → Google Health API data-type table has no row for moods, so it names no Fitbit Web API predecessor.

Google’s full Fitbit Web API mapping tables · the migration playbook

Where Google’s pages disagree

Published as found, with the texts that disagree; nothing here is corrected by us.

  • Operation name differs

    The table lists "update" for moods, but the discovery document has no method named update; Google's endpoint-mapping table points updates at patch.

    • Google's Fitbit migration API specifications: “CREATE & UPDATE Logs”
    • Google's Fitbit migration API specifications: “patch method”
    • the v4 discovery document: “Updates a single identifiable data point. If a data point with the specified name is not found, the request will fail.”

Google’s documentation

Related on this site

Questions

Which OAuth scopes does the Google Health API moods data type need?

Google's data-types table (read 2026-10-17) lists https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly for moods. The Scopes page's consent text: .mindfulness.writeonly, "Add mindfulness data to Google Health, and edit or delete the data it adds."

Can apps write moods data to the Google Health API?

Yes. Google's data-types table lists create, update and batchDelete for moods. create is POST https://health.googleapis.com/v4/users/{usersId}/dataTypes/moods/dataPoints. The table's "update" has no method of that name in the discovery document; Google's endpoint-mapping table points updates at patch, which is PATCH https://health.googleapis.com/v4/users/{usersId}/dataTypes/moods/dataPoints/{dataPointsId}. batchDelete is POST https://health.googleapis.com/v4/users/{usersId}/dataTypes/moods/dataPoints:batchDelete. Writes need https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly.

How do you aggregate moods data with the Google Health API?

Not with rollUp or dailyRollUp, going by Google's data-types table: it lists only create, update and batchDelete for moods. Read the data points with list (or reconcile, where listed) and compute any summary yourself.

Does the Google Health API send webhooks for moods?

Not according to Google's data-types table, which does not mark moods with webhook support, and the webhooks guide does not list it.

Sources checked

Google’s text is quoted for identification; each guide page’s footer reads: “Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License.”. Generated from Google’s pages by scripts/fetch-google-health-api.mjs, not typed by hand; Google’s documentation remains the authority.

← All Google Health API data types