# HarvestPulse Local vs Conventional Cost Comparison

> HarvestPulse Local vs Conventional Cost Comparison is a paid API for AI agents from harvestpulse.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Compares the cost of local/organic food versus conventional food, grounded in FRED food CPI data, to help users understand price differences.

## Facts

- Endpoint: GET https://harvestpulse.vercel.app/api/harvest/cost
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/harvestpulse-local-vs-conventional-cost-comparison-12785b6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PVelxY8OoN4oxfL3J8fjN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability harvestpulse-local-vs-conventional-cost-comparison-12785b6e
```

Example prompt: Can you compare the cost of buying local and organic produce versus conventional supermarket groceries for a typical household — I want to know how much more I'd be spending per week if I switched to local food?

## When to prefer this

Use this endpoint when a user wants to understand the real price difference between local/organic and conventional food options, especially when budget planning for a local-food lifestyle transition. Prefer this over generic grocery price APIs when FRED CPI-grounded economic analysis is needed.

## Known failure modes

- Missing or unrecognized food category returns an error or empty comparison
- Location not supported may return national averages instead of local data
- FRED CPI data unavailable or stale may reduce accuracy of comparisons
- Invalid query parameters return 400-level errors

## How this service works

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.

## Output

Returns a structured price comparison between local/organic and conventional food options, including cost differentials, percentage premiums, and analysis grounded in FRED food CPI data to help users make informed budgeting decisions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "lang": {
       "type": "string"
      },
      "items": {
       "type": "string"
      },
      "location": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "errors": {
     "type": "object",
     "description": "Documented error responses, keyed by HTTP status code",
     "additionalProperties": {
      "type": "object",
      "required": [
       "description"
      ],
      "properties": {
       "example": {
        "type": "object"
       },
       "description": {
        "type": "string"
       }
      }
     }
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bottom_line": "Local/organic can reach cost parity with conventional when waste reduction and quality are factored in.",
  "waste_factor": "Fresher local produce lasts longer, reducing effective cost through less waste.",
  "macro_context": "FRED CPI data shows food-at-home inflation trends relative to overall inflation.",
  "items_compared": "strawberries tomatoes lettuce",
  "search_context": "Live search context on current prices and cost comparisons.",
  "cost_comparison": [
   {
    "item": "Strawberries",
    "verdict": "CSA or farmers market offers the best value for freshness and price.",
    "csa_equivalent": "$3.00/lb (estimated)",
    "organic_grocery": "$5.50/lb",
    "conventional_grocery": "$3.50/lb",
    "farmers_market_local": "$4.00/lb"
   }
  ],
  "pulse_suggestions": [],
  "hidden_value_of_local": [
   "freshness = less waste",
   "relationship with grower",
   "seasonal flavor peak"
  ],
  "hidden_costs_of_cheap_food": [
   "environmental cost",
   "health externalities",
   "supply chain fragility"
  ],
  "budget_optimization_strategy": "Buy the Dirty Dozen organic locally, save on the Clean Fifteen conventionally."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/harvestpulse-local-vs-conventional-cost-comparison-12785b6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from harvestpulse.vercel.app](https://www.zero.xyz/host/harvestpulse.vercel.app/llms.txt)
