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

# Search the LinkedIn Ad Library

> Search ads by company or keyword.



## OpenAPI

````yaml get /v1/linkedin/ad-library/search
openapi: 3.1.0
info:
  title: Scrapio
  version: 1.0.0
  description: >-
    Turn any URL into structured data. Fetch raw HTML, crawl sites, extract
    structured content, interact with dynamic pages, and search the web through
    one API.
  contact:
    name: Scrapio Support
    url: https://scrapio.dev
  license:
    name: Proprietary
servers:
  - url: https://api.scrapio.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Fetch
  - name: Crawl
  - name: Map
  - name: Interact
  - name: Search
  - name: Google
  - name: Fast Search
  - name: Jobs
  - name: YouTube
  - name: Amazon
  - name: Walmart
  - name: Booking
  - name: Agoda
  - name: Airbnb
  - name: AutoTrader
  - name: Glassdoor
  - name: Trustpilot
  - name: ZipRecruiter
  - name: Dice
  - name: SimplyHired
  - name: Built In
  - name: Wellfound
  - name: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: Instagram
  - name: Twitter
  - name: Facebook
  - name: Hacker News
  - name: GitHub
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/linkedin/ad-library/search:
    get:
      tags:
        - LinkedIn Ad Library
      summary: Search the LinkedIn Ad Library
      description: >-
        Search LinkedIn's Ad Library by company or keyword. Backed by
        ScrapeCreators. Requires a Starter plan or higher.
      operationId: searchLinkedinAdLibrary
      parameters:
        - name: advertiser
          in: query
          required: false
          schema:
            description: Company Page vanity name or ID
            type: string
            minLength: 1
        - name: query
          in: query
          required: false
          schema:
            description: Free-text keyword
            type: string
            minLength: 1
        - name: country
          in: query
          required: false
          schema:
            description: ISO country code
            type: string
            minLength: 2
            maxLength: 2
      responses:
        '200':
          description: Structured LinkedIn Ad Library search results.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedinAdLibrarySearchResponse'
        '400':
          description: Missing or invalid advertiser/query.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: LinkedIn Ad Library endpoints require a Starter plan or higher.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            Daily credit cap exceeded, or the upstream provider rate-limited the
            request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: >-
            LinkedIn Ad Library upstream failed or returned an unusable
            response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: LinkedIn Ad Library execution backend unavailable or unconfigured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/linkedin/ad-library/search?advertiser=microsoft"
            \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
components:
  schemas:
    LinkedinAdLibrarySearchResponse:
      type: object
      properties:
        provider:
          type: string
          enum:
            - linkedin_ad_library
        request_id:
          type: string
        query_context:
          type: object
          properties:
            advertiser:
              anyOf:
                - type: string
                - type: 'null'
            query:
              anyOf:
                - type: string
                - type: 'null'
            country:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - advertiser
            - query
            - country
          additionalProperties: false
        results:
          type: array
          items:
            type: object
            properties:
              ad_id:
                anyOf:
                  - type: string
                  - type: 'null'
              advertiser:
                type: object
                properties:
                  name:
                    anyOf:
                      - type: string
                      - type: 'null'
                  vanity_name:
                    anyOf:
                      - type: string
                      - type: 'null'
                  verified:
                    anyOf:
                      - type: boolean
                      - type: 'null'
                required:
                  - name
                  - vanity_name
                  - verified
                additionalProperties: false
              format:
                anyOf:
                  - type: string
                    enum:
                      - text
                      - image
                      - video
                      - carousel
                      - sponsored_content
                  - type: 'null'
              thumbnail_url:
                anyOf:
                  - type: string
                  - type: 'null'
              first_shown_at:
                anyOf:
                  - type: string
                  - type: 'null'
              status:
                anyOf:
                  - type: string
                    enum:
                      - active
                      - inactive
                  - type: 'null'
            required:
              - ad_id
              - advertiser
              - format
              - thumbnail_url
              - first_shown_at
              - status
            additionalProperties: false
      required:
        - provider
        - request_id
        - query_context
        - results
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        request_id:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
        diagnostics:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - failed
            retryable:
              type: boolean
            blocked:
              type: boolean
            timed_out:
              type: boolean
          required:
            - outcome
            - retryable
          additionalProperties: false
      required:
        - request_id
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````