REST API and remote MCP
AutoMarket Atlas developer documentation
Integrate used-car valuations and market trends into your app or AI agent. Run a stable sandbox request, verify the coverage for a real vehicle, then authenticate and set a spending limit.
Run your first request
Python 3.10+Choose REST to check a live vehicle’s coverage and inspect a fixed sandbox response. Choose MCP to discover tools, find a model and read market trends. Both examples run without a key, charge or package install.
REST
curl -fsSLo atlas_rest.py https://automarketatlas.com/static/examples/atlas_rest.py
python3 atlas_rest.py --country US --source research_spain-used-car-price-benchmark-november-2026MCP
curl -fsSLo atlas_mcp.py https://automarketatlas.com/static/examples/atlas_mcp.py
python3 atlas_mcp.py --country US --source research_spain-used-car-price-benchmark-november-2026From trial to prepaid access
- Try a live estimate. Add
--trialto either command. Atlas allows up to 3 guest requests per network per UTC day. SwitchUStoGBorDEto test another market. - Use signup valuations. Create a free account or call
POST /v1/account. Save the API key in your secret store and expose it to the example asATLAS_API_KEY. Eligible new accounts receive 20 free standard valuations. - Top up for repeat use. The examples set a zero-dollar spending limit. When the signup allowance ends, choose a prepaid USD package or follow the API’s
next_action. Check that the balance is funded before sending a paid request with your approved spending limit.
Make your first request
Start with a fixed valuation fixture. The sandbox response is stable, requires no credentials and uses no credits.
curl --fail-with-body "https://automarketatlas.com/v1/sandbox/valuation"View sandbox cases and expected responses
Call a live market
Start with a make, model and vehicle year seen in the data. You can make up to 3 guest valuation requests per network per UTC day, shared across the web form, REST and MCP. The response shows billing.trial_remaining. Market discovery, vehicle search and price history are available without an account.
/v1/market/valuationcurl --get "https://automarketatlas.com/v1/market/valuation" \
--data-urlencode country=DE \
--data-urlencode make=Volkswagen \
--data-urlencode model=Golf \
--data-urlencode year=2025
{
"country": "DE",
"currency": "EUR",
"vehicle": {"make": "Volkswagen", "model": "Golf", "year": 2025},
"median": 26980.0,
"range": {"p25": 24730.0, "p75": 30930.0},
"sample_size": 16274,
"window_days": 90
}
Create an account and use your signup reward
Eligible accounts receive 20 free valuations. Create your account directly through the API without entering an email, password or card.
curl --fail-with-body --request POST "https://automarketatlas.com/v1/account"Store api_key and recovery_code as separate secrets. A retryable signup can send a JSON body with registration_token, a private URL-safe Base64 token generated from 32 random bytes, without padding. Reuse the same token to retry that signup.
Send the API key in Authorization: Bearer and a fresh Idempotency-Key for each new valuation. Keep that key for retries of the same request. The signup reward is used first. Set Max-Charge-Cents: 0 for reward-only use.
curl "https://automarketatlas.com/v1/market/valuation?country=DE&make=Volkswagen&model=Golf&year=2025" \
-H "Authorization: Bearer $ATLAS_API_KEY" \
-H "Idempotency-Key: $ATLAS_REQUEST_ID" \
-H "Max-Charge-Cents: 0"Read GET /v1/account/me for the remaining signup valuations and USD balance. A recovery code can replace your API key while keeping your account and balance.
Check vehicle coverage first
- Call
GET /v1/marketsand read each market’scapabilities. Choose a market withvaluationwhen you need an estimate. - Use
GET /v1/vehicles/searchto find an observed spelling of the make and model with an eligible vehicle year. - Call
GET /v1/market/availabilitywith the same market, vehicle and optional filters you intend to use. Readstatus,sample_size,currencyandstandard_price_centsbefore submitting a paid request.
curl --fail-with-body "https://automarketatlas.com/v1/market/availability?country=DE&make=Volkswagen&model=Golf&year=2025"- Asking prices
- Read the response’s currency, observation dates and match count with the median and price range. A valuation describes observed comparable asking prices.
- Billing units
- Vehicle prices use the currency named in the response. Credit balances, charges and spending limits use USD cents.
- Retry keys
- Use one idempotency key per authenticated operation. Keep the same request data and key through timeouts and retries.
REST API reference
| Endpoint | Returns |
|---|---|
GET /v1/markets | Market codes, listing currencies, capabilities and sample vehicles |
GET /v1/markets/{country}/trends | Weekly asking-price medians, price ranges and sample sizes |
GET /v1/vehicles/search | Makes, models and vehicle years observed in the data |
GET /v1/market/availability | Coverage and potential USD charge for the requested vehicle or filters |
GET /v1/products | Available data products, routes and billing units |
GET /v1/market/valuation | Valuation from URL parameters. Supports guest and authenticated requests |
POST /v1/market/valuation | Same valuation from a JSON request. Supports guest and authenticated requests |
POST /v1/account | Account, reusable API key, recovery code and signup reward |
POST /v1/account/recover | Replacement API key for an account with a recovery code |
GET /v1/account/me | Remaining signup valuations and balances in USD cents |
GET /v1/account/usage | Recent valuation receipts, signup rewards and top-ups |
GET /v1/pricing | Guest limits, signup offer, valuation price and top-up packages |
POST /v1/account/checkout | Stripe Checkout URL, order ID and status path |
GET /v1/account/checkout/{order_id} | Funding status for an order on the authenticated account |
Use the country codes returned by GET /v1/markets and the vehicle names from search. REST and MCP take mileage in kilometers. The web form uses the market’s usual odometer unit.
Connect an agent over MCP
Add this Streamable HTTP endpoint to list markets, find vehicles, read trends and request estimates.
https://automarketatlas.com/mcpTry estimate_vehicle as a guest. Create an account over REST when the trial ends. Keep the returned credentials in your client’s secrets store and configure its Authorization: Bearer header. Supply a fresh request_id for each new valuation and reuse it on retries. max_charge_cents: 0 limits a call to the signup reward. Use account_status to check your balance.
list_marketsreturns market codes and supported capabilities.find_vehiclesmatches a make, model and year. Usemarket_trendsfor a market’s weekly observations.estimate_vehicleruns the valuation. Useaccount_statuswith an authenticated client to check balances.
Top up your USD balance
Paid valuations cost US$0.03 each. An authenticated result includes the listing currency, how the call was funded and the balance after the call. Only successful valuations use credit.
Card checkout
- Read available packages from
GET /v1/pricing. The package lists its USD payment amount and bonus credits. - With the payer’s approval, send
POST /v1/account/checkoutwithpackage_id, your bearer key and a stable idempotency key for this top-up. - Open or share the returned
checkout_urlwith the payer. UseGETon the returnedstatus_pathwith the original account key. Retry the valuation after its status isfunded.
Agent top-ups with x402
Read x402.mode, x402.packages and x402.next_action from the pricing API. If your client supports the published network and asset, obtain approval to spend the package amount.
- Send
POST /v1/x402/top-upwith a bearer key,Idempotency-Key,Max-Charge-Centsand a body such as{"package_id":"starter"}. - Read the x402 v2 terms from
Payment-Requiredwhen the quote returns HTTP 402. Verify the network, asset, amount and recipient before signing. - Retry with
Payment-Signatureand the same key. For a pending settlement, keep the original signature and followRetry-After. Continue after the order showsfunded.
Errors and retries
- 400
- Send an idempotency key with authenticated valuations and checkout requests.
- 401
- Check the key in your
Authorizationheader. - 402
- For
insufficient_balance, use the top-up information inerror.next_action. Forcharge_limit_exceeded, request payer approval before raising the limit. - 409
- Use a new idempotency key when changing the inputs.
- 422
- Check the inputs or remove an optional filter if too few listings match. Your balance stays available.
- 429
- Follow
Retry-Afterwhen present. Fortrial_exhausted,error.next_actionexplains how to create an account. - 503
- Retry a temporary failure after the indicated delay. Keep your original idempotency key and any x402 payment signature for a pending top-up.
Build with additional data products
Discover endpoint URLs and USD unit prices from the product catalog. Request and response schemas are available in OpenAPI.
Check a vehicle and its filters with GET /v1/market/availability. The response shows coverage and the standard USD price before you use credits.
To buy a product, send the Bearer API key, a unique Idempotency-Key and your chosen Max-Charge-Cents. For example, submit a JSON vehicle to /v1/market/comparables with Max-Charge-Cents: 8.
Repeat the same idempotency key with the same input if the response is lost. The API replays the first successful result and charge. Batch requests charge only for successful vehicles and reject the entire debit if the supplied ceiling would be exceeded.