{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Ad Library Scraper · LinkedIn Ads, No Login",
    "description": "LinkedIn Ad Library scraper, no login, no cookies. Competitor LinkedIn ads by company, keyword, payer or Ad Library URL: format, headline, text, images, video, carousel slides. One tick adds link, button, payer, run dates and, for EU ads, impressions by country and targeting. CSV, Excel, JSON.",
    "version": "0.1",
    "x-build-id": "YKLuIi8Ua30Tv4eLE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/instagram-data-api~linkedin-ad-library-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-instagram-data-api-linkedin-ad-library-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/instagram-data-api~linkedin-ad-library-scraper/runs": {
      "post": {
        "operationId": "runs-sync-instagram-data-api-linkedin-ad-library-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/instagram-data-api~linkedin-ad-library-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-instagram-data-api-linkedin-ad-library-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "queries": {
            "title": "Companies, LinkedIn company links, Ad Library links or ad IDs",
            "type": "array",
            "description": "One per line, any mix:\n• a company (advertiser) name — `Deichmann`. Read as that exact advertiser (see «Company name match»)\n• a LinkedIn company link — `https://www.linkedin.com/company/deichmann/` or with its number `https://www.linkedin.com/company/6367756`; a bare number is a company number\n• an Ad Library search link — keeps its own filters (countries, dates, payer, keyword, impressions, targeting)\n• one ad — its link `https://www.linkedin.com/ad-library/detail/1609358143` or `ad:1609358143` (read from the ad's own page: charged as an ad with details)\n• `payer:Name` — ads by who paid; `keyword:words` — the same as the keywords box\nDuplicates are removed before anything is read.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (words in the ads)",
            "type": "array",
            "description": "Ads whose text holds these words, any advertiser — one search per line, e.g. `project management software`.",
            "items": {
              "type": "string"
            }
          },
          "maxAdsPerQuery": {
            "title": "Max ads per line",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many ads to take for each line, newest first. LinkedIn gives 24 ads a page.",
            "default": 100
          },
          "maxAds": {
            "title": "Max ads in the whole run",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap over all lines together."
          },
          "includeDetails": {
            "title": "Include ad details — payer, dates, link, button, video; EU impressions and targeting (extra charge per ad)",
            "type": "boolean",
            "description": "One more read per ad — its own page: the full text, where the ad leads, the button, the video file, the advertiser's LinkedIn page and number, who paid, the days it ran; and for ads shown in the EU — total impressions, impressions by country and targeting (LinkedIn publishes these only for EU ads). Charged per ad whose page was read (event «Ad details», $1.10 per 1,000 ads on the Starter plan ($1.65 on Free)); an ad LinkedIn did not answer for is not charged.",
            "default": false
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes where the ads were shown — `US`, `GB`, `DE`, `FR`… Several codes = ads shown in any of them. Empty = everywhere. A pasted Ad Library link keeps its own.",
            "items": {
              "type": "string"
            }
          },
          "dateRange": {
            "title": "Date range",
            "enum": [
              "all",
              "last-30-days",
              "current-month",
              "current-year",
              "last-year"
            ],
            "type": "string",
            "description": "LinkedIn's own periods: ads that were shown in the period.",
            "default": "all"
          },
          "startDate": {
            "title": "Shown on or after",
            "type": "string",
            "description": "A date (YYYY-MM-DD) or a period back from today («7 days», «3 months»). Setting a date here or below replaces «Date range». LinkedIn's own date picker takes the last 12 months."
          },
          "endDate": {
            "title": "Shown on or before",
            "type": "string",
            "description": "A date (YYYY-MM-DD) or a period back from today. Empty with a start date = up to yesterday."
          },
          "sortOrder": {
            "title": "Sort",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "LinkedIn's two orders. «Oldest first» over a very broad search can make LinkedIn's own page fail — the line then ends with a free row that says so.",
            "default": "newest"
          },
          "companyMatch": {
            "title": "Company name match",
            "enum": [
              "exact",
              "contains"
            ],
            "type": "string",
            "description": "LinkedIn's name search matches parts of names: «Nike» also finds «Niketa …» and «Niketrans». «Exact» finds the advertiser with exactly the typed name and reads only that company's ads (by its LinkedIn number); if no advertiser has exactly that name, you get LinkedIn's own results and the summary row names the advertisers. «Contains» takes LinkedIn's results as they are.",
            "default": "exact"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as it is: the run works through Apify's residential IPs (LinkedIn refuses almost every datacenter IP) and changes the IP by itself when one is refused; that traffic is inside the price per ad. Set a group or your own proxies only to force them.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Requests at the same time",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many requests go side by side, each through its own proxy IP: input lines and, with details, the ads' own pages. 32 is the measured default: 1,000 ads with details took 36 s at 32 and 54–57 s at 16 (Apify runs, 17 Nov 2026).",
            "default": 32
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}