> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peopledatalabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using changelogs to track record changes

> How PDL reports changes to person and company records between releases, and how to choose between the Person Changelog API, changelog files, and Delta Files.

If you store PDL person, company, or job posting records in your own database, you need a way to keep them current. Job titles change, people switch companies, job postings close, records get merged, and some people opt out. PDL changelogs tell you which records changed between two dataset releases, so you can update only those records instead of re-enriching or reloading everything.

This guide explains how PDL describes record changes, helps you choose between the three changelog options, and covers how to apply changes to your data.

> [!TIP]
>
> **The short version**
>
> * Every changelog compares two consecutive releases and labels each changed record as `added`, `updated`, `merged`, `deleted`, or `opted_out`.
> * Use the [Person Changelog API](#option-1-person-changelog-api) to check specific person IDs or fields. It's best for datasets in the tens of millions of records or fewer.
> * Use the [changelog files](#option-2-changelog-files) for company records, or for large or bulk person updates.
> * Use [Delta Files](#option-3-delta-files) if you license Person Data or receive Job Posting Data, and want each delivery to contain only what changed.
> * Apply changelogs in release order, and always act on `opted_out` records.

***

## How PDL describes record changes

PDL identifies person and company records by their `id`. Most person IDs stay the same from one release to the next (see [Persistent IDs](https://docs.peopledatalabs.com/docs/persistent-ids.md)), but records can still be added, merged, or removed. A changelog lists the IDs that changed between two releases and gives each one a status.

Each tab below explains one status and shows a sample entry for it from a person changelog file. The Person Changelog API returns the same IDs and metadata, grouped by status.

> [tab] Added
>
> A new record was added to the dataset.
>
> **What to do:** Insert the record.
>
> {changelogRecord("added", previousRelease(), LATEST_RELEASE)}
>
> Sample entry for a record that first appeared in release 36.1.

> [tab] Updated
>
> One or more fields changed, or another record was merged into this one. `fields_updated` lists the top-level fields that changed, and `contains` lists any IDs merged into the record.
>
> **What to do:** Update the record. Use `fields_updated` to skip changes to fields you don't store.
>
> `fields_updated` lists top-level fields only. If `experience.end_date` changes, the changelog reports `experience`. For company records, changes to insights fields don't count as updates. See [Company Changelog Fields](https://docs.peopledatalabs.com/docs/company-changelog-fields.md) for the fields that do count.
>
> {changelogRecord("updated", previousRelease(), LATEST_RELEASE)}
>
> Sample entry for a record that changed in release 36.1.

> [tab] Merged
>
> The record was identified as a duplicate and merged into another record. It no longer exists in the current release. `to` gives the ID it was merged into.
>
> **What to do:** Point your references at the new ID. If PDL is your only source for the record, delete the old one.
>
> {changelogRecord("merged", previousRelease(), LATEST_RELEASE)}
>
> Sample entry for a record that was merged into another record in release 36.1.

> [tab] Deleted
>
> The record was removed from the dataset.
>
> **What to do:** Delete the record.
>
> {changelogRecord("deleted", previousRelease(), LATEST_RELEASE)}
>
> Sample entry for a record that was removed in release 36.1.

> [tab] Opted out
>
> The person opted out of PDL's dataset, and the record was removed. This status only applies to person records.
>
> **What to do:** Delete or suppress the record.
>
> {changelogRecord("opted_out", previousRelease(), LATEST_RELEASE)}
>
> Sample entry for a record that was removed in release 36.1 after the person opted out.

***

### Merges appear twice

When PDL finds that two records describe the same person or company, it merges them into one. The changelog reports both sides of that merge, so the same event shows up as two entries:

Select a record, arrow, or entry to trace one side of the merge.

Release

Release 36.1

**Record A**

A duplicate of B

**Record B**

The same person or company

**Record B**

One record with the data from both

What the  → 36.1 changelog says

<ol />

***

### Changes are relative to a release

PDL publishes new dataset versions monthly and quarterly. Every changelog compares one release to the release before it:

* **Monthly changelogs** compare consecutive monthly releases, such as  to `36.1`.
* **Quarterly changelogs** compare consecutive quarterly releases, such as  to .

Select a changelog below to see which two releases it compares:

A changelog only tells you what changed between its two releases. If your data is several releases behind, [apply each changelog in order](#apply-changes-to-your-data). See [Data Updates](https://docs.peopledatalabs.com/docs/data-updates.md) for how often each product is updated.

***

## Compare your options

PDL offers three ways to get changelog data. They all report the same kinds of changes, but they differ in which datasets they cover, how you access them, and what they deliver.

***

## Option 1: Person Changelog API

> [!TIP]
>
> **Use this if** you're an API or Person Data License customer who wants to check specific person records or fields without processing a full changelog.

The [Person Changelog API](https://docs.peopledatalabs.com/docs/person-changelog-api) returns changes to person records between two consecutive releases. Every API key has free access, though each call counts toward your rate limit. See the [reference page](https://docs.peopledatalabs.com/docs/reference-person-changelog-api.md#access-and-billing) for details.

You can query the API in three ways:

* **By ID:** Send up to 60,000 person IDs in `ids` to find out which ones changed.
* **By status:** Send a `type`, such as `merged`, to get every record with that status.
* **By field:** Send `type: "updated"` with `fields_updated` to get every record where specific fields changed.

Every request needs an `origin_version` and a `current_version`. They must be consecutive releases inside the API's supported window. See [Which release versions can be queried?](https://docs.peopledatalabs.com/docs/person-changelog-api-faqs.md#which-release-versions-can-be-queried) for the current rules. If you send a version that isn't supported, the error response lists the valid versions in `error.valid_versions`.

### Example: find records with a new job title

This request finds every person whose `job_title` changed between  and `36.1`. The endpoint only accepts `POST` requests with a JSON body.

{changelogApiPython(previousRelease(), LATEST_RELEASE)}

{changelogApiCurl(previousRelease(), LATEST_RELEASE)}

> [accordion] Example response (abridged)
>
> {changelogApiResponse(previousRelease(), LATEST_RELEASE)}

Each response returns up to 1,000 records. If more records match, send the same query with the returned `scroll_token` to fetch the next page. See [`scroll_token`](https://docs.peopledatalabs.com/docs/input-parameters-person-changelog-api#scroll_token) and the [examples page](https://docs.peopledatalabs.com/docs/examples-person-changelog-api.md) for more queries, including queries by ID.

### Throughput limits

Two limits apply to every request:

* **Rate limits:** Each call counts against your [rate limit](https://docs.peopledatalabs.com/docs/reference-person-changelog-api.md#rate-limiting).
* **Output limits:** Each response returns at most 1,000 records. This limit can't be increased.

These limits make the API a good fit for datasets in the tens of millions of records or fewer. As your dataset approaches hundreds of millions of records, the API adds significant processing time. At that scale, use the changelog files or Delta Files instead. See [How big a dataset can I track?](https://docs.peopledatalabs.com/docs/person-changelog-api-faqs.md#how-big-a-dataset-can-i-track-with-the-person-changelog-api)

***

## Option 2: Changelog files

> [!TIP]
>
> **Use this if** you need to track company records, or you manage a large dataset and want every change for a release at once.

PDL publishes every change for each release as flat files in a public S3 bucket. There are two versions:

* **[Person Changelog](https://docs.peopledatalabs.com/docs/id-changelog.md):** All five statuses, including `opted_out`.
* **[Company Changelog](https://docs.peopledatalabs.com/docs/company-changelog):** `added`, `updated`, `merged`, and `deleted`. There's no company changelog API, so these files are the only way to track company changes.

The Person Changelog API is built on the person changelog files, so both return the same information. The files give you everything at once, without filtering or rate limits. They're also useful for large-scale or historical analysis of how PDL data changes over time.

Files are split into parts of about 100 MB each and organized by version and cadence:

| Dataset | Monthly | Quarterly |
| :- | :- | :- |
| Person | `s3://pdl-prod-id-changelog/{version}/monthly/` | `s3://pdl-prod-id-changelog/{version}/quarterly/` |
| Company | `s3://pdl-prod-id-changelog/{version}/company_monthly/` | `s3://pdl-prod-id-changelog/{version}/company_quarterly/` |

Each line in a file is one changed record, in the format shown in [How PDL describes record changes](#how-pdl-describes-record-changes).

The files contain IDs and metadata, not record data. To get the current version of an `added` or `updated` record, enrich it by ID with the [Person Enrichment](https://docs.peopledatalabs.com/docs/person-enrichment-api) or [Company Enrichment](https://docs.peopledatalabs.com/docs/company-enrichment-api) API, or read it from your latest Data License delivery.

***

## Option 3: Delta Files

> [!TIP]
>
> **Use this if** you license Person Data or receive Job Posting Data, and want deliveries that contain only what changed.

Delta Files are a delivery format for data license customers. Instead of your full licensed dataset, each delivery contains only the records that changed since your previous delivery, so it's smaller and faster to ingest. Delta Files are available for two datasets:

> [tab] Person Data Licenses
>
> PDL generates [Delta Files](https://docs.peopledatalabs.com/docs/delta-file-deliveries.md) for your specific data slice and delivery cadence. Each delivery is split into five folders, one per status. Added and updated people come as full records, so you don't need a separate enrichment step:
>
> | Folder | Contents |
> | :- | :- |
> | Added records | The full person record |
> | Updated records | The full, updated person record |
> | Merged IDs | The original ID and the ID it was merged into |
> | Deleted IDs | The ID of the removed record |
> | Opted out IDs | The ID of the removed record |
>
> Handle each folder the same way as the matching [status](#how-pdl-describes-record-changes).
>
> > [!WARNING]
> >
> > Before you switch to Delta Files, finish ingesting your last full license delivery. If you change your licensed data slice, you need to ingest a new full delivery before you switch back to Delta Files.
>
> Delta Files are an add-on for Person Data Licenses. They aren't available for company data or for Snowflake delivery. To add them to your license, contact your Customer Success team.

> [tab] Job Posting Data
>
> [Daily Deliveries](https://docs.peopledatalabs.com/docs/daily-deliveries-job-posting-data.md) of Job Posting Data include a delta update every day. You also get a full update each month, when PDL releases a new data version. Each daily delta update is split into four folders:
>
> | Folder | Contents |
> | :- | :- |
> | Added | New job postings, based on `first_seen` |
> | Updated | Job postings updated since the last delivery, based on `last_verified` |
> | Deactivated | Job postings that were newly deactivated, based on `deactivated_date` |
> | Deleted | Job postings removed since the previous delivery |
>
> You pull Daily Deliveries from a PDL-hosted S3 bucket. See [Daily Deliveries](https://docs.peopledatalabs.com/docs/daily-deliveries-job-posting-data.md) for the folder structure and how to get access.

***

## Apply changes to your data

Whichever option you use, the update process looks the same.

**1. Store PDL IDs**

Save the PDL `id` next to your own identifier for every record. Changelogs only work if you can look records up by PDL ID.

**2. Track your version**

Record which release your data reflects. Use the `data_version` field in API responses or your delivery version.

**3. Apply changelogs in order**

Process each consecutive changelog from your current version to the latest release. Don't skip a release.

**4. Handle each status**

Follow the suggested action for each [status](#how-pdl-describes-record-changes). Always act on `opted_out` records.

This Python example routes changelog file records by status. Replace the `my_db` calls with your own storage logic.

```python Python theme={null}
import json

def apply_changelog(path, my_db):
    with open(path) as f:
        for line in f:
            change = json.loads(line)
            pdl_id = change["id"]
            status = change["status"]
            metadata = change["additional_metadata"] or {}

            if status == "added":
                my_db.queue_refresh(pdl_id)
            elif status == "updated":
                my_db.queue_refresh(pdl_id, fields=metadata.get("fields_updated"))
            elif status == "merged":
                my_db.repoint(old_id=pdl_id, new_id=metadata["to"][0])
            elif status in ("deleted", "opted_out"):
                my_db.remove(pdl_id)
```

**5. Refresh changed records**

For `added` and `updated` records, re-enrich by ID or load the new record from your delivery. With Delta Files, the new records are already in the delivery.

For more on how PDL person IDs carry over between builds, see [Persistent IDs](https://docs.peopledatalabs.com/docs/persistent-ids.md).

***

## Summary

Changelogs let you keep stored PDL records current without reloading everything. Each one compares two consecutive releases and labels every changed record with a status that tells you what to do with it.

* Use the **Person Changelog API** to check specific person records or fields.
* Use the **changelog files** to get every person or company change for a release.
* Use **Delta Files** to receive only the changed records in your Person Data or Job Posting Data deliveries.

Whichever option you choose, store PDL IDs, track your release version, and apply each changelog in order.

***

## Related resources

> [card] [Person Changelog API](https://docs.peopledatalabs.com/docs/person-changelog-api)
>
> Endpoint reference, input parameters, and examples.

> [card] [Person Changelog](https://docs.peopledatalabs.com/docs/id-changelog.md)
>
> Person changelog file locations, statuses, and metadata.

> [card] [Company Changelog](https://docs.peopledatalabs.com/docs/company-changelog)
>
> Company changelog file locations, statuses, and metadata.

> [card] [Delta File Deliveries](https://docs.peopledatalabs.com/docs/delta-file-deliveries.md)
>
> How Delta Files work and how to get access.


## Related topics

- [FAQs - Person Changelog API](https://docs.peopledatalabs.com/docs/person-changelog-api-faqs.md)
- [Delta File Deliveries](https://docs.peopledatalabs.com/docs/delta-file-deliveries.md)
- [July 2024 Release Notes](https://docs.peopledatalabs.com/changelog/july-2024-release-announcement-v270.md)
- [Company Changelog](https://docs.peopledatalabs.com/docs/company-changelog.md)
- [Person Changelog](https://docs.peopledatalabs.com/docs/id-changelog.md)
