<!-- dev-portal
method: GET
title: History
path: /v1/vehicle/:vin/historical
-->

<div style="background-color:#fff3cd; border-left:6px solid #ffeeba; padding:16px; margin-bottom:24px;">
<strong>Note:</strong> The API listed on this page will be deprecated soon and will no longer receive updates or support. Please refer to the <a href="../../NEW Ford Telematics REST API V2/V2 Migration Guide"><u>Migration Guide</u></a> to learn about the new endpoints and how to transition your integration.
</div>

### GET /v1/vehicle/:vin/historical

Retrieves historical vehicle signals for a given VIN.

#### Request Parameters

| Name          | Type       | Required | Description                                                                                                                        |
|---------------|------------|----------|------------------------------------------------------------------------------------------------------------------------------------|
| start-time    | string     | Yes      | Start time of the query window. Must be before `end-time`. ISO 8601 formatted datetime string.                                     |
| end-time      | string     | Yes      | End time of the query window. Must be less than three days after `start-time`. ISO 8601 formatted datetime string.                 |
| resolution    | Enum('hr') | No       | Down samples signals to the specified resolution. (Default: null)                                                                  |
| page-size     | integer    | No       | Number of results to return. (Default: 1000, Max: 1000)                                                                            |
| page          | string     | No       | Pagination cursor. (Default: null)                                                                                                 |
| signal-filter | string     | No       | Comma seperated list of signals to include in response.  ex: position,odometer.  If null, default behavior is to show all signals. |

Note: Page size returned may not be exact (ex: a requested `page-size` of 1000, may return slightly less than 1000, despite having a next `page` cursor).

#### Response

| Name       | Type                                                   | Description                                                                          |
|------------|--------------------------------------------------------|--------------------------------------------------------------------------------------|
| vin        | string                                                 | Vehicle Identification Number.                                                       |
| fuelType   | [FuelTypeEnum](../Schemas#fueltypeenum)                | Fuel type of the vehicle. ex: Electric.                                              |                                                                                    |                                                                    |
| start_time | string                                                 | Start time of the query window. ISO 8601 formatted datetime string.                  |
| end_time   | string                                                 | End time of the query window. ISO 8601 formatted datetime string.                    |
| page_count | int                                                    | Number of signals returned.                                                          |
| next_page  | string                                                 | Cursor value to request `next-page` of results. Will be null if no next page exists. |
| page_size  | int                                                    | Requested `page-size`.                                                               |
| resolution | Enum('hr')                                             | Requested `resolution`.                                                              |
| signals    | Array[[HistoricalSignal](../Schemas#historicalsignal)] | List of historical signals. See Signal Schema for more details.                      |

##### Response Codes

| Name | Description                                                                                                                                 |
|------|---------------------------------------------------------------------------------------------------------------------------------------------|
| 200  | Ok.                                                                                                                                         |

#### Example

```bash
curl -X GET -H "Authorization: \"Bearer example\"" "https://${HOST}/vehicle-status-api/v1/vehicle/1FMEU111111111111/historical?start-time=2023-02-01T14:00:00Z&end-time=2023-02-01T15:00:00Z&page-size=3"
{
  "vin": "1FMEU111111111111",
  "fuel_type": "Gas",
  "start_time": "2023-02-01T14:00:00Z",
  "end_time": "2023-02-01T15:00:00Z",
  "page_count": 3,
  "next_page": '1234',
  "page_size": 3,
  "resolution": null,
  "signals": [
    {
      "type": "position",
      "value": {
          "latitude": 1.0,
          "longitude": 2.0
      },
      "timestamp": "2023-02-01T14:55:30Z"
    },
    {
      "type": "odometer",
      "value": 1099.15,
      "timestamp": "2023-02-01T14:55:30Z"
    },
    {
      "type": "speed",
      "value": 15.6,
      "timestamp": "2023-02-01T14:55:30Z"
    }
  ]
}
```
