← Back to API Reference Hub

Competitive Intelligence API Reference

Discover local competitors, organize competitor groups around a primary rooftop, compare market share and make/model pricing, generate ZIP heatmaps, and subscribe to competitive price and inventory alerts.

Discovery & Tracked Dealers - places lookup & competitor dealer records.

Search dealerships by name or location, detect OEM brands, and manage tracked competitive dealers.

MethodEndpointPurpose
GET/api/competitive/places/autocompleteSearch for dealerships by name or city to obtain a place_id for onboarding into competitive tracking.
GET/api/competitive/places/{place_id}Resolve a place_id into dealership address, coordinates, website domain, and detected OEM brand.
GET/api/competitive/dealersList all dealerships tracked for competitive intelligence, optionally filtered by primary vs competitor status.
POST/api/competitive/dealersRegister a primary or competitor dealership for competitive intelligence tracking.
GET/api/competitive/dealers/{id}Retrieve details, coordinates, and inventory counts for a tracked competitive dealer by ID.
DELETE/api/competitive/dealers/{id}Remove a dealership from competitive tracking.

Autocomplete dealership places

GET/api/competitive/places/autocomplete

Search for dealerships by name or city to obtain a place_id for onboarding into competitive tracking.

NameTypeRequiredDescription
inputstring (query)YesMin 2 chars
CURLGET /api/competitive/places/autocomplete
curl -sS "https://api.motorsdynamic.com/api/competitive/places/autocomplete?input=Example+Motors" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "predictions": [
    {
      "place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4",
      "description": "Example Motors, Steubenville Pike, Pittsburgh, PA, USA"
    }
  ]
}

Get place detail and OEM brand detection

GET/api/competitive/places/{place_id}

Resolve a place_id into dealership address, coordinates, website domain, and detected OEM brand.

NameTypeRequiredDescription
place_idstring (path)YesPlaces identifier returned by autocomplete
CURLGET /api/competitive/places/{place_id}
curl -sS "https://api.motorsdynamic.com/api/competitive/places/ChIJN1t_tDeuEmsRUsoyG83frY4" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4",
  "name": "Example Motors",
  "address": "5200 Steubenville Pike",
  "city": "Pittsburgh",
  "state": "PA",
  "postal_code": "15205",
  "lat": 40.4406,
  "lon": -80.0953,
  "website": "https://www.example-dealer.com",
  "clean_domain": "example-dealer.com",
  "oem_brand": "Honda"
}

List tracked competitive dealers

GET/api/competitive/dealers

List all dealerships tracked for competitive intelligence, optionally filtered by primary vs competitor status.

NameTypeRequiredDescription
is_primaryboolean (query)NoFilter by primary (true) or competitor (false) dealers
CURLGET /api/competitive/dealers
curl -sS "https://api.motorsdynamic.com/api/competitive/dealers?is_primary=false" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "dealers": [
    {
      "id": 21,
      "name": "Example Auto Group",
      "clean_domain": "example-dealer-2.com",
      "oem_brand": "Honda",
      "city": "Pittsburgh",
      "state": "PA",
      "is_primary": false,
      "active_vehicles": 348
    }
  ]
}

Add a tracked competitive dealer

POST/api/competitive/dealers

Register a primary or competitor dealership for competitive intelligence tracking.

NameTypeRequiredDescription
google_place_idstring (body)NoPlaces identifier for the dealership
namestring (body)YesHuman-readable resource name
addressstring (body)NoStreet address of the dealership
citystring (body)NoCity name
statestring (body)NoTwo-letter state or province code
postal_codestring (body)NoZIP or postal code
latnumber (body)NoLatitude coordinate
lonnumber (body)NoLongitude coordinate
websitestring (body)NoDealership website URL
clean_domainstring (body)NoClean hostname of the dealer website (for example, example-dealer.com)
oem_brandstring (body)NoPrimary OEM brand sold by the dealership (for example, Honda, Kia)
dealer_typestring (new | used | new_and_used) (body)NoDealership inventory focus (new, used, or new_and_used)
is_primaryboolean (body)NoFilter by primary (true) or competitor (false) dealers
CURLPOST /api/competitive/dealers
curl -sS -X POST "https://api.motorsdynamic.com/api/competitive/dealers" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Example Auto Group", "website": "https://www.example-dealer-2.com", "clean_domain": "example-dealer-2.com", "oem_brand": "Honda", "dealer_type": "new_and_used", "city": "Pittsburgh", "state": "PA", "postal_code": "15205", "is_primary": false}'
RESPONSE201 Created
{
  "dealer": {
    "id": 21,
    "name": "Example Auto Group",
    "clean_domain": "example-dealer-2.com",
    "oem_brand": "Honda",
    "is_primary": false
  }
}

Get competitive dealer detail

GET/api/competitive/dealers/{id}

Retrieve details, coordinates, and inventory counts for a tracked competitive dealer by ID.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLGET /api/competitive/dealers/{id}
curl -sS "https://api.motorsdynamic.com/api/competitive/dealers/21" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "dealer": {
    "id": 21,
    "name": "Example Auto Group",
    "clean_domain": "example-dealer-2.com",
    "oem_brand": "Honda",
    "dealer_type": "new_and_used",
    "active_vehicles": 348
  }
}

Remove a tracked competitive dealer

DELETE/api/competitive/dealers/{id}

Remove a dealership from competitive tracking.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLDELETE /api/competitive/dealers/{id}
curl -sS -X DELETE "https://api.motorsdynamic.com/api/competitive/dealers/21" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "message": "Competitive dealer removed",
  "id": 21
}

Competitor Groups - group configuration & auto-discovery.

Pair a primary dealer with nearby same-brand or regional competitors.

MethodEndpointPurpose
GET/api/competitive/groupsList all competitor groups, each pairing a primary dealer with nearby same-brand or local competitors.
POST/api/competitive/groupsCreate a competitor group around a primary dealer and automatically discover nearby competitors within the specified radius.
GET/api/competitive/groups/{id}Retrieve a competitor group's configuration, member dealers, and aggregate inventory counts.
POST/api/competitive/groups/{id}/discoverRe-run geographic and brand competitor discovery for an existing competitor group.
POST/api/competitive/groups/{id}/membersAttach a tracked competitive dealer to a competitor group.
DELETE/api/competitive/groups/{id}/members/{memberId}Remove a competitor dealer membership from a competitor group.

List competitor groups

GET/api/competitive/groups

List all competitor groups, each pairing a primary dealer with nearby same-brand or local competitors.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/competitive/groups
curl -sS "https://api.motorsdynamic.com/api/competitive/groups" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "groups": [
    {
      "id": 5,
      "name": "Pittsburgh Honda Market",
      "primary_dealer_id": 12,
      "oem_brand": "Honda",
      "radius_miles": 30,
      "member_count": 6
    }
  ]
}

Create a competitor group

POST/api/competitive/groups

Create a competitor group around a primary dealer and automatically discover nearby competitors within the specified radius.

NameTypeRequiredDescription
primary_dealer_idinteger (body)YesNumeric ID of your primary dealer for the competitor group
oem_brandstring (body)NoPrimary OEM brand sold by the dealership (for example, Honda, Kia)
radius_milesinteger (body)NoDiscovery radius in miles around the primary dealer (default 30)
namestring (body)NoHuman-readable resource name
CURLPOST /api/competitive/groups
curl -sS -X POST "https://api.motorsdynamic.com/api/competitive/groups" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"primary_dealer_id": 12, "oem_brand": "Honda", "radius_miles": 30, "name": "Pittsburgh Honda Market"}'
RESPONSE201 Created
{
  "group": {
    "id": 5,
    "name": "Pittsburgh Honda Market",
    "primary_dealer_id": 12,
    "oem_brand": "Honda",
    "radius_miles": 30
  }
}

Get competitor group detail

GET/api/competitive/groups/{id}

Retrieve a competitor group's configuration, member dealers, and aggregate inventory counts.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLGET /api/competitive/groups/{id}
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "group": {
    "id": 5,
    "name": "Pittsburgh Honda Market",
    "primary_dealer_id": 12,
    "oem_brand": "Honda",
    "radius_miles": 30,
    "members": [
      { "member_id": 44, "dealer_id": 21, "name": "Example Auto Group", "distance_miles": 8.4, "active_vehicles": 348 }
    ]
  }
}

Re-run competitor auto-discovery

POST/api/competitive/groups/{id}/discover

Re-run geographic and brand competitor discovery for an existing competitor group.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLPOST /api/competitive/groups/{id}/discover
curl -sS -X POST "https://api.motorsdynamic.com/api/competitive/groups/5/discover" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "message": "Discovery completed",
  "added_members": 2,
  "total_members": 6
}

Add a dealer to a competitor group

POST/api/competitive/groups/{id}/members

Attach a tracked competitive dealer to a competitor group.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
dealer_idinteger (body)YesTracked competitive dealer ID to add to the group
CURLPOST /api/competitive/groups/{id}/members
curl -sS -X POST "https://api.motorsdynamic.com/api/competitive/groups/5/members" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dealer_id": 21}'
RESPONSE200 OK
{
  "member": { "id": 44, "group_id": 5, "dealer_id": 21 }
}

Remove a member from a competitor group

DELETE/api/competitive/groups/{id}/members/{memberId}

Remove a competitor dealer membership from a competitor group.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
memberIdinteger (path)YesNumeric group member identifier
CURLDELETE /api/competitive/groups/{id}/members/{memberId}
curl -sS -X DELETE "https://api.motorsdynamic.com/api/competitive/groups/5/members/44" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "message": "Member removed",
  "memberId": 44
}

Market Share, Pricing & Timelines - comparative analytics across a competitor group.

Query map overlays, market share splits, make/model price ranges, ZIP heatmaps, recent activity, daily inventory timelines, and matched competitor listings.

MethodEndpointPurpose
GET/api/competitive/groups/{id}/map-dataReturn geographic coordinates, distance from primary rooftop, and inventory counts for every dealer in the group.
GET/api/competitive/groups/{id}/market-shareReturn each group member's share of active inventory, condition split (new, used, CPO), and average asking price.
GET/api/competitive/groups/{id}/pricingCompare average, minimum, and maximum listing prices per dealer in the group for a specific make and optional model.
GET/api/competitive/groups/{id}/heatmapReturn vehicle supply counts aggregated by postal code across the competitor group.
GET/api/competitive/groups/{id}/activityReturn newly added, removed, and repriced vehicles across the competitor group over the specified lookback window.
GET/api/competitive/groups/{id}/timelineReturn daily historical inventory counts and average prices for each dealer in the competitor group.
GET/api/competitive/groups/{id}/market-intelligenceReturn your primary dealer's inventory enriched with comparable competitor listings and market price positioning.
GET/api/competitive/groups/{id}/listingsReturn all active listings across your primary rooftop and every competitor in the group matching the specified make, model, trim, and year range.

Get competitor group map data

GET/api/competitive/groups/{id}/map-data

Return geographic coordinates, distance from primary rooftop, and inventory counts for every dealer in the group.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLGET /api/competitive/groups/{id}/map-data
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/map-data" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "dealers": [
    {
      "dealer_id": 12,
      "name": "Example Motors",
      "is_primary": true,
      "lat": 40.4406,
      "lon": -80.0953,
      "active_vehicles": 412
    },
    {
      "dealer_id": 21,
      "name": "Example Auto Group",
      "is_primary": false,
      "lat": 40.4812,
      "lon": -79.9610,
      "active_vehicles": 348
    }
  ]
}

Get per-dealer market share

GET/api/competitive/groups/{id}/market-share

Return each group member's share of active inventory, condition split (new, used, CPO), and average asking price.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
makestring (query)NoVehicle manufacturer name (for example, Honda, Toyota)
modelstring (query)NoVehicle model name (for example, Accord, Camry)
body_typestring (query)NoFilter by vehicle body style (for example, SUV, Sedan, Truck)
conditionstring (query)NoVehicle condition filter (new, used, cpo)
windowstring (query)Nocurrent | 30d | 90d | 365d
CURLGET /api/competitive/groups/{id}/market-share
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/market-share?make=Honda&window=current" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "total_vehicles": 1840,
  "dealers": [
    {
      "dealer_id": 12,
      "name": "Example Motors",
      "is_primary": true,
      "vehicles": 412,
      "market_share": 0.2239,
      "new_count": 190,
      "used_count": 182,
      "cpo_count": 40,
      "avg_price": 31240
    }
  ]
}

Get price comparison by make and model

GET/api/competitive/groups/{id}/pricing

Compare average, minimum, and maximum listing prices per dealer in the group for a specific make and optional model.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
makestring (query)YesVehicle manufacturer name (for example, Honda, Toyota)
modelstring (query)NoVehicle model name (for example, Accord, Camry)
CURLGET /api/competitive/groups/{id}/pricing
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/pricing?make=Honda&model=CR-V" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "make": "Honda",
  "model": "CR-V",
  "dealers": [
    {
      "dealer_id": 12,
      "name": "Example Motors",
      "count": 48,
      "min_price": 29850,
      "avg_price": 34120,
      "max_price": 41200
    }
  ]
}

Get inventory heatmap by ZIP code

GET/api/competitive/groups/{id}/heatmap

Return vehicle supply counts aggregated by postal code across the competitor group.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLGET /api/competitive/groups/{id}/heatmap
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/heatmap" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "zips": [
    { "postal_code": "15205", "lat": 40.4406, "lon": -80.0953, "vehicle_count": 412, "dealer_count": 1 },
    { "postal_code": "15237", "lat": 40.5428, "lon": -80.0156, "vehicle_count": 620, "dealer_count": 2 }
  ]
}

Get group inventory activity

GET/api/competitive/groups/{id}/activity

Return newly added, removed, and repriced vehicles across the competitor group over the specified lookback window.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
daysinteger (query)NoNumber of lookback days to include
CURLGET /api/competitive/groups/{id}/activity
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/activity?days=7" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "days": 7,
  "summary": { "added": 94, "removed": 81, "price_changed": 63 },
  "by_dealer": [
    { "dealer_id": 12, "name": "Example Motors", "added": 19, "removed": 16, "price_changed": 11 }
  ]
}

Get daily inventory timeline

GET/api/competitive/groups/{id}/timeline

Return daily historical inventory counts and average prices for each dealer in the competitor group.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
daysinteger (query)NoNumber of lookback days to include
CURLGET /api/competitive/groups/{id}/timeline
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/timeline?days=30" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "days": 30,
  "series": [
    {
      "date": "2026-10-30",
      "dealers": [
        { "dealer_id": 12, "vehicle_count": 412, "avg_price": 31240 },
        { "dealer_id": 21, "vehicle_count": 348, "avg_price": 31890 }
      ]
    }
  ]
}

Get primary inventory with competitor market matches

GET/api/competitive/groups/{id}/market-intelligence

Return your primary dealer's inventory enriched with comparable competitor listings and market price positioning.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
conditionstring (query)NoVehicle condition filter (new, used, cpo)
limitinteger (query)NoMaximum number of results to return per page
offsetinteger (query)NoZero-based pagination offset
CURLGET /api/competitive/groups/{id}/market-intelligence
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/market-intelligence?condition=used&limit=25&offset=0" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "vehicles": [
    {
      "vin": "1HGCV1F34LA123456",
      "year": 2023,
      "make": "Honda",
      "model": "Accord",
      "price": 28995,
      "market_median": 29850,
      "position": "below_market",
      "competitor_matches": 6
    }
  ],
  "total": 182,
  "limit": 25,
  "offset": 0
}

Get flattened group listings for a make and model

GET/api/competitive/groups/{id}/listings

Return all active listings across your primary rooftop and every competitor in the group matching the specified make, model, trim, and year range.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
makestring (query)YesVehicle manufacturer name (for example, Honda, Toyota)
modelstring (query)NoVehicle model name (for example, Accord, Camry)
trimstring (query)NoVehicle trim level (for example, EX-L, Sport)
year_mininteger (query)NoMinimum model year (inclusive)
year_maxinteger (query)NoMaximum model year (inclusive)
conditionstring (query)NoVehicle condition filter (new, used, cpo)
CURLGET /api/competitive/groups/{id}/listings
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/listings?make=Honda&model=Accord&year_min=2022" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "listings": [
    {
      "vin": "1HGCV1F34LA123456",
      "dealer_id": 12,
      "dealer_name": "Example Motors",
      "is_primary": true,
      "year": 2023,
      "make": "Honda",
      "model": "Accord",
      "trim": "EX-L",
      "price": 28995,
      "mileage": 18420
    }
  ]
}

Competitive Alerts - notifications & threshold preferences.

Read and configure alerts for competitor price cuts, inventory volume shifts, and newly detected competitors.

MethodEndpointPurpose
GET/api/competitive/alertsList competitive intelligence alerts for price cuts, inventory spikes, and new competitors.
PUT/api/competitive/alerts/{id}/readMark a single competitive intelligence alert as read.
PUT/api/competitive/alerts/read-allMark all unread competitive alerts as read, optionally scoped to one competitor group.
GET/api/competitive/alerts/preferencesRetrieve current email digest and threshold settings for competitive alerts.
PUT/api/competitive/alerts/preferencesUpdate email notification settings and numeric thresholds for competitive alerts.

List competitive alerts

GET/api/competitive/alerts

List competitive intelligence alerts for price cuts, inventory spikes, and new competitors.

NameTypeRequiredDescription
group_idinteger (query)NoFilter alerts by competitor group ID
unreadboolean (query)NoWhen true, return only unread alerts
limitinteger (query)NoMaximum number of results to return per page
CURLGET /api/competitive/alerts
curl -sS "https://api.motorsdynamic.com/api/competitive/alerts?group_id=5&unread=true&limit=20" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "alerts": [
    {
      "id": 310,
      "group_id": 5,
      "alert_type": "price_change",
      "title": "Example Auto Group reduced 12 Honda CR-V listings by an average of $650",
      "is_read": false,
      "created_at": "2026-10-30T07:00:00.000Z"
    }
  ]
}

Mark a competitive alert read

PUT/api/competitive/alerts/{id}/read

Mark a single competitive intelligence alert as read.

NameTypeRequiredDescription
idinteger (path)YesNumeric resource identifier
CURLPUT /api/competitive/alerts/{id}/read
curl -sS -X PUT "https://api.motorsdynamic.com/api/competitive/alerts/310/read" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "id": 310,
  "is_read": true
}

Mark all competitive alerts read

PUT/api/competitive/alerts/read-all

Mark all unread competitive alerts as read, optionally scoped to one competitor group.

NameTypeRequiredDescription
group_idinteger (body)NoOptional competitor group ID to scope the read-all operation
CURLPUT /api/competitive/alerts/read-all
curl -sS -X PUT "https://api.motorsdynamic.com/api/competitive/alerts/read-all" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"group_id": 5}'
RESPONSE200 OK
{
  "updated": 8
}

Get competitive alert preferences

GET/api/competitive/alerts/preferences

Retrieve current email digest and threshold settings for competitive alerts.

NameTypeRequiredDescription
None--No parameters required
CURLGET /api/competitive/alerts/preferences
curl -sS "https://api.motorsdynamic.com/api/competitive/alerts/preferences" \
  -H "X-API-Key: YOUR_API_KEY"
RESPONSE200 OK
{
  "email_enabled": true,
  "new_competitor_alert": true,
  "inventory_change_alert": true,
  "inventory_change_threshold": 10,
  "price_change_alert": true,
  "price_change_threshold": 500,
  "daily_digest": true,
  "weekly_digest": false
}

Update competitive alert preferences

PUT/api/competitive/alerts/preferences

Update email notification settings and numeric thresholds for competitive alerts.

NameTypeRequiredDescription
email_enabledboolean (body)NoEnable email delivery for competitive alerts
new_competitor_alertboolean (body)NoAlert when a new competitor is detected in the market radius
inventory_change_alertboolean (body)NoAlert when competitor inventory volume changes beyond threshold
inventory_change_thresholdinteger (body)NoPercentage change threshold for inventory volume alerts
price_change_alertboolean (body)NoAlert when competitor vehicle prices move beyond threshold
price_change_thresholdnumber (body)NoDollar or percentage threshold for price change alerts
daily_digestboolean (body)NoSend a daily summary digest email
weekly_digestboolean (body)NoSend a weekly summary digest email
CURLPUT /api/competitive/alerts/preferences
curl -sS -X PUT "https://api.motorsdynamic.com/api/competitive/alerts/preferences" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email_enabled": true, "price_change_alert": true, "price_change_threshold": 500, "daily_digest": true}'
RESPONSE200 OK
{
  "email_enabled": true,
  "price_change_alert": true,
  "price_change_threshold": 500,
  "daily_digest": true
}