3. Discover Domains via PDL

Purpose: Discover new company domains from People Data Labs using industry, size, and founding year filters, then output structured JSON with URL pattern candidates for validation before seeding.

Prerequisites:

  • .env.local with SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY, PDL_API_KEY
  • Existing brands in the database (used to filter out already-known domains)

Cost / Duration: $0 (PDL API credits) | 2-10 min

Prompt

Discover new brand domains from People Data Labs.

Step 1 — Discover by industry:

```bash
bun scripts/discover-domains-pdl.ts --industry "computer software" --limit 50
```

Step 2 — Use a built-in preset (saas, enterprise, fintech):

```bash
bun scripts/discover-domains-pdl.ts --preset saas --limit 25
```

Step 3 — Filter by company size:

```bash
bun scripts/discover-domains-pdl.ts --industry "financial services" --min-employees 100 --max-employees 1000 --limit 30
```

Step 4 — Filter by founding year:

```bash
bun scripts/discover-domains-pdl.ts --industry "computer software" --min-founded 2010 --limit 50
```

Step 5 — Dry-run (query PDL without writing output):

```bash
bun scripts/discover-domains-pdl.ts --dry-run --industry "computer software" --limit 5
```

Step 6 — Custom output path:

```bash
bun scripts/discover-domains-pdl.ts --industry "computer software" --limit 25 --output ./output/saas-discovery.json
```

Verify: Check that the output JSON file exists and contains discovered
domains with company metadata and URL pattern candidates.

```bash
ls -la ./output/discovered-domains-*.json
```

Verification

  • Output JSON file created with discovered domains
  • All discovered domains are new (not already in brand library)
  • URL pattern candidates are valid and well-formed
  • Company metadata (industry, size, founding year) is populated

Back to index