Skip to main content
The Data Legion API provides programmatic access to our person and company data. Try for free with self-serve API access, or Contact Sales for enterprise agreements with premium fields and higher rate limits.

Base URL

Authentication

All requests require an API key passed via the API-Key header.
API keys are generated in your dashboard after signing up and being approved (most accounts within a couple of hours). Enterprise customers can Contact Sales for custom agreements.

Input Normalization

The enrichment API automatically normalizes inputs before matching, so you don’t need to clean your data first. Emails, phone numbers, names, URLs, and location fields are all normalized to canonical formats for consistent matching. For search endpoints, you can also use the Field Cleaning utility to clean and normalize fields before sending them to search.

Response Headers

Responses include these headers (Request-ID is on every response; the others may be absent on early rejections such as authentication failures, rate limits, and oversized payloads): Billed responses additionally include: Search and discover responses additionally include:

Errors

The API uses standard HTTP status codes and returns errors in a consistent JSON format:
Some errors include a details field with structured data for programmatic use:
The details keys vary by error. For example, a 402 from an exhausted contract balance carries credits_remaining, expiration_date, and is_expired instead of credits_required/credits_available.

Status Codes

Rate Limiting

Default rate limits vary by endpoint: Higher limits are available for enterprise customers. Contact sales to discuss your needs. When rate limited, the API returns HTTP 429 with a Retry-After header indicating how many seconds to wait.

Confidence Scores

Person match results and individual data points (emails, phones, locations, socials) include a confidence level: Confidence is assigned by our proprietary scoring process. See Quality Scoring for usage guidance.
Company data does not include per-field confidence scores. Company records have a record-level num_sources count instead. See Company Data Overview for details.

Next Steps

Person Endpoints

  • Person Enrichment: Match records by email, phone, name, or social URL and append up to 100+ data points
  • Person Search: Query profiles using SQL-like syntax with flexible filtering
  • Person Discovery: Find people using natural language queries

Company Endpoints

  • Company Enrichment: Match companies by domain, name, LinkedIn, or ticker and append up to 50+ data points
  • Company Search: Query companies using SQL-like syntax with flexible filtering
  • Company Discovery: Find companies using natural language queries

Utilities

  • Field Cleaning: Normalize emails, phones, names, and other fields before sending to search
  • Email Hashing: Hash emails for privacy-safe enrichment via the email_hash parameter
  • Data Validation: Validate data format and get suggestions before sending to enrich or search

Data Schemas