# CIV Commodity Data API – Cocoa Farmgate Price

> CIV Commodity Data API – Cocoa Farmgate Price is a paid API for AI agents from data.lagoontechsystems.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns the current CCC-decreed farmgate floor price for cocoa in Côte d'Ivoire, denominated in XOF per kg

## Facts

- Endpoint: GET https://data.lagoontechsystems.com/api/cocoa/price
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/civ-commodity-data-api-cocoa-farmgate-price-f69e96a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V6H72or8EForFePb2S18I

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 civ-commodity-data-api-cocoa-farmgate-price-f69e96a1
```

Example prompt: What's the current CCC-decreed farmgate floor price for cocoa in Côte d'Ivoire right now — give me the price per kg in XOF?

## When to prefer this

Use this endpoint when you need the official CCC government-mandated farmgate floor price for cocoa in Côte d'Ivoire specifically, rather than exchange-traded futures or spot prices. Ideal for supply chain costing, sourcing agreements, or compliance with Ivorian cocoa pricing regulations. Prefer over ICE futures data when you need the producer-level price rather than a derivatives contract price.

## Known failure modes

- Payment not received or malformed x402 USDC payment on Base — returns 402 Payment Required
- Upstream CCC data unavailable — may return stale or error response
- Invalid or missing query parameters — returns 400 Bad Request
- Network timeout to data.lagoontechsystems.com — connection error

## How this service works

Côte d'Ivoire & global soft-commodity data (cocoa, coffee, sugar, cotton, cashew): CCC farmgate floor decrees, ICE Futures US settlements, CFTC COT positioning, and historical series. Pay-per-call in USDC on Base via the x402 protocol — no API keys, no signup.

## Output

A JSON object containing the commodity name ('cocoa'), the price type ('farmgate'), the numeric price value in XOF per kg, the data source ('CCC'), the timestamp of the last update, and a success flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "farmgate",
  "price": {
   "unit": "kg",
   "value": 1200,
   "currency": "XOF",
   "last_updated": "2026-05-28T12:00:00Z"
  },
  "source": "CCC",
  "success": true,
  "commodity": "cocoa"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/civ-commodity-data-api-cocoa-farmgate-price-f69e96a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.lagoontechsystems.com](https://www.zero.xyz/host/data.lagoontechsystems.com/llms.txt)
