AfriHarvexAfriHarvexGlobal Trade Execution Layer Open marketplace
Developers

Build on AfriHarvex

Show live listings from African farms and businesses on your own website or app. A public, read-only JSON API and drop-in widgets — no sign-up, no API key.

🔓 Open access

No account, no key. Call it from any website — cross-origin requests are allowed.

⚡ Fast & cached

JSON is refreshed every 2 minutes, widgets every 5. Served from a global edge network.

📦 Stable

Versioned at /api/v1/. Breaking changes will only ever ship under /v2.

🛡️ Trust signals

Every storefront includes its verified status and loyalty tier, so your users know who they're buying from.

⚡ Quick start

Paste this anywhere on your site to show an AfriHarvex storefront card. Replace <slug> with the shop's name from its link, e.g. afriharvex.com/biz/jamsrock.

<iframe src="https://www.afriharvex.com/embed/storefront/<slug>"
        width="320" height="460" frameborder="0"
        style="border:0;border-radius:14px"></iframe>

📡 JSON API

Read a storefront and its live listings as JSON.

Storefront GET Open CORS Cached 2 min

GET/api/v1/storefront/<slug>

Returns one storefront and its 50 most recent active listings.

# example
curl https://www.afriharvex.com/api/v1/storefront/jamsrock

# 200 OK
{
  "storefront": {
    "id": "f74be819-716b-4ed8-a766-178910ff3e9b",
    "slug": "jamsrock",
    "name": "Jamsrock",
    "industry": "Agriculture",
    "country": "Nigeria",
    "about": "We buy and sell",
    "logo_url": null,
    "cover_url": null,
    "verified": false,
    "loyalty_level": "bronze",
    "is_aggregator": false,
    "url": "https://www.afriharvex.com/biz/jamsrock",
    "created_at": "2026-05-04T04:49:28.599764+00:00"
  },
  "listings": [
    {
      "id": "afa57af4-…",
      "name": "One crate of egg",
      "price": 6400,            // in ₦ (not kobo)
      "currency": "NGN",
      "unit": "crate",
      "qty": 1,
      "category": "livestock",
      "image_url": "https://…/crate.jpg",
      "ships_internationally": false,
      "delivery_fee": 0,
      "has_video": true,
      "video_url": "https://…/clip.mp4",
      "video_mime": "video/mp4"
    }
  ],
  "meta": { "api_version": "v1", "listing_count": 1, "fetched_at": "2026-05-26T22:30:00.000Z" }
}
FieldTypeNotes
storefront.verifiedboolThe business has passed identity checks.
storefront.loyalty_levelstringbronze · silver · gold · platinum · diamond
storefront.is_aggregatorboolThe seller sources produce from other farmers as part of the AfriHarvex agent network.
listings[].pricenumberWhole currency units (₦, not kobo).
listings[].ships_internationallyboolfalse = ships only within the seller's country.
listings[].has_videoboolThe seller recorded a clip; video_url is set exactly when this is true.
listings[].video_urlstring · nullAlways https, streams in your own <video>. Use preload="metadata" — clips can be large and many viewers are on mobile data.
listings[].video_mimestring · nullThe file type as uploaded — not a guarantee it plays everywhere. Phone videos labelled video/mp4 can be HEVC, which some desktop browsers don't decode; offer a poster or download fallback.

Errors: 404 {"error":"storefront not found"} for unknown or suspended shops · 400 {"error":"invalid slug"} for malformed input.

🧩 Embed widgets

Drop-in cards that open the live shop or product on AfriHarvex.

Storefront card GET Cached 5 min

GET/embed/storefront/<slug>

Logo, name, verified badge, loyalty chip, 3 top listings and a "View on AfriHarvex →" button. Tapping the card opens the shop in a new tab. Works in WordPress, Shopify, Notion, blogs — anywhere an iframe is allowed.

<!-- suggested size: 320 × 460 -->
<iframe src="https://www.afriharvex.com/embed/storefront/jamsrock"
        width="320" height="460" frameborder="0"
        style="border:0;border-radius:14px"></iframe>

Product card GET

GET/embed/listing/<id>

A single product with photo, price and a buy button. The <id> is the code at the end of a product link, afriharvex.com/l/<id>.

🎨 Match your brand

Both widgets accept optional settings in the link. Invalid values are ignored safely, so a typo never breaks the card.

SettingValuesEffect
accent6-digit hex (%23c20e0e or c20e0e)Main colour — button, price, verified badge.
themelight · dark (default)Light or dark card.
logohttps linkYour own logo on the card (storefront widget only).
radius0–24 (default 14)Corner rounding in px.
chromeminHide the "Powered by AfriHarvex" line. The View / Buy button always stays.
<!-- red accent, light card, smaller corners, minimal footer -->
<iframe src="https://www.afriharvex.com/embed/storefront/jamsrock?accent=%23c20e0e&theme=light&radius=10&chrome=min"
        width="320" height="460" frameborder="0" style="border:0"></iframe>

Sellers: your ready-made snippet is in the app under Profile → Dashboard → 📱 QR & embed code.

🔐 Privacy by design

The public API is deliberately narrow. It never returns:

🗺️ Sitemap

GET/sitemap.xml

Lists every public storefront and product page, rebuilt hourly. Use it if you index or link to AfriHarvex content.

🚀 Coming next

Questions or found a bug?
Email support@afriharvex.com — we read every message.

Contact us