Trustwell · Example Payload

Trustwell Genesis Foods Query Example

Food IndustryFood SafetyNutritionSupply ChainFood LabelingTraceabilityComplianceFood Technology

Trustwell Genesis Foods Query Example is an example object payload from Trustwell, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.trustwell.com/genesis",
    "headers": {
      "X-API-KEY": "YOUR_TRUSTWELL_API_KEY",
      "Content-Type": "application/json",
      "Accept": "application/json"
    },
    "body": {
      "query": "query GetFood($id: ID!) { foods(id: $id) { id name nutrients { name amount unit } allergens { name present } labels { id format imageUrl } } }",
      "variables": {
        "id": "food_123abc"
      }
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "data": {
        "foods": {
          "id": "food_123abc",
          "name": "Whole Wheat Sandwich Bread",
          "nutrients": [
            {"name": "Calories", "amount": 120, "unit": "kcal"},
            {"name": "Total Fat", "amount": 2.0, "unit": "g"},
            {"name": "Sodium", "amount": 190, "unit": "mg"},
            {"name": "Total Carbohydrate", "amount": 23, "unit": "g"},
            {"name": "Protein", "amount": 4, "unit": "g"}
          ],
          "allergens": [
            {"name": "Wheat", "present": true},
            {"name": "Soy", "present": true},
            {"name": "Milk", "present": false}
          ],
          "labels": [
            {
              "id": "label_456def",
              "format": "US_NUTRITION_FACTS",
              "imageUrl": "https://api.trustwell.com/genesis/labels/label_456def/image.png"
            }
          ]
        }
      }
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/trustwell-genesis-foods-query-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.