The fields parameter filters the API response, which only contains the resource parts identified in the part parameter value, so that the response only includes a specific set of fields. The fields parameter lets you remove nested properties from an API response and thereby further reduce your bandwidth usage. (The part parameter cannot be used to filter nested properties from a response.)
The following rules explain the supported syntax for the fields parameter value, which is loosely based on XPath syntax:
- Use a comma-separated list
(fields=a,b)
to select multiple fields. - Use an asterisk
(fields=*)
as a wildcard to identify all fields. - Use parentheses
(fields=a(b,c))
to specify a group of nested properties that will be included in the API response. - Use a forward slash
(fields=a/b)
to identify a nested property. - In practice, these rules often allow several different fields parameter values to retrieve the same API response. For example, if you want to ret