AutoMarket Atlas

REST API and remote MCP

AutoMarket Atlas developer documentation

Use Atlas to add used-car prices and valuations to an app or agent. Try a sandbox request, check coverage for a real vehicle, then create an API key when you need one.

Vehicle model in front of annotated pricing data panels

Run your first request

Python 3.10+

The REST example checks coverage for a real vehicle and shows a sandbox response. The MCP example lists tools, finds a model and reads market prices. Both are free and run with Python’s standard library, without an API key.

REST

Terminal
curl -fsSLo atlas_rest.py https://automarketatlas.com/static/examples/atlas_rest.py
python3 atlas_rest.py --country US --source research_us-used-car-prices-under-20000-dollars

MCP

Terminal
curl -fsSLo atlas_mcp.py https://automarketatlas.com/static/examples/atlas_mcp.py
python3 atlas_mcp.py --country US --source research_us-used-car-prices-under-20000-dollars

Try a valuation and add credits

  1. Try a live estimate. Add --trial to either command. Atlas allows up to 3 guest requests per network per UTC day. Switch US to GB or DE to test another market.
  2. Use your free signup valuations. Create a free account or call POST /v1/account. Save the API key in your secrets store and pass it to the example as ATLAS_API_KEY. Eligible new accounts receive 20 free standard valuations.
  3. Top up for repeat use. The examples set a zero-dollar spending limit. When you’ve used your free valuations, choose a prepaid USD package or follow the API’s next_action. Wait for the top-up to appear in your balance. Then use the spending limit you approved for the request.

Make your first request

Start with a sandbox example. It returns the same response every time and needs no API key or credits.

Sandbox valuation
curl --fail-with-body "https://automarketatlas.com/v1/sandbox/valuation"

View sandbox cases and expected responses

Try a live valuation

Use a make, model and year from the live data. Each network gets up to 3 free guest valuations per UTC day across the website, REST and MCP. Check billing.trial_remaining for the number of requests left. You can browse markets, search for a car and read price history without an account.

GET/v1/market/valuation
Request
curl --get "https://automarketatlas.com/v1/market/valuation" \
  --data-urlencode country=DE \
  --data-urlencode make=Volkswagen \
  --data-urlencode model=Golf \
  --data-urlencode year=2025
Selected response fields
{
  "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
}
Open JSON response

Get an API key

Eligible accounts receive 20 free valuations. Create your account directly through the API without entering an email, password or card.

Create an account
curl --fail-with-body --request POST "https://automarketatlas.com/v1/account"

Store api_key and recovery_code as separate secrets. To make account creation safe to retry, send a JSON body with registration_token, a private token made from 32 random bytes using URL-safe Base64 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.

Use a signup valuation
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"

Call GET /v1/account/me to check how many free valuations you have left and see your USD balance. A recovery code can replace your API key while keeping your account and balance.

Check vehicle coverage first

  1. Call GET /v1/markets and read each market’s capabilities. Choose a market with valuation when you need an estimate.
  2. Use GET /v1/vehicles/search to find the make, model and year as they appear in the data.
  3. Call GET /v1/market/availability with the same market, vehicle and optional filters you intend to use. Read status, sample_size, currency and standard_price_cents before submitting a paid request.
Free coverage check
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

EndpointReturns
GET /v1/marketsMarket codes, currencies, available features and example vehicles
GET /v1/markets/{country}/trendsWeekly asking-price medians, price ranges and sample sizes
GET /v1/vehicles/searchMakes, models and vehicle years observed in the data
GET /v1/market/availabilityCoverage and potential USD charge for the requested vehicle or filters
GET /v1/productsAvailable data products, routes and billing units
GET /v1/market/valuationValuation from URL parameters. Supports guest and authenticated requests
POST /v1/market/valuationSame valuation from a JSON request. Supports guest and authenticated requests
POST /v1/accountAccount, reusable API key, recovery code and signup reward
POST /v1/account/recoverReplacement API key for an account with a recovery code
GET /v1/account/meRemaining signup valuations and balances in USD cents
GET /v1/account/usageRecent valuation receipts, signup rewards and top-ups
GET /v1/pricingGuest limits, signup offer, valuation price and top-up packages
POST /v1/account/checkoutStripe 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 the following URL to a client that supports Streamable HTTP. Use it to find vehicles, read prices or request a valuation.

Server URL
https://automarketatlas.com/mcp

Try estimate_vehicle as a guest. Create an account over REST when the trial ends. Save the API key and recovery code in your client’s secrets store. Send the key in the Authorization: Bearer header. Give each new valuation a new request_id, and keep it when you retry. max_charge_cents: 0 limits a call to the signup reward. Use account_status to check your balance.

  1. list_markets lists market codes and the data each market offers.
  2. find_vehicles matches a make, model and year. Use market_trends for a market’s weekly observations.
  3. estimate_vehicle runs the valuation. Use account_status with an authenticated client to check balances.
Agent discovery file

Buy credits

Standard paid valuations cost US$0.03. With an API key, the response shows the listing currency, the charge and your remaining balance.

Card checkout

  1. Read available packages from GET /v1/pricing. Each package shows how much you’ll pay and how much credit you’ll receive.
  2. With the payer’s approval, send POST /v1/account/checkout with package_id, your bearer key and a stable idempotency key for this top-up.
  3. Open or share checkout_url with the payer. Check status_path with a GET request and the same API key. When the top-up is funded, retry the valuation.

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.

  1. Send POST /v1/x402/top-up with a bearer key, Idempotency-Key, Max-Charge-Cents and a body such as {"package_id":"starter"}.
  2. Read the x402 v2 terms from Payment-Required when the quote returns HTTP 402. Verify the network, asset, amount and recipient before signing.
  3. Retry with Payment-Signature and the same key. For a pending settlement, keep the original signature and follow Retry-After. Continue after the order shows funded.

Read the agent integration guide

Errors and retries

400
Send an idempotency key with authenticated valuations and checkout requests.
401
Check the key in your Authorization header.
402
For insufficient_balance, use the top-up information in error.next_action. For charge_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-After when present. For trial_exhausted, error.next_action explains 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.

More ways to query Atlas

Find endpoint URLs and prices in 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.

For a paid request, send your API key in the Bearer header. Include a unique Idempotency-Key and set your spending limit with Max-Charge-Cents. For example, submit a JSON vehicle to /v1/market/comparables with Max-Charge-Cents: 8.

If you lose a response, retry with the same input and idempotency key. Atlas returns the original result without charging again. In a batch, you pay only for vehicles with enough matches. If the total would exceed your limit, Atlas declines the charge.

Explore data products