# FTC Hart-Scott-Rodino (HSR) Early Termination M\&A Scraper (`groundplanes/ftc-hsr-early-termination-ma-scraper`) Actor

Scrape official FTC Hart-Scott-Rodino (HSR) early termination notices signaling antitrust merger clearance. Features keyless Legal Library parsing, optional api.data.gov enhancement, and cross-party deduplication.

- **URL**: https://apify.com/groundplanes/ftc-hsr-early-termination-ma-scraper.md
- **Developed by:** [Groundplane Labs](https://apify.com/groundplanes) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 early termination notices

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## FTC Hart-Scott-Rodino (HSR) Early Termination M\&A Clearance Scraper

Extract official Federal Trade Commission (FTC) and Department of Justice (DOJ) Hart-Scott-Rodino (HSR) early termination notices. Track antitrust merger clearance signals, corporate acquisitions, private equity buyouts, and joint venture filings. The FTC publishes new early termination notices almost every weekday; this is public-record data, not a real-time feed.

### What Data Does It Collect?

For each published HSR early termination notice, the scraper captures structured deal clearance intelligence:

- **Filing Identifiers**: 8-digit HSR premerger filing transaction number (e.g. `20270072`), internal record UUID (when queried via API), and direct FTC Legal Library notice link.
- **Grant Timing**: Official early termination clearance grant date (`earlyTerminationGrantDate`) formatted as `YYYY-MM-DD`.
- **Acquiring Party**: Ultimate parent entity (UPE) or acquiring corporate buyer (`acquiringParty`).
- **Acquired Party & Target Entities**: Target seller / UPE (`acquiredParty`) and list of specific operating entities, subsidiaries, or acquired businesses (`acquiredEntities`; the list is empty when the notice names no separate entities).
- **Notice Title**: Official publication title published by the FTC Premerger Notification Office (PNO).

Parties are taken from the structured fields of the Legal Library notice or the API record, never primarily from the title string. A title parse runs only as a cross-check, and a mismatch is flagged in the run log.

### Dual-Source Architecture

This scraper features a unified extraction engine supporting two official federal data sources:

1. **Keyless FTC Legal Library (Primary)**: Scrapes the public FTC Legal Library web portal (`ftc.gov/legal-library/browse/early-termination-notices`). Runs out of the box with zero credentials or API keys required. The Legal Library path alone delivers the full product.
2. **api.data.gov / api.ftc.gov JSON:API (Enhancement)**: When a buyer supplies an optional personal `dataGovApiKey`, the scraper queries the official federal JSON:API endpoint alongside the Legal Library, providing record UUIDs. The key is a secret-typed input, is sent only in the `X-Api-Key` header (never in a URL), and is never written to the run log or the output: error messages are built from source names, HTTP status codes, and fixed text only, and never quote a response body, because an error page can echo request details back. A supplied key is used only for that buyer's runs, never pooled. There is no demo-key fallback: without a key the actor runs on the Legal Library path alone.
3. **Automated Cross-Path Deduplication**: All notices are strictly deduplicated by canonical HSR transaction number (`transactionNumber`), so the delivered count equals the number of unique transaction numbers. When both paths run, rows are held until the API walk finishes, so a notice first found in the Legal Library still gains the `recordUuid` from its API record before the row is delivered.

If the API enhancement path fails while the Legal Library path succeeds, the run ends PARTIAL and says so; the Legal Library rows are still delivered.

### Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `dateFrom` | String | `2026-10-01` | Earliest clearance grant date to include (`YYYY-MM-DD`). |
| `companyOrPartyKeyword` | String | `""` | Case-insensitive keyword filter for acquiring party, target entity, or notice title. |
| `useLegalLibraryFallback` | Boolean | `true` | Scrapes notices from the keyless public FTC Legal Library. The Legal Library is the primary path; the name is retained from the draft spec. |
| `dataGovApiKey` | String (Secret) | `""` | Optional personal api.data.gov API key. Runs keyless on the Legal Library when left blank. |
| `maxItems` | Integer | `500` | Maximum number of early termination notices to return. |

### Labeled Canary Input

```json
{
  "dateFrom": "2026-10-01",
  "companyOrPartyKeyword": "",
  "useLegalLibraryFallback": true,
  "dataGovApiKey": "",
  "maxItems": 10
}
```

Expected: up to 10 recent notices with grant dates on or after 2026-10-01, ending PARTIAL only because of the maxItems limit (a user limit, so no Issues line is appended).

### Sample Output

```json
{
  "transactionNumber": "20270008",
  "earlyTerminationGrantDate": "2026-10-27",
  "title": "20270008: Canal Grande Fund, LP; Heat Media, Inc.",
  "acquiringParty": "Canal Grande Fund, LP",
  "acquiredParty": "Heat Media, Inc.",
  "acquiredEntities": [
    "Heat Media, Inc."
  ],
  "recordUuid": null,
  "ftcNoticeUrl": "https://www.ftc.gov/legal-library/browse/early-termination-notices/20270008"
}
```

### Use Cases

- **Merger Arbitrage & Hedge Funds**: Monitor first-in-line public signals of regulatory deal clearance to execute event-driven arbitrage strategies.
- **M\&A Advisory & Investment Banking**: Track peer transactions, private equity sponsor acquisitions, and deal closure velocity across sectors.
- **Antitrust Law & Regulatory Counsel**: Analyze merger review trends, FTC/DOJ enforcement posture, and clearance timing benchmarks under Clayton Act Section 7A.
- **Corporate Development & Post-Merger Integration**: Identify newly cleared transactions to initiate supplier vendor transitions and integration consulting engagements.

### Troubleshooting

- **Zero matches**: A `Complete: 0 ... matched your filters` status means the source was scanned and nothing matched (for example, a narrow keyword). Widen the keyword or move `dateFrom` earlier.
- **PARTIAL with "possible source or calendar issue"**: No notices were scanned in the requested window. Some weekdays legitimately have no grants, and a future or very recent `dateFrom` can produce this; it can also mean the source changed shape. If this keeps happening, please open an issue on this actor's Issues tab and we'll fix it fast.
- **PARTIAL citing maxItems or the charge limit**: A user limit stopped the run. Raise `maxItems` or the run charge limit to get more rows. User-limit PARTIALs carry no Issues line.
- **PARTIAL citing the api.ftc.gov enhancement path**: The Legal Library results were delivered but the API path failed (for example, an invalid or throttled key). Check the key, or leave it blank to run keyless.
- **PARTIAL citing skipped notices**: One or more matched notices could not be parsed and were withheld, so the run does not claim Complete. The status states how many were skipped.
- **Failed run naming a missing core field**: The FTC changed the notice layout. That is a source-drift failure we want reported on the Issues tab.

### Pricing

Tiered pay-per-event: $3 per 1K rows at the free tier, stepping down by subscription tier, run start $0.00005, Apify margin 20%.

### Changelog

- **0.1.2 (2026-11-02)**: Red Team fix round. Error messages no longer quote any response body (status codes and fixed text only), so a key echoed by a gateway or WAF error page cannot reach the run log or status. API records are validated on their raw JSON types before any coercion: a party, date, or entity value of the wrong type is counted unparseable, never stringified into a row. Runs that skip any matched notice end PARTIAL naming the skipped count, and an API page that fails validation end to end records a PARTIAL reason (or fails an API-only run) regardless of Legal Library volume. acquiredEntities extraction is scoped to each field's own DOM container, so split blocks are read in full and trailing unrelated items are never collected. Legal Library transaction numbers are extracted as loose tokens and judged by the canonicalizer, which also handles zero-padded and float-typed numbers and rejects letter-wrapped values. Cross-path dedupe now merges the API recordUuid onto the delivered row. An API run that reaches maxItems exactly on the source's final page is Complete, not a user-limit PARTIAL.
- **0.1.3 (2026-11-02)**: Red Team fix round 2. The maxItems PARTIAL reason is now recorded whenever the number of unique matched notices collected exceeds the number delivered, regardless of how a walk ended: a short final page no longer reads as proof that the collected notices fit under the cap (the buffered push truncates to the cap, and any notices above it are withheld matches). Reaching the cap exactly, with every collected notice delivered, still ends Complete. Transaction-number canonicalization now composes its two zero-padding removals, so a number padded both before the year and inside the sequence (for example `02027-00072`) maps to the same dedupe key as the plainly written number instead of being skipped as unparseable.
- **0.1.1 (2026-11-02)**: CEO review fixes. Retry standard unified (6 tries, jittered 2-32 s backoff, 120 s cap, Retry-After honored) on both source paths; API key moved to the X-Api-Key header so it can never appear in a logged URL; canonical transaction-number deduplication across separator and type drift; core-column sentinel naming missing fields; per-row validation; complete acquiredEntities extraction; API-path failures and pagination-cap stops now report PARTIAL honestly; empty scanned windows report PARTIAL with a possible source or calendar issue; input validation enforced.
- **0.1 (2026-11-01)**: Initial build. Keyless Legal Library primary path, optional api.ftc.gov enhancement, cross-path deduplication.

# Actor input Schema

## `companyOrPartyKeyword` (type: `string`):

Filter by party, target, or entity name keyword (case-insensitive).

## `dataGovApiKey` (type: `string`):

Optional personal api.data.gov API key to query the JSON:API endpoint alongside the Legal Library.

## `dateFrom` (type: `string`):

Earliest HSR early termination grant date to include (e.g. 2026-10-01).

## `maxItems` (type: `integer`):

Maximum number of early termination notices to return.

## `useLegalLibraryFallback` (type: `boolean`):

Scrape notices from the keyless public FTC Legal Library web portal.

## Actor input object example

```json
{
  "companyOrPartyKeyword": "",
  "dateFrom": "2026-10-01",
  "maxItems": 500,
  "useLegalLibraryFallback": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("groundplanes/ftc-hsr-early-termination-ma-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("groundplanes/ftc-hsr-early-termination-ma-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call groundplanes/ftc-hsr-early-termination-ma-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,groundplanes/ftc-hsr-early-termination-ma-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/M4EAKrX2YgakZav9f/builds/JLRaDVmhJJaM7uOms/openapi.json
