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.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /api/competitive/places/autocomplete | Search 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/dealers | List all dealerships tracked for competitive intelligence, optionally filtered by primary vs competitor status. |
| POST | /api/competitive/dealers | Register 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
Search for dealerships by name or city to obtain a place_id for onboarding into competitive tracking.
| Name | Type | Required | Description |
|---|---|---|---|
input | string (query) | Yes | Min 2 chars |
curl -sS "https://api.motorsdynamic.com/api/competitive/places/autocomplete?input=Example+Motors" \ -H "X-API-Key: YOUR_API_KEY"
{
"predictions": [
{
"place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"description": "Example Motors, Steubenville Pike, Pittsburgh, PA, USA"
}
]
}
Get place detail and OEM brand detection
Resolve a place_id into dealership address, coordinates, website domain, and detected OEM brand.
| Name | Type | Required | Description |
|---|---|---|---|
place_id | string (path) | Yes | Places identifier returned by autocomplete |
curl -sS "https://api.motorsdynamic.com/api/competitive/places/ChIJN1t_tDeuEmsRUsoyG83frY4" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
List all dealerships tracked for competitive intelligence, optionally filtered by primary vs competitor status.
| Name | Type | Required | Description |
|---|---|---|---|
is_primary | boolean (query) | No | Filter by primary (true) or competitor (false) dealers |
curl -sS "https://api.motorsdynamic.com/api/competitive/dealers?is_primary=false" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Register a primary or competitor dealership for competitive intelligence tracking.
| Name | Type | Required | Description |
|---|---|---|---|
google_place_id | string (body) | No | Places identifier for the dealership |
name | string (body) | Yes | Human-readable resource name |
address | string (body) | No | Street address of the dealership |
city | string (body) | No | City name |
state | string (body) | No | Two-letter state or province code |
postal_code | string (body) | No | ZIP or postal code |
lat | number (body) | No | Latitude coordinate |
lon | number (body) | No | Longitude coordinate |
website | string (body) | No | Dealership website URL |
clean_domain | string (body) | No | Clean hostname of the dealer website (for example, example-dealer.com) |
oem_brand | string (body) | No | Primary OEM brand sold by the dealership (for example, Honda, Kia) |
dealer_type | string (new | used | new_and_used) (body) | No | Dealership inventory focus (new, used, or new_and_used) |
is_primary | boolean (body) | No | Filter by primary (true) or competitor (false) 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}'
{
"dealer": {
"id": 21,
"name": "Example Auto Group",
"clean_domain": "example-dealer-2.com",
"oem_brand": "Honda",
"is_primary": false
}
}
Get competitive dealer detail
Retrieve details, coordinates, and inventory counts for a tracked competitive dealer by ID.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
curl -sS "https://api.motorsdynamic.com/api/competitive/dealers/21" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Remove a dealership from competitive tracking.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
curl -sS -X DELETE "https://api.motorsdynamic.com/api/competitive/dealers/21" \ -H "X-API-Key: YOUR_API_KEY"
{
"message": "Competitive dealer removed",
"id": 21
}
Competitor Groups - group configuration & auto-discovery.
Pair a primary dealer with nearby same-brand or regional competitors.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /api/competitive/groups | List all competitor groups, each pairing a primary dealer with nearby same-brand or local competitors. |
| POST | /api/competitive/groups | Create 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}/discover | Re-run geographic and brand competitor discovery for an existing competitor group. |
| POST | /api/competitive/groups/{id}/members | Attach 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
List all competitor groups, each pairing a primary dealer with nearby same-brand or local competitors.
| Name | Type | Required | Description |
|---|---|---|---|
None | - | - | No parameters required |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups" \ -H "X-API-Key: YOUR_API_KEY"
{
"groups": [
{
"id": 5,
"name": "Pittsburgh Honda Market",
"primary_dealer_id": 12,
"oem_brand": "Honda",
"radius_miles": 30,
"member_count": 6
}
]
}
Create a competitor group
Create a competitor group around a primary dealer and automatically discover nearby competitors within the specified radius.
| Name | Type | Required | Description |
|---|---|---|---|
primary_dealer_id | integer (body) | Yes | Numeric ID of your primary dealer for the competitor group |
oem_brand | string (body) | No | Primary OEM brand sold by the dealership (for example, Honda, Kia) |
radius_miles | integer (body) | No | Discovery radius in miles around the primary dealer (default 30) |
name | string (body) | No | Human-readable resource name |
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"}'
{
"group": {
"id": 5,
"name": "Pittsburgh Honda Market",
"primary_dealer_id": 12,
"oem_brand": "Honda",
"radius_miles": 30
}
}
Get competitor group detail
Retrieve a competitor group's configuration, member dealers, and aggregate inventory counts.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Re-run geographic and brand competitor discovery for an existing competitor group.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
curl -sS -X POST "https://api.motorsdynamic.com/api/competitive/groups/5/discover" \ -H "X-API-Key: YOUR_API_KEY"
{
"message": "Discovery completed",
"added_members": 2,
"total_members": 6
}
Add a dealer to a competitor group
Attach a tracked competitive dealer to a competitor group.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
dealer_id | integer (body) | Yes | Tracked competitive dealer ID to add to the group |
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}'
{
"member": { "id": 44, "group_id": 5, "dealer_id": 21 }
}
Remove a member from a competitor group
Remove a competitor dealer membership from a competitor group.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
memberId | integer (path) | Yes | Numeric group member identifier |
curl -sS -X DELETE "https://api.motorsdynamic.com/api/competitive/groups/5/members/44" \ -H "X-API-Key: YOUR_API_KEY"
{
"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.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /api/competitive/groups/{id}/map-data | Return geographic coordinates, distance from primary rooftop, and inventory counts for every dealer in the group. |
| 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. |
| 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. |
| GET | /api/competitive/groups/{id}/heatmap | Return vehicle supply counts aggregated by postal code across the competitor group. |
| GET | /api/competitive/groups/{id}/activity | Return newly added, removed, and repriced vehicles across the competitor group over the specified lookback window. |
| GET | /api/competitive/groups/{id}/timeline | Return daily historical inventory counts and average prices for each dealer in the competitor group. |
| GET | /api/competitive/groups/{id}/market-intelligence | Return your primary dealer's inventory enriched with comparable competitor listings and market price positioning. |
| 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. |
Get competitor group map data
Return geographic coordinates, distance from primary rooftop, and inventory counts for every dealer in the group.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/map-data" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Return each group member's share of active inventory, condition split (new, used, CPO), and average asking price.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
make | string (query) | No | Vehicle manufacturer name (for example, Honda, Toyota) |
model | string (query) | No | Vehicle model name (for example, Accord, Camry) |
body_type | string (query) | No | Filter by vehicle body style (for example, SUV, Sedan, Truck) |
condition | string (query) | No | Vehicle condition filter (new, used, cpo) |
window | string (query) | No | current | 30d | 90d | 365d |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/market-share?make=Honda&window=current" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Compare average, minimum, and maximum listing prices per dealer in the group for a specific make and optional model.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
make | string (query) | Yes | Vehicle manufacturer name (for example, Honda, Toyota) |
model | string (query) | No | Vehicle model name (for example, Accord, Camry) |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/pricing?make=Honda&model=CR-V" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Return vehicle supply counts aggregated by postal code across the competitor group.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/heatmap" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Return newly added, removed, and repriced vehicles across the competitor group over the specified lookback window.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
days | integer (query) | No | Number of lookback days to include |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/activity?days=7" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Return daily historical inventory counts and average prices for each dealer in the competitor group.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
days | integer (query) | No | Number of lookback days to include |
curl -sS "https://api.motorsdynamic.com/api/competitive/groups/5/timeline?days=30" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Return your primary dealer's inventory enriched with comparable competitor listings and market price positioning.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
condition | string (query) | No | Vehicle condition filter (new, used, cpo) |
limit | integer (query) | No | Maximum number of results to return per page |
offset | integer (query) | No | Zero-based pagination offset |
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"
{
"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
Return all active listings across your primary rooftop and every competitor in the group matching the specified make, model, trim, and year range.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
make | string (query) | Yes | Vehicle manufacturer name (for example, Honda, Toyota) |
model | string (query) | No | Vehicle model name (for example, Accord, Camry) |
trim | string (query) | No | Vehicle trim level (for example, EX-L, Sport) |
year_min | integer (query) | No | Minimum model year (inclusive) |
year_max | integer (query) | No | Maximum model year (inclusive) |
condition | string (query) | No | Vehicle condition filter (new, used, cpo) |
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"
{
"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.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /api/competitive/alerts | List competitive intelligence alerts for price cuts, inventory spikes, and new competitors. |
| PUT | /api/competitive/alerts/{id}/read | Mark a single competitive intelligence alert as read. |
| PUT | /api/competitive/alerts/read-all | Mark all unread competitive alerts as read, optionally scoped to one competitor group. |
| GET | /api/competitive/alerts/preferences | Retrieve current email digest and threshold settings for competitive alerts. |
| PUT | /api/competitive/alerts/preferences | Update email notification settings and numeric thresholds for competitive alerts. |
List competitive alerts
List competitive intelligence alerts for price cuts, inventory spikes, and new competitors.
| Name | Type | Required | Description |
|---|---|---|---|
group_id | integer (query) | No | Filter alerts by competitor group ID |
unread | boolean (query) | No | When true, return only unread alerts |
limit | integer (query) | No | Maximum number of results to return per page |
curl -sS "https://api.motorsdynamic.com/api/competitive/alerts?group_id=5&unread=true&limit=20" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Mark a single competitive intelligence alert as read.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer (path) | Yes | Numeric resource identifier |
curl -sS -X PUT "https://api.motorsdynamic.com/api/competitive/alerts/310/read" \ -H "X-API-Key: YOUR_API_KEY"
{
"id": 310,
"is_read": true
}
Mark all competitive alerts read
Mark all unread competitive alerts as read, optionally scoped to one competitor group.
| Name | Type | Required | Description |
|---|---|---|---|
group_id | integer (body) | No | Optional competitor group ID to scope the read-all operation |
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}'
{
"updated": 8
}
Get competitive alert preferences
Retrieve current email digest and threshold settings for competitive alerts.
| Name | Type | Required | Description |
|---|---|---|---|
None | - | - | No parameters required |
curl -sS "https://api.motorsdynamic.com/api/competitive/alerts/preferences" \ -H "X-API-Key: YOUR_API_KEY"
{
"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
Update email notification settings and numeric thresholds for competitive alerts.
| Name | Type | Required | Description |
|---|---|---|---|
email_enabled | boolean (body) | No | Enable email delivery for competitive alerts |
new_competitor_alert | boolean (body) | No | Alert when a new competitor is detected in the market radius |
inventory_change_alert | boolean (body) | No | Alert when competitor inventory volume changes beyond threshold |
inventory_change_threshold | integer (body) | No | Percentage change threshold for inventory volume alerts |
price_change_alert | boolean (body) | No | Alert when competitor vehicle prices move beyond threshold |
price_change_threshold | number (body) | No | Dollar or percentage threshold for price change alerts |
daily_digest | boolean (body) | No | Send a daily summary digest email |
weekly_digest | boolean (body) | No | Send a weekly summary digest email |
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}'
{
"email_enabled": true,
"price_change_alert": true,
"price_change_threshold": 500,
"daily_digest": true
}