Foodguide Public API
Base path:
https://foodguide.org.uk/api
Returns JSON:
Array(
'result' => 'success|error'
'data' => Array [on success]
'message' => String [on error]
)
Categories
| Call | Query | Info |
|---|---|---|
| {BASE_PATH}/categories | (empty) | Returns a list of categories with their ID |
List Questions/Answers
| Call | Query | Info |
|---|---|---|
| {BASE_PATH}/list | id | The relative ID of type |
| type | Default: categories Valid options: company |
|
| search | A search term of phrase to filter results with the 'type' |
Get Answer
| Call | Query | Info |
|---|---|---|
| {BASE_PATH}/answer | id | The questions ID |
| JSON RETURN | ||
| title | Question title | |
| question | The question (html) | |
| answer | The answer (html) | |
| hits | Number of views | |
| updated | Last update (Y-m-d) | |
| category | Category name | |
| company | Company name |