Build with the Macfax API.
Everything an agent or app needs to help someone buy or sell a used Mac: serial lookup, sale and asking price statistics per exact configuration, quality-gated live listings with deep links, single-listing trust checks, verified reports, and standing alerts. Free, JSON, no account. The way in is a key, minted in one request with your email.
Machine-readable contract: /api/v1/openapi.json · agent index: /llms.txt
Quickstart
# A key takes your email and one request, no account. It is shown once, so store it,
# and follow the link Macfax emails you: until then the key has 5 new serials a day, after it 25.
curl -X POST 'https://macfax.com/api/v1/keys' -H 'Content-Type: application/json' \
-d '{"email": "you@example.com", "building": "What you are building, in a sentence"}'
KEY=mfx_... # the key from that answer
# Which Mac, iPad or iPhone is this?
curl -H "Authorization: Bearer $KEY" 'https://macfax.com/api/v1/lookup?serial=C02P73J9G8WP'
# What's a used 14" MacBook Pro M3 Pro going for?
curl -H "Authorization: Bearer $KEY" 'https://macfax.com/api/v1/price-stats?config=macbook-pro-14-m3pro-2023'
# What's a Mac worth, by the name Apple gives it?
curl -H "Authorization: Bearer $KEY" 'https://macfax.com/api/v1/market?model=MacBook%20Air%20(13-inch,%20M4,%202025)'
# Live listings under $1,500, cheapest first
curl -H "Authorization: Bearer $KEY" 'https://macfax.com/api/v1/listings?config=macbook-pro-14-m3pro-2023&max_price_usd=1500&sort=price_asc'
# Is this eBay listing trustworthy?
curl -H "Authorization: Bearer $KEY" 'https://macfax.com/api/v1/check-listing?url=https://www.ebay.com/itm/1234567890'Every response is { data, meta }. The meta block carries as_of, attribution, and a docs link. Send a key as Authorization: Bearer, X-Api-Key, or ?api_key=.
Keys and their contact
A key needs a contact email. POST /api/v1/keys with an email, and if you like a sentence on what you are building in building, returns the key in the answer, and the key works at once. Macfax sends the address one link to verify it. Until the link is followed the key has 5 new serials a day and the anonymous request limits; once it is, 25 and ten times those limits. A key you already have takes a contact the same way:
curl -X POST 'https://macfax.com/api/v1/keys/contact' \
-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
-d '{"email": "you@example.com", "building": "What you are building, in a sentence"}'A contact is there so a person can be told before anything about the API changes. The address is used for that and to verify it, and no answer ever shows it: GET /api/v1/limits says only whether a contact is on file and verified.
Keyless lookups end on 2026-12-07 at 00:00 UTC. From then a lookup sent with no key answers 401 key_required with how to mint one, and so does every other keyless call to /api/v1 except a mint and, for now, market and price-stats. Until then, every answer to a keyless call carries meta.notice and an X-Macfax-Notice header that state the date. An answer to a key without a verified contact carries one too, saying how to add or verify its email.
To revoke a key, send DELETE /api/v1/keys with it. Every call sent with it answers 401 invalid_key from then on, and nothing restores it.
curl -X DELETE 'https://macfax.com/api/v1/keys' -H "Authorization: Bearer $KEY"
The endpoints
| Endpoint | What it answers |
|---|---|
| GET /api/v1/lookup?serial=… | Serial to model for any Mac, iPad or iPhone, including 2021+ randomized serials: a status, Apple's device class, the model year where Apple's name carries one, the device's record on Macfax (any listing, verified report or sanitization record on file), and for a Mac what the model is worth. Lookup identifies; a report proves. |
| GET /api/v1/price-stats?config=… | The sale estimate for a configuration, labeled by basis (verified direct sales vs calibrated from asks), plus the asking band as seller guidance: median/p25/p75 with sample size, per-channel medians and net-to-seller after fees. |
| GET /api/v1/market?model=… | What a Mac is worth from Apple's own model name, e.g. MacBook Pro (14-inch, 2021): every configuration the name can mean, each with its sale estimate and asking band, and one value or a low-to-high range across them. |
| GET /api/v1/listings?config=… | Live listings across eBay, Craigslist, OfferUp, Swappa, Facebook and Reddit, scam/junk/stale-filtered, each with a deep link to the source. |
| GET /api/v1/check-listing?url=… | One listing's trust picture: known, still live, flags, ask vs the typical band, the platform's own seller reputation where it exists (eBay, Swappa), verified report attached. Human twin at /listing-check. |
| GET /api/v1/reports/{id} | A verified Macfax report as JSON. Also served at /r/{id}.json. |
| GET /api/v1/configs/{config} | A config page as data: band, inventory, freshest listings, demand signal. Also served at /shop/{config}.json. |
| GET /api/v1/briefs/{month} | A monthly market brief's full data as CSV (aggregates only). Also served at /market/{month}.csv. |
| POST /api/v1/alerts | A standing watch: daily email when new matching listings appear. Human-confirmed before anything sends. |
| POST /api/v1/follows | Follow one device for an address: what it is worth once there is a value, then a note only when that moves or a verified report is published. Human-confirmed before anything sends. |
| POST /api/v1/keys | Mint a free API key in one request, with your email. No account, and the key works at once: 5 new serials a day until its email is verified, then 25 and about 10x the request limits. |
| POST /api/v1/keys/contact | Add or change the contact email on your key, and what you are building. The address gets one link to verify it, and the key keeps working meanwhile. |
| DELETE /api/v1/keys | Revoke the key the call is sent with. Every call with it answers 401 from then on. |
| GET /api/v1/limits | This caller's lookup allowances and what it has used of them in the last 24 hours. Read it before a large batch. |
Building it into an app
One thing is asked of an app built on Macfax: where it shows an answer from Macfax, it credits "Macfax" with a link to the lookup, https://macfax.com/lookup, or to the html_url or macfax_url when the answer carries one.
- Match on model_identifiers, not the model name. Every resolved Mac lists the Apple identifiers the model can be, such as Mac16,6 and Mac16,8 for a 14-inch 2024 MacBook Pro with an M4 Pro or M4 Max, and model_identifier carries the one when there is only one. Model names vary between sources, so treat model as display text. iPads and iPhones come back with device_type and model and an empty identifier list.
- Cache by serial. A resolved answer never changes, so one lookup per serial per device is enough.
- Show html_url beside the result. Every lookup answer carries html_url, the device's own page on Macfax: its record, and for a Mac how to be sent what it is worth. It is the link to give a person, and it is how a result is credited to Macfax.
- Say why, once. Send context on every lookup when your app knows the reason: inventory, intake, resale, buyer, support or other. It is optional, it never changes the answer, and it is set once in your client.
- Switch off cleanly. Every response carries X-RateLimit-Remaining-Day. A 429 means stop for the Retry-After it gives, or until GET /api/v1/limits says otherwise.
- Words and typos count for nothing. Anything that cannot be a serial, a model name typed into a search box or an O where a zero belongs, returns 400 invalid_serial without touching an allowance.
- Market value goes by the name Apple gives the model. GET /api/v1/market?model= returns a value when the name pins one configuration and a low-to-high range when it leaves the chip open. Macs from before Apple Silicon return 404.
- Keep the key out of the binary. Serve it from a config you control, so replacing it never needs a release.
Running a batch
Identifying a whole fleet of Macs, iPads and iPhones is one loop over the lookup endpoint. Not writing code? The bulk page takes a pasted list or a CSV, runs this loop with your key, and hands back a CSV.
- Check what is left first. GET /api/v1/limits with your key returns its allowances and what it has used of them in the last 24 hours, so a script knows before it starts how much of a list it can finish today.
- One at a time, or at most three in flight. A key with a verified email may send 100 lookups a minute and 2,000 a day, and one whose email is not verified yet 10 and 200. A serial we have not seen takes 1.5 to 2.5 seconds and a known one well under a second. Past three in flight, new serials start coming back as retry.
- Branch on status. resolved: store model, device_type and year, plus model_identifiers for a Mac. unknown_serial: no device has that serial, usually a typo. unsupported: a real Apple device whose model we cannot identify yet. retry: a temporary failure, so run those again later. Neither unsupported nor retry counts against an allowance.
- On a 429, wait and resend the same serial. Sleep for the Retry-After it gives, never a fixed pause: the per-minute limit clears within a minute, but a daily allowance, or daily_capacity (the shared daily ceiling on new serials across every caller), can take hours. error.code says which limit it was and error.help carries the next call to make.
- A long list runs over more than one day. A key with a verified email answers 200 distinct serials a day, 25 of them new. Run what fits, and pick the list up where it stopped once the allowance frees up.
- Mark the run. Send context=inventory and one run_id, a UUID you mint per run, with every serial in it. Both are optional and never change the answer.
- Send the serial alone. A barcode on Apple's packaging reads S followed by the serial, so drop that S from scanned values; with it, a 2021+ serial reads as a much older one.
- Restarting counts for nothing. A crashed run can start again from the first serial: anything this key already had answered in the last 24 hours does not count a second time. A 400 is not a serial, and does not count either.
import time
import uuid
import requests
KEY = "mfx_..." # your key
URL = "https://macfax.com/api/v1/lookup"
RUN = str(uuid.uuid4()) # one per run
def lookup(serial):
while True:
r = requests.get(URL, params={"serial": serial, "context": "inventory", "run_id": RUN},
headers={"Authorization": f"Bearer {KEY}"}, timeout=30)
if r.status_code == 429: # a limit, not an error: wait, resend
time.sleep(int(r.headers.get("Retry-After", "60")))
continue
if r.status_code == 400: # not a serial: fix the input
return None
r.raise_for_status()
return r.json()["data"]
for serial in serials:
d = lookup(serial)
if d and d["status"] == "resolved":
print(serial, d["device_type"], d["model"], d["year"], d["model_identifiers"])
else: # unknown_serial and unsupported are final; run "retry" again later
print(serial, d["status"] if d else "invalid")Rate limits
Published so nobody has to probe for them. Anonymous limits are per IP, and a key has them too until its email is verified; a verified key, or an older key minted without an email, has the second column. Over-limit calls get an honest 429 with Retry-After and X-RateLimit-* headers, plus a shared per-endpoint daily breaker so a runaway integration degrades one tool for a day rather than everything.
| Tool | Anonymous | Verified key | Shared daily cap |
|---|---|---|---|
| lookup | 10/min · 200/day | 100/min · 2,000/day | 50,000/day |
| price-stats | 30/min · 1,000/day | 300/min · 10,000/day | 200,000/day |
| market | 30/min · 1,000/day | 300/min · 10,000/day | 200,000/day |
| listings | 20/min · 500/day | 200/min · 5,000/day | 20,000/day |
| check-listing | 20/min · 500/day | 200/min · 5,000/day | 20,000/day |
| reports | 30/min · 1,000/day | 300/min · 10,000/day | 50,000/day |
| configs | 20/min · 500/day | 200/min · 5,000/day | 20,000/day |
| briefs | 30/min · 500/day | 300/min · 5,000/day | 20,000/day |
| alerts | 2/min · 3/day | 4/min · 6/day | 10/day |
| follows | 2/min · 3/day | 4/min · 6/day | 25/day |
| keys | 2/min · 5/day | 2/min · 5/day | 200/day |
| key-contact | Needs a key | 2/min · 5/day | 500/day |
| key-revoke | Needs a key | 2/min · 5/day | 500/day |
| limits | 20/min · 500/day | 200/min · 5,000/day | 20,000/day |
The numbers above count requests. Serial lookup also has the allowances below, which count serials.
Lookup allowances
The API is free and nothing about it is for sale. Serial lookup is the one operation with a daily allowance, because identifying a serial Macfax has never seen draws on a source it does not control. A new serial is a 2021 or newer (10 character) serial that Macfax has not answered before and that this caller has not already asked about in the last 24 hours. Serials Macfax already knows, pre-2021 serials, repeats within 24 hours, and answers that come back retry or unsupported never count as new.
| Caller | New serials a day | Distinct serials a day |
|---|---|---|
| Anonymous, per address | 5 | No cap beyond the request limit |
| Key, email not verified | 5 | No cap beyond the request limit |
| Key with a verified email | 25 | 200 |
| Older key, minted without an email, until 2026-12-07 at 00:00 UTC | 25 | 200 |
A key takes an email, starts with 5 new serials a day and gets 25 once the email is verified. From 2026-12-07 at 00:00 UTC that holds for every key: an older key, minted without an email, has the anonymous allowance and limits from then until it has a verified contact, and POST /api/v1/keys/contact, sent with the key, adds one. Until then every answer to such a key says so, and from then a refused call says why and names that call. Keyless lookups end on 2026-12-07 at 00:00 UTC; until then, anonymous web lookups and anonymous API calls from one address share the same 5. New serials also have a ceiling of 2,000 a day across every caller, which answers 429 daily_capacity when reached and frees up through the day. Every lookup response says whether it counted, in new_serial, and GET /api/v1/limits returns what a caller has left.
Building something that needs more, such as an inventory tool or an app that identifies devices? Email api@macfax.com with your key prefix and what you are building. A raised key gets up to 500 new serials and 5,000 lookups a day, with no cap on distinct serials, and costs nothing. For an app that ships one key to every device, it also gets 50,000 market and price-stats requests a day each.
MCP server
The same tools, served over the Model Context Protocol at https://macfax.com/mcp (streamable HTTP, no auth, stateless). Registry name com.macfax/macfax; rate limits are identical to the HTTP API above. Open-source wrapper and install manifests: github.com/macfax/macfax-mcp.
- Claude. Settings → Connectors → add custom connector → https://macfax.com/mcp
- Gemini (Spark). Settings and help → Connected apps → add a custom app → https://macfax.com/mcp
- ChatGPT. Settings → Developer mode → add the endpoint while the directory listing is in review.
- Everything else. Cursor, VS Code, Gemini CLI and friends: install links and a stdio wrapper live in the macfax-mcp repo.
Machine surfaces
- /api/v1/openapi.json · the full contract, stable URL.
- /mcp · the MCP endpoint (streamable HTTP).
- /shop/{config}.json · every config page has a JSON twin.
- /r/{id}.json · every report has a JSON twin.
- /market/{YYYY-MM}.csv · every monthly market brief ships its data as CSV.
- /llms.txt · the curated index of everything above.
Monthly market statistics live at /market. Questions, or something you wish existed: support@macfax.com.