Calling food.find_id_for_barcode in postman - food_id always returns zero(0)

190 views
Skip to first unread message

shashi shiva

unread,
Apr 27, 2021, 7:22:25 AM4/27/21
to FatSecret Platform API
When I tried calling food.find_id_for_barcode in postman, I am getting food_id as always zero(0). Response code is 200, so there is no authentication problem.

Response Body:
{
    "food_id": {
        "value": "0"
    }
}

URL -
https://platform.fatsecret.com/rest/server.api?method=food.find_id_for_barcode&barcode=8906009078762&format=json

I tried many different barcodes as well. 
ex. 1. Unibic Daily digestive - 8906009078762
2. Saffola oats - 8901088050562
3. Dabur Honey - 8901207025389
Parameters 
method:food.find_id_for_barcode
barcode:8906009078762
format:json

Headers -
Content-Type: application/json
Authorization:Bearer <token>

Referred link -

Reply all
Reply to author
Forward
0 new messages