Skip to main content

LinkedIn Scraping API

Extract comprehensive data from LinkedIn profiles and company pages with our reliable scraping API. Get detailed professional information, company data, and employment history for business intelligence and lead enrichment.

What it does

The LinkedIn Scraping API helps you gather professional and company data from LinkedIn profiles and pages. Access detailed information about individuals and organizations for sales prospecting, recruitment, market research, and business intelligence. Key capabilities:
  • Profile scraping - Extract detailed individual LinkedIn profile data
  • Company scraping - Get comprehensive LinkedIn company information
  • Multiple ID formats - Support for LinkedIn IDs, URLs, and li:urn formats
  • Intelligent caching - Choose between fresh data or cached results
  • Flexible identifiers - Use any LinkedIn identifier format you have
  • Reliable data extraction - Consistent, structured data output

Developer Experience First

Our API is designed with simplicity in mind - all endpoints are single-request only. No need to worry about batching, managing batch sizes, or handling complex partial failure scenarios.
We handle batching and optimization in the background for you. Send one profile or company at a time, and we’ll automatically optimize performance behind the scenes. This gives you the best of both worlds: simple integration and high-performance processing.
Why this matters:
  • Simple integration - One request, one response - no batch complexity
  • No batch management - We handle optimization automatically
  • Cleaner error handling - Each request succeeds or fails independently
  • Easier testing - Test with single profiles, not complex batch payloads
  • Better debugging - Clear request-response mapping for troubleshooting

Use Cases

Sales & Lead Generation

  • Prospect enrichment - Enhance lead data with professional information
  • Contact discovery - Find decision makers and key contacts
  • Account research - Gather company intelligence for sales outreach
  • Lead qualification - Verify and enrich prospect information

Recruitment & HR

  • Candidate sourcing - Find qualified candidates for open positions
  • Profile verification - Validate candidate information and experience
  • Talent mapping - Understand organizational structures and key personnel
  • Competitive analysis - Research talent at competitor organizations

Market Research & Intelligence

  • Company analysis - Research target companies and competitors
  • Industry insights - Analyze trends and key players in specific industries
  • Network mapping - Understand professional networks and connections
  • Market sizing - Identify potential market opportunities

Data Enrichment & CRM

  • Contact enrichment - Enhance existing CRM data with LinkedIn information
  • Data validation - Verify and update contact information
  • Profile completion - Fill gaps in customer and prospect profiles
  • Relationship mapping - Understand connections between contacts

Caching Options

Our LinkedIn scraping API offers flexible caching to balance data freshness with performance:

Cached Requests (Default)

  • Data age: Up to 30 days old
  • Performance: Faster response times
  • Usage: Ideal for most business intelligence and enrichment use cases
  • Default setting: cached: true

Fresh Requests

  • Data age: No more than 1 minute old
  • Performance: Slower response times due to real-time scraping
  • Usage: When you need the most current information
  • Setting: cached: false
We recommend using cached requests for most use cases. Only use fresh requests when you specifically need real-time data, as they consume more resources and may be subject to additional rate limiting.

Pricing

Our LinkedIn scraping API uses a simple, transparent credit-based pricing model:

LinkedIn Scraping

  • Custom pricing for cached data (up to 30 days old)
  • Custom pricing for fresh data (up to 1 minute old)
  • Applies to both profile and company endpoints

Free Scenarios

  • Invalid LinkedIn identifiers - No charge for malformed IDs (returns validation error)
  • Profile/company not found - No charge when LinkedIn data is not accessible
  • Rate-limited requests - Failed requests due to rate limits are not charged
You’re only charged for successful LinkedIn scrapes. Invalid identifiers, inaccessible profiles/companies, and rate-limited requests don’t consume credits.

Pricing Examples

ScenarioScrape SuccessfulCredits Used
Valid LinkedIn profile (cached)Custom pricing
Valid LinkedIn profile (fresh)Custom pricing
Valid LinkedIn company (cached)Custom pricing
Valid LinkedIn company (fresh)Custom pricing
Profile not found/private0 credits
Invalid LinkedIn ID0 credits
Rate limited requestN/A0 credits

Supported Identifiers

Our API accepts multiple LinkedIn identifier formats in the same id field:

LinkedIn IDs

{"id": "john-doe-123456789"}

LinkedIn URLs

{"id": "https://linkedin.com/in/john-doe-123456789"}
{"id": "https://linkedin.com/company/example-corp"}

LinkedIn URNs

{"id": "li:person:123456789"}
{"id": "li:company:987654321"}

Getting Started

  1. Get your API key from the MDB Dashboard
  2. Review the documentation - Profile Reference and Company Reference
  3. Check rate limits - Rate Limits (starts at 10 calls/sec)
  4. Test your integration - Use our interactive playground
  5. Monitor usage - Track credits and performance in your dashboard

API Endpoints

Profile Scraping

POST https://api.mdb.tools/v1/linkedin/profile

Company Scraping

POST https://api.mdb.tools/v1/linkedin/company
Authentication: x-api-key header
Rate Limit: 10 calls per second (upgradeable)
Response Format: JSON with detailed LinkedIn data

Quick Examples

Profile Scraping

curl -X POST "https://api.mdb.tools/v1/linkedin/profile" \
  -H "x-api-key: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "john-doe-123456789",
    "cached": true
  }'

Company Scraping

curl -X POST "https://api.mdb.tools/v1/linkedin/company" \
  -H "x-api-key: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "https://linkedin.com/company/example-corp",
    "cached": false
  }'

Compliance & Ethics

Our LinkedIn scraping service operates within legal and ethical boundaries:
  • Respect for terms of service - We follow LinkedIn’s guidelines and rate limits
  • Data privacy - Only publicly available information is accessed
  • Legitimate use cases - Designed for business intelligence and professional research
  • Rate limiting - Conservative limits to ensure responsible usage
LinkedIn scraping should only be used for legitimate business purposes such as recruitment, sales research, and market intelligence. Ensure your use case complies with applicable laws and LinkedIn’s terms of service.

Next Steps

Need help getting started? Contact our support team at hello@midbound.ai - we respond fast!