ETag caching cuts repeat GET costs in half.
1
Create a project and API key
Open the Developer Portal, verify your email if prompted, and create a project under Projects. Generate an API key in Keys and store the The secret is shown once at creation. Keep it server-side and out of client bundles or public repositories.
nb_live_... secret in an environment variable:2
Accept the Commercial API v2 terms
On the Developer Portal dashboard, click Accept v2 terms to accept version
2.0 of the Commercial API Terms. Until you accept, authenticated /v2 endpoints return 403 TERMS_NOT_ACCEPTED.3
Verify connectivity with /v2/health
GET /v2/health requires no key and costs nothing:4
Search for a fragrance
A new account starts on the Free evaluation plan (On paid plans, this search call costs
50 calls/day across allowlisted search and catalogue routes). Search by keyword to resolve a fragrance id or brand/name slug:$0.005 base plus $0.001 per hit returned ($0.006 for 1 result).5
Fetch the detailed fragrance profile
Pass either the opaque Inspect the response headers:
id or the URL-encoded brand/name slug (guerlain%2Fshalimar) to GET /v2/fragrances/{id}. Omit view or pass view=detailed for full notes, pyramid, accords, and perfumers ($0.010), or pass view=basic for a summary card ($0.005):6
Revalidate with If-None-Match for 50% off
Store the If the response representation is unchanged on the same UTC day (or has no signed image links), Noteboxd returns If the record itself has not changed on a later UTC day and signed
ETag alongside your cached response. When revalidating a GET endpoint, pass that ETag in If-None-Match:304 Not Modified with an empty body at 50% off the list price:imageUrl parameters rotated, the API returns 200 OK with fresh signed links, a new ETag, and x-noteboxd-revalidated: image-links-refreshed, still at 50% off.7
Render images directly and add attribution
Embed See Licensing and image links for cache window rules, attribution, and troubleshooting image URLs.
imageUrl directly in a browser <img> tag or mobile app view rather than downloading or proxying it from your backend: