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

# Get Extractor Campaign Results

> Get the leads extracted by a lead extraction campaign

Returns the leads extracted by a completed lead extraction campaign.

## Request

<ParamField header="X-API-Key" type="string" required>
  Your API key
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
  The campaign ID returned from the create campaign endpoint
</ParamField>

## Query Parameters

<ParamField query="offset" type="number" default="0">
  Number of leads to skip (for pagination)
</ParamField>

<ParamField query="limit" type="number" default="100">
  Maximum number of leads to return (1-1000)
</ParamField>

## Response

<ResponseField name="leads" type="array">
  Array of extracted leads with full profile data
</ResponseField>

<ResponseField name="pagination" type="object">
  <Expandable title="properties">
    <ResponseField name="total" type="number">
      Total number of leads extracted
    </ResponseField>

    <ResponseField name="offset" type="number">
      Current offset
    </ResponseField>

    <ResponseField name="limit" type="number">
      Current limit
    </ResponseField>

    <ResponseField name="has_more" type="boolean">
      Whether there are more leads to fetch
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.sendpilot.ai/v1/lead-extractor/campaigns/camp_abc123xyz/results?limit=50" \
    -H "X-API-Key: your-api-key"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "leads": [
      {
        "id": "lead_xyz789",
        "linkedin_identifier": "johndoe",
        "linkedin_url": "https://www.linkedin.com/in/johndoe",
        "first_name": "John",
        "last_name": "Doe",
        "full_name": "John Doe",
        "headline": "CEO at TechCorp | Building the future of AI",
        "summary": "Experienced technology executive with 15+ years...",
        "location": "San Francisco Bay Area",
        "city": "San Francisco",
        "country": "United States",
        "profile_picture_url": "https://media.licdn.com/...",
        "company": "TechCorp Inc",
        "job_position": "CEO",
        "email": "john.doe@techcorp.com",
        "phone": "+1-555-123-4567",
        "connections": 500,
        "followers": 12500,
        "experience": [
          {
            "title": "CEO",
            "company": "TechCorp Inc",
            "duration": "2020 - Present"
          }
        ],
        "education": [
          {
            "school": "Stanford University",
            "degree": "MBA"
          }
        ],
        "skills": ["Leadership", "Strategy", "AI/ML"]
      }
    ],
    "pagination": {
      "total": 100,
      "offset": 0,
      "limit": 50,
      "has_more": true
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /v1/lead-extractor/campaigns/{id}/results
openapi: 3.0.0
info:
  title: SendPilot External API
  description: >
    The SendPilot API enables you to programmatically manage LinkedIn outreach
    campaigns,

    add leads, update lead statuses, send messages, and receive real-time
    webhook notifications.
  version: 1.0.0
  contact:
    name: SendPilot Support
    email: support@sendpilot.ai
    url: https://sendpilot.ai
servers:
  - url: https://api.sendpilot.ai
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Credits
    description: Credits and quota management
  - name: Campaigns
    description: Campaign management endpoints
  - name: Leads
    description: Lead management endpoints
  - name: Lead Database
    description: Lead Database search endpoints
  - name: Lead Extractor
    description: Lead extraction campaign endpoints
  - name: Inbox
    description: Direct messaging endpoints
paths:
  /v1/lead-extractor/campaigns/{id}/results:
    get:
      tags:
        - Lead Extractor
      summary: Get Extractor Campaign Results
      description: Returns the leads extracted by a completed lead extraction campaign
      operationId: getLeadExtractorCampaignResults
      parameters:
        - name: id
          in: path
          required: true
          description: The campaign ID returned from the create campaign endpoint
          schema:
            type: string
        - name: offset
          in: query
          description: Number of leads to skip (for pagination)
          schema:
            type: integer
            default: 0
            minimum: 0
        - name: limit
          in: query
          description: Maximum number of leads to return
          schema:
            type: integer
            default: 100
            minimum: 1
            maximum: 1000
      responses:
        '200':
          description: Extracted leads
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeadExtractorCampaignResults'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    LeadExtractorCampaignResults:
      type: object
      properties:
        leads:
          type: array
          items:
            $ref: '#/components/schemas/ExtractedLead'
        pagination:
          $ref: '#/components/schemas/OffsetPagination'
      required:
        - leads
        - pagination
    ExtractedLead:
      type: object
      properties:
        id:
          type: string
        linkedin_identifier:
          type: string
        linkedin_url:
          type: string
        first_name:
          type: string
        last_name:
          type: string
        full_name:
          type: string
        headline:
          type: string
        summary:
          type: string
        location:
          type: string
        city:
          type: string
        country:
          type: string
        profile_picture_url:
          type: string
        company:
          type: string
        job_position:
          type: string
        email:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        connections:
          type: integer
        followers:
          type: integer
        experience:
          type: array
          items:
            $ref: '#/components/schemas/ExtractedLeadExperience'
        education:
          type: array
          items:
            $ref: '#/components/schemas/ExtractedLeadEducation'
        skills:
          type: array
          items:
            type: string
    OffsetPagination:
      type: object
      properties:
        total:
          type: integer
          description: Total number of items
        offset:
          type: integer
          description: Current offset
        limit:
          type: integer
          description: Current limit
        has_more:
          type: boolean
          description: Whether there are more items to fetch
      required:
        - total
        - has_more
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        error:
          type: string
        code:
          type: string
        message:
          type: string
      required:
        - statusCode
        - message
    ExtractedLeadExperience:
      type: object
      properties:
        title:
          type: string
        company:
          type: string
        duration:
          type: string
    ExtractedLeadEducation:
      type: object
      properties:
        school:
          type: string
        degree:
          type: string
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````