Search for Food
GET /search
Searches for food items based on a query string with pagination support and optional type filtering. Nutrient units are fixed per nutrient. See unit reference: https://newtrition-data.com/data-reference/units/
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Search query for food name
Filter by food type (all, generic, branded). Default: all
Number of items per page (1-100, default: 10)
Number of items to skip (default: 0)
Page number (alternative to offset)
Header Parameters
Section titled “Header Parameters ”Context ID of the end user (used for analytics and weighting). If not provided, defaults to client ID.
Responses
Section titled “ Responses ”Paginated list of matching food items
object
object
object
object
object
Example
225.5Example
ProteineThe output units are fixed per nutrient/output! See: https://newtrition-data.com/data-reference/units/
Example
gobject
Example
225.5Example
ProteineThe output units are fixed per nutrient/output! See: https://newtrition-data.com/data-reference/units/
Example
gobject
Example
225.5Example
ProteineThe output units are fixed per nutrient/output! See: https://newtrition-data.com/data-reference/units/
Example
gobject
Example
225.5Example
ProteineThe output units are fixed per nutrient/output! See: https://newtrition-data.com/data-reference/units/
Example
gobject
Example
225.5Example
ProteineThe output units are fixed per nutrient/output! See: https://newtrition-data.com/data-reference/units/
Example
gobject
Example
225.5Example
ProteineThe output units are fixed per nutrient/output! See: https://newtrition-data.com/data-reference/units/
Example
gobject
Example
225.5Example
ProteineThe output units are fixed per nutrient/output! See: https://newtrition-data.com/data-reference/units/
Example
gobject
Example
120Example
StückExample
pieceExample
gobject
object
Headers
Section titled “Headers ”Maximum requests per minute
Requests remaining in current window
Unix timestamp when rate limit resets
Requests used in current window
Missing query parameter, invalid pagination parameters, or invalid type filter
object
object
Unauthorized
object
object
Rate limit exceeded
object
object
Headers
Section titled “Headers ”Maximum requests per minute
Requests remaining in current window
Unix timestamp when rate limit resets
Requests used in current window
Seconds to wait before retrying
Internal Server Error