81trust / 100

Proxy Product Lookup

by Product Lookup by Barcode in Developer tools

x402 APIPassing, checked 52 min ago

Look up a product by EAN/UPC barcode in Open Food Facts, Open Beauty Facts and Open Products Facts: name, brand, quantity, categories, ingredients, allergens, labels, nutrition per 100 g, Nutri-Score, NOVA group and image URL. Params: barcode (8 to 14 digits, required).

POST https://agentsvc.io/api/v1/proxy/product-lookup

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
32 ms typical, 32 ms slowest 5%
Last check
52 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/product-lookup" \
  -H "content-type: application/json" \
  -d '{"barcode":"3017624010701"}'
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%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fproduct-lookup
const res = await pay("https://agentsvc.io/api/v1/proxy/product-lookup", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"barcode":"3017624010701"}),
});
console.log(await res.json());

Example input

{
  "barcode": "3017624010701"
}

Example output

{
  "data": {
    "allergens": [
      "nuts"
    ],
    "barcode": "3017624010701",
    "brand": "Ferrero",
    "categories": [
      "Cocoa and hazelnuts spreads",
      "de:Other"
    ],
    "ecoscore": "d",
    "found": true,
    "image_url": "https://images.openfoodfacts.org/images/products/301/762/401/0701/front_en.100.400.jpg",
    "ingredients": "sugar, palm oil, hazelnuts, skimmed milk powder, fat reduced cocoa, emulsifier, vanillin",
    "labels": [
      "no-gluten"
    ],
    "license": "ODbL (Open Food Facts contributors)",
    "name": "Nutella",
    "nova_group": null,
    "nutriscore": "e",
    "nutrition_per_100g": {
      "carbohydrates_g": 57.5,
      "energy_kcal": 539,
      "fat_g": 30.9,
      "fiber_g": null,
      "proteins_g": 6.3,
      "salt_g": 0.1075,
      "saturated_fat_g": 10.6,
      "sugars_g": 56.3
    },
    "quantity": "400.0 g",
    "source": "Open Food Facts",
    "url": "https://world.openfoodfacts.org/product/3017624010701"
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
52 min agoPassed40234 ms$0.005
6 h agoPassed40232 ms$0.005