FatSecret Platform API Documentation
Welcome to the FatSecret Platform REST API
We provide a REST-like API that allows developers to integrate FatSecret Platform features into their applications. To get started:
- Register for an account.
- Generate an application Consumer Key and associated Consumer Secret.
All Requests to the FatSecret Platform REST API should be directed to "https://platform.fatsecret.com/rest/server.api".
Requests must include a method parameter, distinguishing the different types of calls available. For example, a correctly authenticated request to the food.get.v3 API method would appear as follows:
POST https://platform.fatsecret.com/rest/server.api
Content-Type: application/json
Header: Authorization: Bearer {Access Token}
Parameters: method=food.get.v2&food_id=33691&format=json
POST https://platform.fatsecret.com/rest/server.api?
food_id=33691&
method=food.get.v3&
oauth_consumer_key=9a1a6fd1fff5433f9dd77daa4587bf5d&
oauth_nonce=1234&oauth_signature=sAyYTJiIxOGkvFpBcH8L%2BlFQRCQ%3D&
oauth_signature_method=HMAC-SHA1&
oauth_timestamp=1245126631&
oauth_version=1.0
Please take some time to read our authentication guide. OAuth 2.0 and OAuth 1.0 are supported.