Piloterr Linkedinadlibrary API

The Linkedinadlibrary API from Piloterr — 2 operation(s) for linkedinadlibrary.

GitHub OpenAPI

Operations 4

GET /v2/linkedinadlibrary/ad LinkedIn Ad Library Ad #
POST /v2/linkedinadlibrary/ad LinkedIn Ad Library Ad #
POST /v2/linkedinadlibrary/search LinkedIn Ad Library Search #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/piloterr-com:piloterr-com-linkedinadlibrary-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

piloterr-com-linkedinadlibrary-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Piloterr API Reference Linkedinadlibrary API
  description: Complete API reference documentation.
  version: 1.0.0
servers:
- url: https://api.piloterr.com
  description: API Server
tags:
- name: Linkedinadlibrary
paths:
  /v2/linkedinadlibrary/ad:
    get:
      summary: LinkedIn Ad Library Ad
      description: 'Get one LinkedIn Ad Library creative by URL or id: copy, CTA, payer, impressions, and targeting (2 credits).


        **Credit cost:** 2 credits per call'
      operationId: get-linkedinadlibrary-ad
      security:
      - ApiKeyAuth: []
      parameters:
      - name: query
        in: query
        required: true
        description: "Ad id or detail URL from search.\n\n**Example:**\n\n    https://www.linkedin.com/ad-library/detail/1585536544"
        schema:
          type: string
          description: "Ad id or detail URL from search.\n\n**Example:**\n\n    https://www.linkedin.com/ad-library/detail/1585536544"
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                  ad_id:
                    type: string
                  format:
                    type: string
                  status:
                    type: string
                  paid_by:
                    type: string
                  carousel:
                    nullable: true
                  cta_text:
                    type: string
                  end_date:
                    nullable: true
                  headline:
                    type: string
                  image_url:
                    type: string
                  targeting:
                    nullable: true
                  video_url:
                    nullable: true
                  start_date:
                    nullable: true
                  target_url:
                    nullable: true
                  description:
                    type: string
                  impressions:
                    nullable: true
                  format_label:
                    type: string
                  advertiser_url:
                    type: string
                  follower_count:
                    nullable: true
                  advertiser_name:
                    type: string
                  advertiser_image_url:
                    type: string
              examples:
                Airbus hiring creative:
                  value:
                    url: https://www.linkedin.com/ad-library/detail/1585536544
                    ad_id: '1585536544'
                    format: image
                    status: active
                    paid_by: Focused Image
                    carousel: null
                    cta_text: Apply
                    end_date: null
                    headline: Airbus is Hiring
                    image_url: https://media.licdn.com/dms/image/v2/D4E10AQFZ54-UGWaraQ/image_627_1200/B56Z6EWmiMG0AU-/0/1780336978225/Airbus2026Q2Kinston1200x627jpg
                    targeting: null
                    video_url: null
                    start_date: null
                    target_url: null
                    description: Airbus is hiring in Kinston, NC where we are building advanced composite structures for the A350.
                    impressions: null
                    format_label: Single Image Ad
                    advertiser_url: https://www.linkedin.com/company/2734
                    follower_count: null
                    advertiser_name: Airbus
                    advertiser_image_url: https://media.licdn.com/dms/image/v2/C4D0BAQF2j_LDG_TOzg/company-logo_100_100/company-logo_100_100/0/1631375371456/airbusgroup_logo
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Linkedinadlibrary
    post:
      summary: LinkedIn Ad Library Ad
      description: 'Get one LinkedIn Ad Library creative by URL or id: copy, CTA, payer, impressions, and targeting (2 credits).


        **Credit cost:** 2 credits per call'
      operationId: post-linkedinadlibrary-ad
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: "Ad id or detail URL from search.\n\n**Example:**\n\n    https://www.linkedin.com/ad-library/detail/1585536544"
              required:
              - query
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                  ad_id:
                    type: string
                  format:
                    type: string
                  status:
                    type: string
                  paid_by:
                    type: string
                  carousel:
                    nullable: true
                  cta_text:
                    type: string
                  end_date:
                    nullable: true
                  headline:
                    type: string
                  image_url:
                    type: string
                  targeting:
                    nullable: true
                  video_url:
                    nullable: true
                  start_date:
                    nullable: true
                  target_url:
                    nullable: true
                  description:
                    type: string
                  impressions:
                    nullable: true
                  format_label:
                    type: string
                  advertiser_url:
                    type: string
                  follower_count:
                    nullable: true
                  advertiser_name:
                    type: string
                  advertiser_image_url:
                    type: string
              examples:
                Airbus hiring creative:
                  value:
                    url: https://www.linkedin.com/ad-library/detail/1585536544
                    ad_id: '1585536544'
                    format: image
                    status: active
                    paid_by: Focused Image
                    carousel: null
                    cta_text: Apply
                    end_date: null
                    headline: Airbus is Hiring
                    image_url: https://media.licdn.com/dms/image/v2/D4E10AQFZ54-UGWaraQ/image_627_1200/B56Z6EWmiMG0AU-/0/1780336978225/Airbus2026Q2Kinston1200x627jpg
                    targeting: null
                    video_url: null
                    start_date: null
                    target_url: null
                    description: Airbus is hiring in Kinston, NC where we are building advanced composite structures for the A350.
                    impressions: null
                    format_label: Single Image Ad
                    advertiser_url: https://www.linkedin.com/company/2734
                    follower_count: null
                    advertiser_name: Airbus
                    advertiser_image_url: https://media.licdn.com/dms/image/v2/C4D0BAQF2j_LDG_TOzg/company-logo_100_100/company-logo_100_100/0/1631375371456/airbusgroup_logo
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Linkedinadlibrary
  /v2/linkedinadlibrary/search:
    get:
      summary: LinkedIn Ad Library Search
      description: 'Search the LinkedIn Ad Library by advertiser, keyword, country, and date. Returns ad cards and pagination (2 credits).


        **Credit cost:** 2 credits per call'
      operationId: get-linkedinadlibrary-search
      security:
      - ApiKeyAuth: []
      parameters:
      - name: query
        in: query
        required: false
        description: "Full LinkedIn Ad Library search URL, or a keyword when `account_owner` is empty.\n\n**Example 1 (URL):**\n\n    https://www.linkedin.com/ad-library/search?accountOwner=airbus\n\n**Example 2 (keyword):**\n\n    aerospace"
        schema:
          type: string
          description: "Full LinkedIn Ad Library search URL, or a keyword when `account_owner` is empty.\n\n**Example 1 (URL):**\n\n    https://www.linkedin.com/ad-library/search?accountOwner=airbus\n\n**Example 2 (keyword):**\n\n    aerospace"
      - name: account_owner
        in: query
        required: false
        description: "Advertiser / company name filter (`accountOwner`).\n\n**Example:**\n\n    airbus"
        schema:
          type: string
          description: "Advertiser / company name filter (`accountOwner`).\n\n**Example:**\n\n    airbus"
      - name: keyword
        in: query
        required: false
        description: Keyword filter on ad copy.
        schema:
          type: string
          description: Keyword filter on ad copy.
      - name: countries
        in: query
        required: false
        description: "Comma-separated ISO country codes, or `ALL`.\n\n**Example:**\n\n    US,FR"
        schema:
          type: string
          description: "Comma-separated ISO country codes, or `ALL`.\n\n**Example:**\n\n    US,FR"
      - name: date_option
        in: query
        required: false
        description: 'Date window: `last-30-days`, `current-month`, `current-year`, `last-year`, `custom-date-range`.'
        schema:
          type: string
          description: 'Date window: `last-30-days`, `current-month`, `current-year`, `last-year`, `custom-date-range`.'
      - name: start_date
        in: query
        required: false
        description: Start date `YYYY-MM-DD` when `date_option=custom-date-range`.
        schema:
          type: string
          description: Start date `YYYY-MM-DD` when `date_option=custom-date-range`.
      - name: end_date
        in: query
        required: false
        description: End date `YYYY-MM-DD` when `date_option=custom-date-range`.
        schema:
          type: string
          description: End date `YYYY-MM-DD` when `date_option=custom-date-range`.
      - name: cursor
        in: query
        required: false
        description: Opaque cursor from `pagination.cursor` / `pagination.next`.
        schema:
          type: string
          description: Opaque cursor from `pagination.cursor` / `pagination.next`.
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        ad_id:
                          type: string
                        format:
                          type: string
                        headline:
                          type: string
                        image_url:
                          type: string
                        description:
                          type: string
                        advertiser_name:
                          type: string
                        advertiser_image_url:
                          type: string
                  pagination:
                    type: object
                    properties:
                      next:
                        type: string
                      page:
                        type: integer
                      cursor:
                        type: string
                      per_page:
                        type: integer
                      total_pages:
                        type: integer
                      total_results:
                        type: integer
              examples:
                Airbus advertiser search:
                  value:
                    results:
                    - url: https://www.linkedin.com/ad-library/detail/1585536544
                      ad_id: '1585536544'
                      format: image
                      headline: Airbus is Hiring
                      image_url: https://media.licdn.com/dms/image/v2/D4E10AQFZ54-UGWaraQ/image_627_1200/B56Z6EWmiMG0AU-/0/1780336978225/Airbus2026Q2Kinston1200x627jpg
                      description: Airbus is hiring in Kinston, NC where we are building advanced composite structures for the A350.
                      advertiser_name: Airbus
                      advertiser_image_url: https://media.licdn.com/dms/image/v2/C4D0BAQF2j_LDG_TOzg/company-logo_100_100/company-logo_100_100/0/1631375371456/airbusgroup_logo
                    pagination:
                      next: https://www.linkedin.com/ad-library/search?accountOwner=airbus&paginationToken=1585433394-1790883234944
                      page: 1
                      cursor: 1585433394-1790883234944
                      per_page: 24
                      total_pages: 54
                      total_results: 1293
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Linkedinadlibrary
    post:
      summary: LinkedIn Ad Library Search
      description: 'Search the LinkedIn Ad Library by advertiser, keyword, country, and date. Returns ad cards and pagination (2 credits).


        **Credit cost:** 2 credits per call'
      operationId: post-linkedinadlibrary-search
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: "Full LinkedIn Ad Library search URL, or a keyword when `account_owner` is empty.\n\n**Example 1 (URL):**\n\n    https://www.linkedin.com/ad-library/search?accountOwner=airbus\n\n**Example 2 (keyword):**\n\n    aerospace"
                account_owner:
                  type: string
                  description: "Advertiser / company name filter (`accountOwner`).\n\n**Example:**\n\n    airbus"
                keyword:
                  type: string
                  description: Keyword filter on ad copy.
                countries:
                  type: string
                  description: "Comma-separated ISO country codes, or `ALL`.\n\n**Example:**\n\n    US,FR"
                date_option:
                  type: string
                  description: 'Date window: `last-30-days`, `current-month`, `current-year`, `last-year`, `custom-date-range`.'
                start_date:
                  type: string
                  description: Start date `YYYY-MM-DD` when `date_option=custom-date-range`.
                end_date:
                  type: string
                  description: End date `YYYY-MM-DD` when `date_option=custom-date-range`.
                cursor:
                  type: string
                  description: Opaque cursor from `pagination.cursor` / `pagination.next`.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        ad_id:
                          type: string
                        format:
                          type: string
                        headline:
                          type: string
                        image_url:
                          type: string
                        description:
                          type: string
                        advertiser_name:
                          type: string
                        advertiser_image_url:
                          type: string
                  pagination:
                    type: object
                    properties:
                      next:
                        type: string
                      page:
                        type: integer
                      cursor:
                        type: string
                      per_page:
                        type: integer
                      total_pages:
                        type: integer
                      total_results:
                        type: integer
              examples:
                Airbus advertiser search:
                  value:
                    results:
                    - url: https://www.linkedin.com/ad-library/detail/1585536544
                      ad_id: '1585536544'
                      format: image
                      headline: Airbus is Hiring
                      image_url: https://media.licdn.com/dms/image/v2/D4E10AQFZ54-UGWaraQ/image_627_1200/B56Z6EWmiMG0AU-/0/1780336978225/Airbus2026Q2Kinston1200x627jpg
                      description: Airbus is hiring in Kinston, NC where we are building advanced composite structures for the A350.
                      advertiser_name: Airbus
                      advertiser_image_url: https://media.licdn.com/dms/image/v2/C4D0BAQF2j_LDG_TOzg/company-logo_100_100/company-logo_100_100/0/1631375371456/airbusgroup_logo
                    pagination:
                      next: https://www.linkedin.com/ad-library/search?accountOwner=airbus&paginationToken=1585433394-1790883234944
                      page: 1
                      cursor: 1585433394-1790883234944
                      per_page: 24
                      total_pages: 54
                      total_results: 1293
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Linkedinadlibrary
components:
  parameters:
    fields:
      name: fields
      in: query
      required: false
      description: Comma-separated list of response fields to return, with dot notation for nested fields (e.g. `name,location.city`).
      schema:
        type: string
    is_async:
      name: is_async
      in: query
      required: false
      description: 'Run the request as a background job: the API answers `202` with a `job_id` to poll on `GET /v1/jobs/{id}`.'
      schema:
        type: boolean
        default: false
    soft_fail:
      name: soft_fail
      in: query
      required: false
      description: Return HTTP 200 even when the request fails; the error is in the `error` field of the body.
      schema:
        type: boolean
        default: false
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your API key. Include it in the x-api-key header for every request.