DocsGuidesQuickstart

Quickstart

From an empty table to a catalog that updates itself every hour, in three steps.

  1. 1

    Get a demo key

    Write to us and we send you a free key with real data.

    Get a free demo key →
  2. 2

    Read the first page

    Send the key in the x-api-key header and ask /cars for one page.

    GET/cars?per_page=1

    Code
    curl "https://motorapis.com/api/cars?per_page=1" \
      -H "x-api-key: YOUR_API_KEY"

    No key yet? Get a free demo key

  3. 3

    Page through, then sync

    Read every page once, then every hour ask only for what changed.

    cURL
    # Every hour: vehicles changed in the last 60 minutes
    curl "https://motorapis.com/api/cars?minutes=60&per_page=50&page=1" \
      -H "x-api-key: YOUR_API_KEY"
    
    # ...and lots archived (sold or removed) in the same window
    curl "https://motorapis.com/api/archived-lots?minutes=60&simple_paginate=1" \
      -H "x-api-key: YOUR_API_KEY"