Get Feed Import History
curl --request GET \
--url https://api.autosnap.com/v1/ims/feeds/{feed_id}/historyimport requests
url = "https://api.autosnap.com/v1/ims/feeds/{feed_id}/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.autosnap.com/v1/ims/feeds/{feed_id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.autosnap.com/v1/ims/feeds/{feed_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.autosnap.com/v1/ims/feeds/{feed_id}/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.autosnap.com/v1/ims/feeds/{feed_id}/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v1/ims/feeds/{feed_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Feed Management
Get Feed Import History
View import history for an IMS feed configuration.
GET
/
v1
/
ims
/
feeds
/
{feed_id}
/
history
Get Feed Import History
curl --request GET \
--url https://api.autosnap.com/v1/ims/feeds/{feed_id}/historyimport requests
url = "https://api.autosnap.com/v1/ims/feeds/{feed_id}/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.autosnap.com/v1/ims/feeds/{feed_id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.autosnap.com/v1/ims/feeds/{feed_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.autosnap.com/v1/ims/feeds/{feed_id}/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.autosnap.com/v1/ims/feeds/{feed_id}/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v1/ims/feeds/{feed_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}GET /v1/ims/feeds/{feed_id}/history
Returns the import history log for a feed configuration. Each entry represents one file import cycle with counts of new, updated, and removed vehicles.
Parameters
| Name | Type | In | Required | Default | Description |
|---|---|---|---|---|---|
api_key | string | query | Yes | — | Your API key |
feed_id | integer | path | Yes | — | Feed config ID |
limit | integer | query | No | 20 | Number of history entries to return (max 100) |
Example
curl "https://api.autosnap.com/v1/ims/feeds/1/history?api_key=YOUR_API_KEY&limit=5"
Response
{
"history": [
{
"id": 12,
"batch_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"file_name": "MP14015.csv",
"file_hash": "28b38105889bb43866daedf9fa310461",
"file_size_bytes": 1415016,
"vehicle_count": 381,
"new_count": 3,
"updated_count": 378,
"removed_count": 2,
"error_count": 0,
"started_at": "2026-04-14T06:15:00+00:00",
"completed_at": "2026-04-14T06:15:12+00:00",
"status": "success"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
batch_id | string | UUID grouping all vehicles from this import |
file_name | string | CSV filename that was imported |
file_hash | string | MD5 hash of the file at import time |
file_size_bytes | integer | File size in bytes |
vehicle_count | integer | Total vehicles parsed from the file |
new_count | integer | Vehicles added (not previously in inventory) |
updated_count | integer | Vehicles updated (already existed, data changed) |
removed_count | integer | Vehicles removed (were in previous import but not in current file) |
error_count | integer | Number of rows that failed to parse |
status | string | success, partial (some errors), or failed |
Errors
| Status | Detail | Cause |
|---|---|---|
403 | Not authorized | Feed belongs to a different client |
404 | Feed config not found | No feed with this ID exists |
⌘I