Harvest Cost
by HarvestPulse in Markets & finance
Organic vs conventional food cost comparison — is organic worth it? Real price analysis of local/organic vs conventional groceries, grounded in FRED food-CPI data. For local-food and budget agents.
https://harvestpulse.theaslangroupllc.com/api/harvest/cost- Price
- $0.1
- per call in USDC
- Uptime
- 0.0%
- last 30 days
- Response time
- -
- no timed checks yet
- Last check
- Failed
- 4 h ago, next any minute now
Reliability
Latest check failed 4 h ago: Amount "0.1" is not in atomic token units
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://harvestpulse.theaslangroupllc.com/api/harvest/cost
Each call costs $0.1 in USDC on Polygon, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://harvestpulse.theaslangroupllc.com/api/harvest/cost?items=space-separated+list+of+produce+items+to+compare+%28default%3A+strawberries+tomatoes+lettuce%29&lang=en+%7C+es+%7C+fr+%7C+de+%7C+pt+%7C+zh+%7C+ko+%28default%3A+en%29&location=city%2C+state%2C+or+country+for+pricing+context+%28default%3A+US%29Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | string | No | |
lang | string | No | |
location | string | No |
Example response
The provider's example. We can't check it without paying.
Example response, 29 lines
{
"bottom_line": "Local/organic can reach cost parity with conventional when waste reduction and quality are factored in.",
"budget_optimization_strategy": "Buy the Dirty Dozen organic locally, save on the Clean Fifteen conventionally.",
"cost_comparison": [
{
"conventional_grocery": "$3.50/lb",
"csa_equivalent": "$3.00/lb (estimated)",
"farmers_market_local": "$4.00/lb",
"item": "Strawberries",
"organic_grocery": "$5.50/lb",
"verdict": "CSA or farmers market offers the best value for freshness and price."
}
],
"hidden_costs_of_cheap_food": [
"environmental cost",
"health externalities",
"supply chain fragility"
],
"hidden_value_of_local": [
"freshness = less waste",
"relationship with grower",
"seasonal flavor peak"
],
"items_compared": "strawberries tomatoes lettuce",
"macro_context": "FRED CPI data shows food-at-home inflation trends relative to overall inflation.",
"pulse_suggestions": [],
"search_context": "Live search context on current prices and cost comparisons.",
"waste_factor": "Fresher local produce lasts longer, reducing effective cost through less waste."
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.1.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://harvestpulse.theaslangroupllc.com/api/harvest/cost?items=space-separated+list+of+produce+items+to+compare+%28default%3A+strawberries+tomatoes+lettuce%29&lang=en+%7C+es+%7C+fr+%7C+de+%7C+pt+%7C+zh+%7C+ko+%28default%3A+en%29&location=city%2C+state%2C+or+country+for+pricing+context+%28default%3A+US%29'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://harvestpulse.theaslangroupllc.com/api/harvest/cost?items=space-separated+list+of+produce+items+to+compare+%28default%3A+strawberries+tomatoes+lettuce%29&lang=en+%7C+es+%7C+fr+%7C+de+%7C+pt+%7C+zh+%7C+ko+%28default%3A+en%29&location=city%2C+state%2C+or+country+for+pricing+context+%28default%3A+US%29' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.1 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.1" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.1 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fharvestpulse.theaslangroupllc.com%2Fapi%2Fharvest%2Fcost
const res = await pay("https://harvestpulse.theaslangroupllc.com/api/harvest/cost?items=space-separated+list+of+produce+items+to+compare+%28default%3A+strawberries+tomatoes+lettuce%29&lang=en+%7C+es+%7C+fr+%7C+de+%7C+pt+%7C+zh+%7C+ko+%28default%3A+en%29&location=city%2C+state%2C+or+country+for+pricing+context+%28default%3A+US%29");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.1 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.1"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://harvestpulse.theaslangroupllc.com/api/harvest/cost?items=space-separated+list+of+produce+items+to+compare+%28default%3A+strawberries+tomatoes+lettuce%29&lang=en+%7C+es+%7C+fr+%7C+de+%7C+pt+%7C+zh+%7C+ko+%28default%3A+en%29&location=city%2C+state%2C+or+country+for+pricing+context+%28default%3A+US%29")
print(res.status_code, res.text)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 |
|---|---|---|---|---|
| 4 h ago | Amount "0.1" is not in atomic token units | 402 | 274 ms | $0.1 |
| 9 h ago | Amount "0.1" is not in atomic token units | 402 | 233 ms | $0.1 |
| 15 h ago | Amount "0.1" is not in atomic token units | 402 | 256 ms | $0.1 |
| 21 h ago | Amount "0.1" is not in atomic token units | 402 | 196 ms | $0.1 |
| 27 h ago | Amount "0.1" is not in atomic token units | 402 | 221 ms | $0.1 |
Show 7 older checks
| 32 h ago | Amount "0.1" is not in atomic token units | 402 | 183 ms | $0.1 |
| 38 h ago | Amount "0.1" is not in atomic token units | 402 | 159 ms | $0.1 |
| 43 h ago | Amount "0.1" is not in atomic token units | 402 | 258 ms | $0.1 |
| 2 days ago | Amount "0.1" is not in atomic token units | 402 | 162 ms | $0.1 |
| 2 days ago | Amount "0.1" is not in atomic token units | 402 | 284 ms | $0.1 |
| 2 days ago | Amount "0.1" is not in atomic token units | 402 | 223 ms | $0.1 |
| 3 days ago | Amount "0.1" is not in atomic token units | 402 | 352 ms | $0.1 |