81trust / 100
Nutrition Search
by nutrition-search in Search & web
x402 APIPassing, checked 3 h ago
Search foods by name in USDA FoodData Central (public domain). Returns ranked matches with fdc_id, description, brand, GTIN and key macros per 100g.
GET https://api.agentstools.dev/nutrition/search
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 26 ms typical, 26 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.agentstools.dev/nutrition/search?limit=5&q=cheddar+cheese"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.agentstools.dev%2Fnutrition%2Fsearch
const res = await pay("https://api.agentstools.dev/nutrition/search?limit=5&q=cheddar+cheese");
console.log(await res.json());Example input
{
"limit": 5,
"q": "cheddar cheese"
}Example output
{
"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
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 27 ms | $0.002 |
| 8 h ago | Passed | 402 | 26 ms | $0.002 |