Spoken ads
Spoken ads API reference
Post a short text ad with the places, hours, frequency and budget you want. The 93 Problems iPhone app reads it aloud after the spoken time. JSON over HTTPS; one key per integration. What it is and what it costs: Advertise.
| Method | Path | What it does |
|---|---|---|
| GET | /api/v1/ads/account | Balance, plays it covers, and every limit |
| POST | /api/v1/ads | Create a campaign (checked by Claude, then live) |
| GET | /api/v1/ads | Your campaigns, newest first |
| GET | /api/v1/ads/{ref} | One campaign: status, review, stats |
| PATCH | /api/v1/ads/{ref} | Pause, resume or end; change places, hours, frequency, budget or words |
| DELETE | /api/v1/ads/{ref} | End a campaign |
| GET | /api/v1/ads/{ref}/report | Plays, listeners and spend per day |
{ref} is the campaign’s id, or ext: followed by the external_id you gave it (URL-encode it if it has spaces or other special characters).
Quick start: a key, $10 of funds, one POST
- Sign in and make a key on Your ads. It’s shown once.
- Add at least $10 on Add funds (needs a confirmed email).
- Create the campaign, then
GETit a minute or two later to see Claude’s review.
export AD_KEY=a93k_… # your key
curl -X POST https://93problems.com/api/v1/ads \
-H "Authorization: Bearer $AD_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Winter tires",
"external_id": "tires-nov",
"sponsor": "Main Street Garage",
"language": "en",
"text": "Winter tires on this week, half price, at Main Street Garage on Fourth Avenue.",
"areas": [{ "lat": 49.2634, "lng": -123.1385, "radius_km": 5, "label": "Kitsilano" }],
"schedule": {
"timezone": "America/Vancouver",
"start": "2026-12-01",
"end": "2026-12-31",
"windows": [
{ "days": [1, 2, 3, 4, 5], "start": "07:00", "end": "10:00" },
{ "days": [1, 2, 3, 4, 5], "start": "16:00", "end": "19:00" }
]
},
"frequency": { "per_listener_per_day": 1, "min_hours_between": 4 },
"budget": { "daily_usd": 5, "total_usd": 100 }
}'The reply is 202 Accepted with the campaign in reviewing. Sending the same external_id again returns the existing campaign with 200 instead of making a second one, so retries are safe.
API keys and authentication
Send the key on every request as Authorization: Bearer a93k_… (an X-Api-Key: a93k_… header works too). Keys belong to your account: everything they create is billed to your ad balance.
- Make and revoke keys on Your ads while signed in. Give each a name (up to 40 characters) and an expiry: 30 days, 90 days, 6 months or a year at most.
- The full key is shown once. We store only a hash; we email you when a key is made.
- Up to 5 active keys per account. An expired or revoked key gets
401; make a new one. - Too many bad keys from one address (20 in 10 minutes) blocks that address for 10 minutes with
429.
Campaign fields (POST and PATCH)
| Field | Type | Rules |
|---|---|---|
sponsor | string, required | The name said first: “Sponsored message from {sponsor}:”. 2–40 characters. Must plausibly be your own business. |
text | string, required | 20–300 characters (about 20 seconds aloud), plain text. Line breaks become spaces; markup is removed. No web links: anything with http://, https:// or www. is refused with 422 (write “example dot com”). |
language | string | One of en fr es pt de ru uk ja. Default en. The words must be in this language. |
areas | array, required | 1–10 circles: { "lat", "lng", "radius_km", "label"? }. Radius 0.5–100 km. label (up to 60 characters) is optional and shown to the reviewer. |
schedule.timezone | string, required | An IANA time zone, e.g. America/Vancouver. Windows, days and daily budgets follow it. |
schedule.start | date or date-time | Default: now. A bare date means midnight in your time zone. Must be within 60 days. A start more than a day in the past is moved to now. Once the campaign has started, its start is fixed: a PATCH with a later start is refused (409) and an earlier one is ignored. |
schedule.end | date or date-time, required | A bare date includes that whole day. After the start and in the future; at most 90 days after the start. For a campaign that has started, the 90 days count from its original start, so a schedule change can’t stretch it. |
schedule.windows | array | 1–14 windows: { "days": [1..7], "start": "HH:MM", "end": "HH:MM" }. Days are ISO weekdays, 1 = Monday, 7 = Sunday. Times 00:00–24:00; each window at least 15 minutes, start before end (split one that crosses midnight in two). Default: every day 07:00–21:00. |
frequency.per_listener_per_day | integer | 1–4 plays of this ad per listener per day (your time zone). Default 1. |
frequency.min_hours_between | number | 1–24 hours between two plays to the same listener. Default 4. |
budget.daily_usd | number, required | 1–10,000 ($1 buys 4 plays at $0.25). Resets at midnight in your time zone. |
budget.total_usd | number | Optional lifetime cap, at least the daily budget (up to 1,000,000). |
name | string | Your label, up to 80 characters. Default: the sponsor. |
external_id | string | Your own id, up to 100 characters. Makes POST idempotent and lets you use ext:{external_id} in paths. |
status | string | On POST, "paused" makes an approved ad wait for you to resume it. On PATCH: active, paused or ended. |
The request body must be a JSON object of at most 32 KB (counted on the bytes received, chunked uploads too).
The campaign object
Every campaign endpoint returns campaigns in this shape (the note line appears only on POST).
{
"id": "6f1c2e0a-…",
"external_id": "tires-nov",
"name": "Winter tires",
"status": "reviewing",
"waiting": null,
"sponsor": "Main Street Garage",
"text": "Winter tires on this week, half price, at Main Street Garage on Fourth Avenue.",
"language": "en",
"spoken_as": "Sponsored message from Main Street Garage: Winter tires on this week, …",
"areas": [{ "lat": 49.2634, "lng": -123.1385, "radius_km": 5.0, "label": "Kitsilano" }],
"schedule": {
"timezone": "America/Vancouver",
"start": "2026-12-01T00:00:00-08:00",
"end": "2027-01-01T00:00:00-08:00",
"windows": [{ "days": [1, 2, 3, 4, 5], "start": "07:00", "end": "10:00" }, …]
},
"frequency": { "per_listener_per_day": 1, "min_hours_between": 4.0 },
"budget": { "daily_usd": 5.0, "total_usd": 100.0 },
"price_per_play_usd": 0.25,
"review": null,
"reviewed_at": null,
"stats": { "plays": 0, "spent_usd": 0.0, "plays_today": 0, "spent_today_usd": 0.0 },
"created_at": "2026-11-30T18:02:11.512+00:00",
"updated_at": "2026-11-30T18:02:11.512+00:00",
"note": "Checked against the ad rules in a minute or so; GET it to see the result."
}| Field | Meaning |
|---|---|
status | See statuses. |
waiting | Why an active campaign isn’t playing right now, or null: not started yet, finished, out of funds: add to your ad balance, today's budget is spent, total budget is spent. |
spoken_as | The full English line as read aloud; null for other languages (the app says the lead-in in the ad’s language). |
review | Claude’s verdict: decision, reasons, category, by (claude, system or admin). Null while reviewing. |
stats | Plays and spend in total and today (today in your time zone). |
price_per_play_usd | The price fixed when the campaign was made: 0.25. |
Statuses and Claude’s review
| Status | Meaning |
|---|---|
reviewing | Waiting for Claude’s check. Usually a minute or two; it is retried every couple of minutes if the check fails. |
active | Approved and eligible to play inside its dates and windows (see waiting). |
paused | Approved but held by you (or by us). Resume with PATCH status active. |
rejected | Not accepted; review.reasons says why. Change the words (sponsor, text or language) to have it checked again, or end it. It can’t be paused or resumed as it is (409). |
ended | Ended by you, or as soon as its end date has passed. Final: nothing changes an ended campaign (any PATCH is 409). Make a new campaign to run again. |
Every new ad, and every change of sponsor, text or language, is checked by Claude against the ad rules before it can play. Approved ads go live by themselves; there is no manual approval step. If the check itself fails five times, the ad is rejected with “The ad couldn’t be checked; try again later.” We can also pause or reject an ad later; then review.by is admin.
"status": "active",
"review": { "decision": "approve", "reasons": [], "category": "local business", "by": "claude" }"status": "rejected",
"review": {
"decision": "reject",
"reasons": ["Alcohol can't be advertised. Promote the food menu instead."],
"category": "alcohol",
"by": "claude"
}What is rejected. Politics, elections or issue advocacy; adult content or dating; gambling, lotteries or paid sweepstakes; alcohol, tobacco, vaping, cannabis or other drugs; weapons, ammunition or explosives; prescription drugs, cures, weight-loss or medical claims; crypto, forex, “get rich”, payday or high-interest loans, debt collection; hate, harassment, violence or discrimination; anything aimed at children or asking for passwords, codes or personal details; deception (fake urgency, false claims, “you’ve won”, hidden fees); anything that sounds like 93 Problems, news, the time, traffic, directions or an emergency, government or police alert, or that could make a driver think something is wrong with their car, phone or route; a sponsor that isn’t plausibly your own business (the reviewer sees your account name and email domain); and words that can’t be read aloud well in the stated language (long strings of symbols, emoji, capitals shouting, profanity). Phone numbers and “example dot com” are fine. See Advertise for the plain-language version.
Endpoints
/api/v1/ads/accountYour balance and the limits
curl https://93problems.com/api/v1/ads/account -H "Authorization: Bearer $AD_KEY"{
"balance_usd": 25.0,
"price_per_play_usd": 0.25,
"plays_affordable": 100,
"add_funds": "https://93problems.com/advertiser/deposit",
"key": "Shop laptop",
"limits": {
"price_per_play_usd": 0.25,
"languages": ["en", "fr", "es", "pt", "de", "ru", "uk", "ja"],
"text_chars": [20, 300], "sponsor_chars": [2, 40],
"areas": 10, "radius_km": [0.5, 100.0],
"start_within_days": 60, "max_run_days": 90,
"windows": 14, "min_window_minutes": 15,
"per_listener_per_day": [1, 4], "min_hours_between": [1, 24], "daily_budget_usd_min": 1,
"listener_caps_all_ads": { "minutes_apart": 20, "per_hour": 3, "per_day": 8 },
"live_campaigns": 20, "requests_per_minute": 60,
"active_keys": 5, "key_max_days": 365
}
}key is the name of the key you used.
/api/v1/adsCreate a campaign
Body: the campaign fields. Replies 202 with the campaign object (status: reviewing), or 200 with the existing campaign when the external_id is already yours. Up to 20 live campaigns (reviewing, active or paused, not yet past their end) and 100 new campaigns a day.
curl -X POST https://93problems.com/api/v1/ads \
-H "Authorization: Bearer $AD_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Winter tires",
"external_id": "tires-nov",
"sponsor": "Main Street Garage",
"language": "en",
"text": "Winter tires on this week, half price, at Main Street Garage on Fourth Avenue.",
"areas": [{ "lat": 49.2634, "lng": -123.1385, "radius_km": 5, "label": "Kitsilano" }],
"schedule": {
"timezone": "America/Vancouver",
"start": "2026-12-01",
"end": "2026-12-31",
"windows": [
{ "days": [1, 2, 3, 4, 5], "start": "07:00", "end": "10:00" },
{ "days": [1, 2, 3, 4, 5], "start": "16:00", "end": "19:00" }
]
},
"frequency": { "per_listener_per_day": 1, "min_hours_between": 4 },
"budget": { "daily_usd": 5, "total_usd": 100 }
}'/api/v1/adsList your campaigns
Newest first, up to 200. Optional ?status= one of the statuses. Returns { "campaigns": [ … ], "balance_usd": 25.0 }.
curl "https://93problems.com/api/v1/ads?status=active" -H "Authorization: Bearer $AD_KEY"/api/v1/ads/{ref}One campaign
The campaign object, including the review and today’s stats. 404 if it isn’t yours.
curl https://93problems.com/api/v1/ads/6f1c2e0a-… -H "Authorization: Bearer $AD_KEY"
# or by your own external_id:
curl https://93problems.com/api/v1/ads/ext:tires-nov -H "Authorization: Bearer $AD_KEY"/api/v1/ads/{ref}Change, pause, resume or end a campaign
Send only what changes; the reply is the updated campaign object.
status:paused,active(resume) orended. While reviewing,pausedoractivesets how it starts once approved.areasreplaces all circles.schedule,frequencyandbudgetare merged: send only the keys you change. These apply at once, without a new review.- New
sponsor,textorlanguagesends the ad back toreviewing(it stops playing until approved). Add"status": "paused"to keep it paused after approval. - A rejected ad can’t be set
activeorpausedwithout new words (409);endedworks. An ended campaign can’t be changed at all, not even its words (409).
curl -X PATCH https://93problems.com/api/v1/ads/ext:tires-nov \
-H "Authorization: Bearer $AD_KEY" -H "Content-Type: application/json" \
-d '{ "status": "paused" }'curl -X PATCH https://93problems.com/api/v1/ads/ext:tires-nov \
-H "Authorization: Bearer $AD_KEY" -H "Content-Type: application/json" \
-d '{
"schedule": { "end": "2027-01-15" },
"budget": { "daily_usd": 8 },
"areas": [
{ "lat": 49.2634, "lng": -123.1385, "radius_km": 5, "label": "Kitsilano" },
{ "lat": 49.2827, "lng": -123.1207, "radius_km": 3, "label": "Downtown" }
]
}'curl -X PATCH https://93problems.com/api/v1/ads/ext:tires-nov \
-H "Authorization: Bearer $AD_KEY" -H "Content-Type: application/json" \
-d '{ "text": "Winter tires on this week at Main Street Garage on Fourth Avenue. Call 604 555 0199." }'/api/v1/ads/{ref}End a campaign
The same as PATCH {"status": "ended"}, for a campaign in any status, rejected included. It stops playing at once and can’t be restarted. Safe to repeat: ending an ended campaign answers 200 with status: ended. Returns the id and the status.
curl -X DELETE https://93problems.com/api/v1/ads/ext:tires-nov -H "Authorization: Bearer $AD_KEY"{ "id": "6f1c2e0a-…", "status": "ended" }/api/v1/ads/{ref}/reportPlays, listeners and spend per day
?days= 1–120 (default 30). Days are in the campaign’s time zone and only days with plays are listed. listeners counts distinct listeners that day (a signed-in account, or a phone); no identities or locations are ever returned.
curl "https://93problems.com/api/v1/ads/ext:tires-nov/report?days=7" -H "Authorization: Bearer $AD_KEY"{
"id": "6f1c2e0a-…",
"timezone": "America/Vancouver",
"days": [
{ "day": "2026-12-01", "plays": 42, "listeners": 37, "spent_usd": 2.1 },
{ "day": "2026-12-02", "plays": 55, "listeners": 49, "spent_usd": 2.75 }
]
}Billing and budgets: 25¢ a confirmed play, from a prepaid balance
- Each play costs $0.25 from your ad balance ($10 buys 40 plays). Add funds on Add funds by card, $10 minimum.
- You’re charged only when the app confirms it has said your ad. An offer the app doesn’t confirm within 15 minutes lapses at no cost; a confirmation repeated for the same play is not charged twice.
- An ad is only offered while your balance covers a play and neither budget would be passed. Plays offered and still awaiting confirmation count toward today’s budget, so a day can’t overshoot.
- When several campaigns could play to the same listener, the one furthest behind its daily budget goes first.
Who hears an ad, and when
- Listeners of the 93 Problems iPhone app, signed in or not, who are not members and don’t have the ad-free subscription. The website and the Android app don’t play ads.
- Right after the spoken time between songs, while music or a calm sound is playing, and only if the listener has spoken updates on. The app asks for one ad and gives up after 3 seconds, so the music is never held for long.
- Only when the phone’s last known position is inside one of your circles, now is inside one of your windows (your time zone), and the language the app is speaking in matches your ad’s.
- Per listener: your frequency settings, and across all advertisers at most one ad every 20 minutes, 3 an hour and 8 a day.
- The lead-in is said in the ad’s language, e.g. “Sponsored message from …:”, “Message commandité de … :”, “Mensaje patrocinado de …:”, “Werbung von …:”.
Errors
Errors are JSON with a human-readable detail; it names the field and the allowed range.
HTTP/1.1 422
{ "detail": "text: 20-300 characters (about 20 seconds aloud)" }| Status | When |
|---|---|
| 400 | The body isn’t JSON, or isn’t a JSON object. |
| 401 | No key, not an a93k_ key, unknown, revoked or expired key, or a deleted account. |
| 404 | No such campaign on your account. |
| 409 | 20 live campaigns already; any change to an ended campaign; setting a rejected ad active or paused without new words; or moving the start of a campaign that has started. |
| 413 | Body over 32 KB. |
| 422 | A field is missing or out of range (the detail says which). |
| 429 | Over 60 requests a minute on this key, over 100 new campaigns a day, or too many bad keys from your address. Wait for the Retry-After seconds. |
| 503 | Spoken ads are switched off for now. |
Limits
| What | Limit |
|---|---|
| Words | 20–300 characters; sponsor 2–40 |
| Languages | en, fr, es, pt, de, ru, uk, ja |
| Places | 1–10 circles, 0.5–100 km |
| Dates | Start within 60 days; run at most 90 days from the start |
| Time windows | 1–14, at least 15 minutes each |
| Your frequency | 1–4 plays per listener per day, 1–24 hours apart |
| All ads, per listener | 1 per 20 minutes, 3 an hour, 8 a day |
| Price | $0.25 a confirmed play |
| Budget | Daily $1–$10,000 ($1 = 4 plays); total optional, at least the daily |
| Campaigns | 20 live at once; 100 created a day |
| Requests | 60 a minute per key; body up to 32 KB |
| Keys | 5 active per account; each expires within 365 days |
GET /api/v1/ads/account returns the current limits, so your code doesn’t need to hard-wire them.
Data kept
Individual play records (which campaign, an account or phone id, which of your circles, when) are deleted after 120 days, so reports reach back at most 120 days. The campaign’s running totals stay with the campaign. The phone’s exact position is used to choose an ad and isn’t stored with the play.