@datafire/autodealerdata
v3.0.0
Published
DataFire integration for CIS Automotive API
Downloads
2
Readme
@datafire/autodealerdata
Client library for CIS Automotive API
Installation and Usage
npm install --save @datafire/autodealerdata
let autodealerdata = require('@datafire/autodealerdata').create();
.then(data => {
console.log(data);
});
Description
Actions
daysSupply_daysSupply_get
Average, median, standard deviation, population variance, and whole region average of the days of supply left on dealer lots for a given brand and region. The average, median, stdDev, and pVar fields are calculated on a dealer by dealer basis while the whole region average treats the entire region like a single dealership. The average field may differ from the whole region average, especially when dealers are out of a given model.
The available brand and region names can be retrieved from their respective endpoints.
autodealerdata.daysSupply_daysSupply_get({
"jwt": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- regionName
string
- jwt required
Output
- output GenericResponse
daysToSell_daysToSell_get
Average, median, standard deviation, population variance, and whole region average of the number of days a vehicle spends on dealer lots for a given brand and region. The average, median, stdDev, and pVar fields are calculated on a dealer by dealer basis while the whole region average treats the entire region like a single dealership. The average field may differ from the whole region average.
The available brand and region names can be retrieved from their respective endpoints.
autodealerdata.daysToSell_daysToSell_get({
"jwt": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- regionName
string
- jwt required
Output
- output GenericResponse
getBrandNames_getBrands_get
Get vehicle brand names.
These names are used as arguments for other endpoints. The names are generally not case sensitive when used with other endpoints, but it is best practice to use the names returned by this endpoint without changes.
autodealerdata.getBrandNames_getBrands_get({
"jwt": ""
}, context)
Input
- input
object
- jwt required
string
- jwt required
Output
- output BrandResp
getDealers_getDealers_get
Premium. Dealership information in a given zip code using the first 4 digits. Returns name, address, state, zipCode, and IDs. For example a call with the zip code 92701 would return dealers with zip codes in the range [92700, 92709]
autodealerdata.getDealers_getDealers_get({
"jwt": "",
"zipCode": 0
}, context)
Input
- input
object
- jwt required
string
- zipCode required
integer
- jwt required
Output
- output DealershipDataResp
getDealers_getDealersByID_get
Premium. Dealership information using the internal ID. Returns name, address, state, zipCode, and ID for a single dealer in the same format as the /getDealers endpoint. Dealer IDs are generally retrieved via the /getDealers or /getDealersByRegion endpoints.
autodealerdata.getDealers_getDealersByID_get({
"jwt": "",
"dealerID": 0
}, context)
Input
- input
object
- jwt required
string
- dealerID required
integer
- jwt required
Output
- output DealershipDataResp
getDealers_getDealersByRegion_get
Premium. Dealership information in a given region. Returns name, address, state, zipCode, and IDs. Results are paginated with up to 30 results per page.
autodealerdata.getDealers_getDealersByRegion_get({
"jwt": ""
}, context)
Input
- input
object
- jwt required
string
- regionName
string
- page
integer
- jwt required
Output
- output DealershipDataPaginatedResp
getModelNamesAll_getInactiveModels_get
Get all model names including discontinued models. Because these models are no longer built, or have very poor market performance they are not incuded in the normal getModels endpoint. Many users itterate through the model names with our new vehicle sales endpoints and waste some of their quota making self contradictory requests. This endpoint was created to aleviate the use case where someone requests information on new vehicle sales for a model that has not been sold new for a long, long, time.
These names are used as arguments for other endpoints. The names are generally not case sensitive when used with other endpoints, but it is best practice to use the names returned by this endpoint without changes.
autodealerdata.getModelNamesAll_getInactiveModels_get({
"jwt": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- jwt required
Output
- output ModelResp
getModelNames_getModels_get
Get brand model names for currently active models. This endpoint does not return model names that have been discontinued or have sold less than 10 vehicles in the last month and a half.
These names are used as arguments for other endpoints. The names are generally not case sensitive when used with other endpoints, but it is best practice to use the names returned by this endpoint without changes.
autodealerdata.getModelNames_getModels_get({
"jwt": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- jwt required
Output
- output ModelResp
getRegionBrandMarketShare_getRegionBrandMarketShare_get
Market share of a given brand in a given region by number of vehicles sold over the last 45 days.
autodealerdata.getRegionBrandMarketShare_getRegionBrandMarketShare_get({
"jwt": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- regionName
string
- jwt required
Output
- output GenericResponse
getRegionMarketShare_getRegionMarketShare_get
Market share of a all brands in a given region by number of vehicles sold over the last 45 days.
autodealerdata.getRegionMarketShare_getRegionMarketShare_get({
"jwt": ""
}, context)
Input
- input
object
- jwt required
string
- regionName
string
- jwt required
Output
- output GenericResponse
getRegions_getRegions_get
Get region names. These names are used as arguments for other endpoints. The names are generally not case sensitive when used with other endpoints, but it is best practice to use the names returned by this endpoint without changes.
autodealerdata.getRegions_getRegions_get({
"jwt": ""
}, context)
Input
- input
object
- jwt required
string
- jwt required
Output
- output RegionResp
getSubUserKeys_getSubUserKeys_get
Get a list of your issued SubUser API Keys. Includes active and revoked keys.
autodealerdata.getSubUserKeys_getSubUserKeys_get({
"apiID": "",
"apiKey": ""
}, context)
Input
- input
object
- apiID required
string
- apiKey required
string
- apiID required
Output
- output GenericResponse
makeToken_getToken_get
This is the first function you should call.
If you are accessing our API through a third party provider they will handle authenticating to our API for you and you will not need call this function or retrieve a JSON Web Token.
All other functions require the JSON Web Token (JWT) from this function to be incuded in their arguments. The value of the "token" field is the actual JWT and any other values in the returned JSON are metadata there for your convenience. Tokens are valid for a default of 24 hours (86400 seconds). If you try calling an API endpoint with a missing, invalid, or expired JWT it will return a HTTP 403 code. You would then need to call this end point to get a new token.
autodealerdata.makeToken_getToken_get({
"apiID": "",
"apiKey": ""
}, context)
Input
- input
object
- apiID required
string
- apiKey required
string
- apiID required
Output
- output JSONWebToken
makeToken_getToken_post
This is the first function you should call.
If you are accessing our API through a third party provider they will handle authenticating to our API for you and you will not need call this function or retrieve a JSON Web Token.
All other functions require the JSON Web Token (JWT) from this function to be incuded in their arguments. The value of the "token" field is the actual JWT and any other values in the returned JSON are metadata there for your convenience. Tokens are valid for a default of 24 hours (86400 seconds). If you try calling an API endpoint with a missing, invalid, or expired JWT it will return a HTTP 403 code. You would then need to call this end point to get a new token.
autodealerdata.makeToken_getToken_post({
"apiID": "",
"apiKey": ""
}, context)
Input
- input
object
- apiID required
string
- apiKey required
string
- apiID required
Output
- output JSONWebToken
getAvgListPrice_listPrice_get
Average, median, standard deviation, and population variance of the ask price of new vehicles over the last 15 days for a given brand and region.
The available brand and region names can be retrieved from their respective endpoints.
autodealerdata.getAvgListPrice_listPrice_get({
"jwt": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- regionName
string
- jwt required
Output
- output BasicModelStatsResp
getListingsByDealer_listings_get
Returns a dealer's listings over the last 45 days by dealer ID. The ID can be found by calling the /getDealers endpoint. Listing keys are: vin, askPrice, msrp, isNew, firstSeen, lastSeen, modelName, brandName. Results are paginated in chunks of up to 20 vehicles. Prices are in the dealer's local currency (generally USD).
autodealerdata.getListingsByDealer_listings_get({
"jwt": "",
"dealerID": 0
}, context)
Input
- input
object
- jwt required
string
- dealerID required
integer
- page
integer
- newCars
boolean
- jwt required
Output
- output ListingResp
getListingsByRegion_listingsByRegion_get
Returns a dealer's listings over up to the last 45 days by region. Listing keys are: vin, askPrice, msrp, isNew, firstSeen, lastSeen, modelName, brandName. Results are paginated in chunks of up to 20 vehicles. Prices are in the dealer's local currency (generally USD).
autodealerdata.getListingsByRegion_listingsByRegion_get({
"jwt": "",
"regionName": "",
"modelName": ""
}, context)
Input
- input
object
- jwt required
string
- regionName required
string
- modelName required
string
- daysBack
integer
- page
integer
- newCars
boolean
- jwt required
Output
- output ListingResp
getListingsByRegionAndDate_listingsByRegionAndDate_get
Returns listings active in a region in the given date range [startdate, endDate), or in other words dates that satisfy startDate <= X < endDate. Maximum range is 45 days Listing keys are: vin, askPrice, msrp, isNew, firstSeen, lastSeen, modelName, brandName. Results are paginated in chunks of up to 20 vehicles. Prices are in the dealer's local currency (generally USD).
autodealerdata.getListingsByRegionAndDate_listingsByRegionAndDate_get({
"jwt": "",
"regionName": "",
"modelName": "",
"startDate": "",
"endDate": ""
}, context)
Input
- input
object
- jwt required
string
- regionName required
string
- modelName required
string
- startDate required
string
- endDate required
string
- page
integer
- newCars
boolean
- jwt required
Output
- output ListingResp
makeSubUserKey_makeSubUserKey_post
This endpoint is only fully available to users with a paid plan. Users on Basic or Trial plans may only create keys valid on the "localhost" domain. This endpoint creates an API key that can be embedded in frontend applications such as web pages that allow your users to directly make API calls. The "endpoints" value is an array of strings that name the allowed endpoints that may be called using the Sub User Key. Passing a "*" value in the array will allow all endpoints that require a JWT (JSON Web Token) to be called by the Sub User Key. The keys are valid for as long as your account is valid or you revoke the Sub User Key. All API calls made by the Sub User Keys are billed to your account. Additionally you should not call this endpoint or the /revokeSubUserKey endpoint at a combined rate higher than once per second.
autodealerdata.makeSubUserKey_makeSubUserKey_post({
"apiID": "",
"apiKey": "",
"body": {}
}, context)
Input
- input
object
- apiID required
string
- apiKey required
string
- siteName
string
- body required EndpointList
- apiID required
Output
- output SubUserJSONWebToken
getModelUsedDist_modelYearDist_get
Market share of used vehicles over the last 45 days by model and year. All values are relative to vehicles of the same model. For example: a percentOfMarket value of 25, year of 2017, and modelName of Camry means that 25% of used Camrys on the market in the given region over the last 45 days were from the 2017 model year.
autodealerdata.getModelUsedDist_modelYearDist_get({
"jwt": "",
"modelName": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- modelName required
string
- brandName required
string
- regionName
string
- jwt required
Output
- output ModelYearDistResp
getDealerSales_regionDailySales_get
Get regional sales by brand and day. Most recent data is typically only 2 days old for this endpoint.
The Day field is in YYYY-MM-DD format. For example if you wanted sales data from April 5th of 2020 the day field would be '2020-04-05'
Data availability depends on region and goes back up to 2016.
autodealerdata.getDealerSales_regionDailySales_get({
"jwt": "",
"brandName": "",
"regionName": "",
"day": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- regionName required
string
- day required
string
- jwt required
Output
- output GenericResponse
getDealerSales_regionSales_get
Premium. Get regional sales by brand and month, broken down by day. Most recent data is typically only 2 days old for this endpoint.
The month field is in YYYY-MM-DD format. For example if you wanted sales data from April of 2020 the month field would be '2020-04-01'
Data availability depends on region and goes back up to 2016.
autodealerdata.getDealerSales_regionSales_get({
"jwt": "",
"brandName": "",
"regionName": "",
"month": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- regionName required
string
- month required
string
- jwt required
Output
- output GenericResponse
revokeSubUserKey_revokeSubUserKey_put
Revoke a SubUser API Key with the given UUID. This action can not be undone.
autodealerdata.revokeSubUserKey_revokeSubUserKey_put({
"apiID": "",
"apiKey": "",
"subUserKeyUUID": ""
}, context)
Input
- input
object
- apiID required
string
- apiKey required
string
- subUserKeyUUID required
string
- apiID required
Output
- output GenericResponse
getAvgSalePrice_salePrice_get
Average, median, standard deviation, and population variance of the sale price of new vehicles over the last 15 days for a given brand and region.
The available brand and region names can be retrieved from their respective endpoints.
autodealerdata.getAvgSalePrice_salePrice_get({
"jwt": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- brandName required
string
- regionName
string
- jwt required
Output
- output BasicModelStatsResp
getModelSaleBuckets_salePriceHistogram_get
Histogram of the sale price of vehicles over the last 45 days for a given model and region. Price buckets are grouped in units of $1000 The available brand, model, and region names can be retrieved from their respective endpoints.
autodealerdata.getModelSaleBuckets_salePriceHistogram_get({
"jwt": "",
"modelName": "",
"brandName": ""
}, context)
Input
- input
object
- jwt required
string
- modelName required
string
- brandName required
string
- regionName
string
- jwt required
Output
- output BucketResp
getMarket3_similarSalePrice_get
Premium. Provides the average, stdDev, and count, of the sale price and mileage of similar new and used vehicles in a given region based off the provided VIN. Optionally restricts report to vehicles of the same model year and goes back up to 120 days.
autodealerdata.getMarket3_similarSalePrice_get({
"jwt": "",
"vin": ""
}, context)
Input
- input
object
- jwt required
string
- vin required
string
- regionName
string
- daysBack
integer
- sameYear
boolean
- jwt required
Output
- output SimilarSalePriceResp
getTopModels_topModels_get
Sales ranking of different models by region over the last 45 days. The percentOfTopSales value is the percent of the top seller the model represents.
For example: a value of 80% means that model sold 8 vehicles for every 10 of the top model sold.
The other fields represent the model percent of X. The brandMarketShare field is that brand's market share of the region over the report's time interval.
autodealerdata.getTopModels_topModels_get({
"jwt": ""
}, context)
Input
- input
object
- jwt required
string
- regionName
string
- jwt required
Output
- output TopModelResp
getHistory2_vehicleHistory_get
Premium. Provides a simple report detailing a vechicle's sales history at dealerships. Data includes the name of the dealership, dates it was for sale, price, new/used condition, mileage, dealership state, and dealership zip code. The data for this endpoint is generally refreshed weekly.
autodealerdata.getHistory2_vehicleHistory_get({
"jwt": "",
"vin": ""
}, context)
Input
- input
object
- jwt required
string
- vin required
string
- jwt required
Output
- output HistoryResp
vinDecode_vinDecode_get
Decodes the provided North American vin and provides recall information if available. We require at least the first 12 out of 17 characters in the vin to attempt a decode. The vin is not case sensitive. If passEmpty (default False) is True we will also include the empty fields in the response json.
autodealerdata.vinDecode_vinDecode_get({
"jwt": "",
"vin": ""
}, context)
Input
- input
object
- jwt required
string
- vin required
string
- passEmpty
boolean
- jwt required
Output
- output GenericResponse
Definitions
BasicModelStats
- BasicModelStats
object
- average required
number
- median required
number
- name required
string
- pVariance required
number
- stdDev required
number
- average required
BasicModelStatsResp
- BasicModelStatsResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items BasicModelStats
- modelName
string
- msg
string
- regionName
string
- brandName
BrandResp
- BrandResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items
string
- items
- modelName
string
- msg
string
- regionName
string
- brandName
BucketEntry
- BucketEntry
object
- bucket required
number
- modelName required
string
- percentOfMarket required
number
- bucket required
BucketResp
- BucketResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items BucketEntry
- modelName
string
- msg
string
- regionName
string
- brandName
DealershipData
- DealershipData
object
- address required
string
- dealerName required
string
- ids required
array
- items
integer
- items
- state required
string
- zipCode required
integer
- address required
DealershipDataPaginated
- DealershipDataPaginated
object
- dealers required
array
- items DealershipData
- maxPages required
integer
- page required
integer
- dealers required
DealershipDataPaginatedResp
- DealershipDataPaginatedResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required DealershipDataPaginated
- modelName
string
- msg
string
- regionName
string
- brandName
DealershipDataResp
- DealershipDataResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items DealershipData
- modelName
string
- msg
string
- regionName
string
- brandName
EndpointList
- EndpointList
object
- endPoints
array
- items
string
- items
- endPoints
GenericResponse
- GenericResponse
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- modelName
string
- msg
string
- regionName
string
- brandName
HTTPValidationError
- HTTPValidationError
object
- detail
array
- items ValidationError
- detail
HistoryResp
- HistoryResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required VehHistoryData
- modelName
string
- msg
string
- regionName
string
- brandName
JSONWebToken
- JSONWebToken
object
- createdOn
integer
- expires
integer
- token required
string
- createdOn
Listing
- Listing
object
- askPrice required
number
- brandName required
string
- color
string
- dealerID required
integer
- firstSeen required
string
- interiorColor
string
- isNew required
boolean
- lastSeen required
string
- mileage
number
- modelName required
string
- msrp required
number
- vin required
string
- vinDecode
object
- year required
number
- askPrice required
ListingResp
- ListingResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required ListingRespPaginated
- endDate
string
- modelName
string
- msg
string
- regionName
string
- startDate
string
- brandName
ListingRespPaginated
- ListingRespPaginated
object
- listings required
array
- items Listing
- maxPages required
integer
- page required
integer
- listings required
ModelDict
- ModelDict
object
- modelName required
string
- modelName required
ModelResp
- ModelResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items ModelDict
- modelName
string
- msg
string
- regionName
string
- brandName
ModelYearDistEntry
- ModelYearDistEntry
object
- brandName required
string
- modelName required
string
- percentOfMarket required
number
- year required
integer
- brandName required
ModelYearDistResp
- ModelYearDistResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items ModelYearDistEntry
- modelName
string
- msg
string
- regionName
string
- brandName
RegionResp
- RegionResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items
string
- items
- modelName
string
- msg
string
- regionName
string
- brandName
SimilarSalePriceData
- SimilarSalePriceData
object
- daysBack required
integer
- mileCount required
integer
- milesAvg required
number
- milesStdDev required
number
- newCount required
integer
- newSaleAvg required
number
- newSaleStdDev required
number
- usedCount required
integer
- usedSaleAvg required
number
- usedSaleStdDev required
number
- daysBack required
SimilarSalePriceResp
- SimilarSalePriceResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required SimilarSalePriceData
- modelName
string
- msg
string
- regionName
string
- brandName
SubUserJSONWebToken
- SubUserJSONWebToken
object
- createdOn
integer
- domain required
string
- endPoints
array
- items
string
- items
- expires
integer
- token required
string
- uuid required
string
- createdOn
TopModelEntry
- TopModelEntry
object
- brandMarketShare required
number
- brandName required
string
- modelName required
string
- percentOfBrandSales required
number
- percentOfTopSales required
number
- brandMarketShare required
TopModelResp
- TopModelResp
object
- brandName
string
- cacheTimeLimit
integer
- condition
string
- data required
array
- items TopModelEntry
- modelName
string
- msg
string
- regionName
string
- brandName
ValidationError
- ValidationError
object
- loc required
array
- items
string
- items
- msg required
string
- type required
string
- loc required
VehHistory
- VehHistory
object
- dealerName required
string
- firstSeen required
string
- lastSeen required
string
- miles required
integer
- new required
boolean
- price required
number
- state required
string
- zip required
integer
- dealerName required
VehHistoryData
- VehHistoryData
object
- data required
array
- items VehHistory
- vin required
string
- data required