Skip to main content

Public API v1

Catalog of flower seed varieties and the US sellers who sell them. Reads are public. Envelope { data, page, meta, error }; page holds next_cursor + has_more, meta holds catalog_seq + generated_at. No prices are published. Every listing carries provenance; every variety and seller carries rating ("not_yet_rated" until real reviews exist). Unknown values are explicit ("unknown" or null). New endpoints (sync, reports) answer errors as application/problem+json. Breaking changes ship as /api/v2.

Base URL
https://seeds.hues.flowers/api/v1
Contract
OpenAPI 3.1 document (openapi.json)
Methods
GET, HEAD, OPTIONS only — anything else returns 405.
Rate limit
120 requests per minute per IP; 429 with Retry-After when exceeded.
Caching
ETag on every GET (send If-None-Match for 304). Catalog version is never cached.
Pagination
Opaque cursors: pass meta.nextCursor back as ?cursor=. limit 1–100 (default 24).

Envelope

{ "data": …, "page": { "next_cursor": "…" | null, "has_more": true },
  "meta": { "nextCursor": "…" | null, "count": 24, "total": 68, "catalog_seq": 111, "generated_at": "…" }, "error": null }
{ "data": null, "meta": null, "error": { "code": "not_found", "message": "variety not found" } }
// /sync, /reports: application/problem+json
{ "type": "…", "title": "Gone", "status": 410, "detail": "…", "code": "resync_required" }

Endpoints

Examples

curl https://seeds.hues.flowers/api/v1/varieties?crop=sweet-pea&limit=5
curl https://seeds.hues.flowers/api/v1/varieties/sweet-pea-kings-ransom
curl "https://seeds.hues.flowers/api/v1/search?q=poppy"
curl https://seeds.hues.flowers/api/v1/catalog/version

No prices are published. Every listing carries provenance (source_url, retrieved_at, method, confidence); every variety and seller carries a rating that reads “not_yet_rated” until real reviews exist.