Import history
Retrieve import history for a site using the Platform API.
1 min read
The import history endpoint provides metadata about the most recent imports for a site.
Import history is always scoped to a single site. Creating and deleting import history records is not supported.
Get
Use a GET request to list import history for a site.
curl https://platform-api.productsup.io/platform/v2/sites/123/importhistory{
"success": true,
"Importhistory": [
{
"id": "11111111",
"site_id": 1234,
"import_time": "2015-01-01 11:22:33",
"product_count": "18370",
"pid": "47e6b828-3210-3568-8ec3-85ed3e2d944c",
"links": [...]
},
...
]
}HTTP request
GET https://platform-api.productsup.io/platform/v2/sites/<siteId>/importhistory
| Field | Type | Description |
|---|---|---|
siteId | integer | Site to retrieve import history for |
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates request status |
Importhistory | array | List of import history records |
Import history fields
| Field | Type | Description |
|---|---|---|
id | integer | Internal ID |
site_id | integer | ID of the referenced site |
import_time | date | Date of the import |
product_count | integer | Total number of products imported |
pid | string | Process ID (UUID 32 format) |
links | array | See link fields |
Links fields and values
| Name | Description |
|---|---|
site | Link to site |
How is this guide?