Food Brands: Get all v2

Description

This is a utility method, returning the list of food brands.

Why are we introducing this version?

This version contains an update to the JSON output structure.



Localization (Premier Only):

Two additional optional parameters named region and language are available to premier clients. More information can be found in the Localization guide.

Parameters

Required

Name Type Description
method String MUST be "food_brands.get.v2"

Optional

Name Type Description
format String The desired response format. Valid reponse formats are "xml" or "json" (default value is "xml").
starts_with String Food brands that begin with the first letter is returned. The "*" will return all food brands beginning with a numeric character. If this is not specified then the most popular food brands at the time is returned. E.G.: "Kraft" will return all food brands beginning "k"
brand_type String The type of brand to return. Valid brand types are "manufacturer", "restaurant" and "supermarket" (default value is "manufacturer")

Example Return XML

<?xml version="1.0" encoding="utf-8" ?>
<food_brands xmlns="http://platform.fatsecret.com/api/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://platform.fatsecret.com/api/1.0/ http://platform.fatsecret.com/api/1.0/fatsecret.xsd">
    <food_brand>Kraft</food_brand>
</food_brands>

Example Return JSON

{ "food_brands": { "food_brand": [ "Kraft" ] }}

Error Code

Code Description
13 Invalid token: "<detail>"
108 Invalid Type: "<detail>"
FatSecret Sites
For Developers

For Professionals

For Everyone

FatSecret Platform API

Developers

Support
API

About FatSecret

© 2023 FatSecret. All rights reserved.