---
schema_version: "1"
id: 20f8baf9d404da00e6bfe7c440a8405aa2905aced935c370d51f77079d77ffef
title: Query Batches of Archived Field History Data
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/field_audit_trail_query.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.field_audit_trail_query.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 76b512bd46f28d02c9829de8d279cda2a37c8bfff0869131c1e523a28cf8ddb5
description: You can query Field Audit Trail entries stored on the FieldHistoryArchive object.
products:
  - Salesforce Platform
  - Cross Cloud
release: "264"
---
# Query Batches of Archived Field History Data

You can query Field Audit Trail entries stored on the `FieldHistoryArchive` object.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the purchase of Salesforce Shield or Field Audit Trail licenses.</td></tr></tbody></table>

To return a large number of results, use a URI query.

```
/services/data/vXX.X/jobs/query
```

Here’s an example Post request.

```
{
    "operation": "query",
    "query": "SELECT ParentId, FieldHistoryType, Field, Id, NewValue, OldValueFROM FieldHistoryArchive WHERE FieldHistoryType = ‘Account’ AND CreatedDate > LAST_MONTH"
}
```

For more information about Bulk API queries, read [Get Results for a Query Job](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/query_get_job_results.htm) in the Bulk API 2.0 and Bulk API Developer Guide.

You can also make a CURL request.

```
curl --include --request GET \
--header "Authorization: Bearer token" \
--header "Accept: text/csv" \
https://instance.salesforce.com/services/data/vXX.X/jobs/query/750R0000000zxr8IAA/results ?maxRecords=50000
```

These examples result in a CSV file that you can examine for auditing purposes.