{
  "x402Version": 2,
  "id": 29233,
  "slug": "29233",
  "resource": "https://api.agentstools.dev/nutrition/search",
  "description": "Search foods by name in USDA FoodData Central (public domain). Returns ranked matches with fdc_id, description, brand, GTIN and key macros per 100g.",
  "type": "http",
  "serviceName": "nutrition-search",
  "resourceType": "Web Intelligence",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "limit": 5,
            "q": "cheddar cheese"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "attribution": "Data from USDA FoodData Central (public domain, U.S. Department of Agriculture)",
            "count": 1,
            "matches": [
              {
                "brand": "GRAFTON VILLAGE",
                "data_type": "Branded",
                "description": "CHEDDAR CHEESE",
                "fdc_id": 2057648,
                "macros_per_100g": {
                  "calories_kcal": 393,
                  "carbohydrates_g": 3.6,
                  "fat_g": 28.6,
                  "protein_g": 21.4
                }
              }
            ],
            "query": "cheddar cheese",
            "total_hits": 4231
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "dataType": {
                    "description": "Optional USDA data-type filter",
                    "enum": [
                      "Foundation",
                      "SR Legacy",
                      "Branded",
                      "Survey (FNDDS)",
                      "Experimental"
                    ],
                    "type": "string"
                  },
                  "limit": {
                    "description": "Max ranked matches (default 10)",
                    "maximum": 25,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "q": {
                    "description": "Food name to search for",
                    "type": "string"
                  }
                },
                "required": [
                  "q"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "nutrition",
    "food",
    "usda",
    "search",
    "calories",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:07:37.432Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:07:37.201Z"
  },
  "metadata": {
    "serviceName": "nutrition-search",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "limit": 5,
              "q": "cheddar cheese"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "attribution": "Data from USDA FoodData Central (public domain, U.S. Department of Agriculture)",
              "count": 1,
              "matches": [
                {
                  "brand": "GRAFTON VILLAGE",
                  "data_type": "Branded",
                  "description": "CHEDDAR CHEESE",
                  "fdc_id": 2057648,
                  "macros_per_100g": {
                    "calories_kcal": 393,
                    "carbohydrates_g": 3.6,
                    "fat_g": 28.6,
                    "protein_g": 21.4
                  }
                }
              ],
              "query": "cheddar cheese",
              "total_hits": 4231
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "dataType": {
                      "description": "Optional USDA data-type filter",
                      "enum": [
                        "Foundation",
                        "SR Legacy",
                        "Branded",
                        "Survey (FNDDS)",
                        "Experimental"
                      ],
                      "type": "string"
                    },
                    "limit": {
                      "description": "Max ranked matches (default 10)",
                      "maximum": 25,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "q": {
                      "description": "Food name to search for",
                      "type": "string"
                    }
                  },
                  "required": [
                    "q"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}