{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Ads Scraper - Low-cost💲🔥🔍🌍",
    "description": "🔍 Extract LinkedIn sponsored ads by keyword, company, or location. Collect advertiser names, ad headlines, descriptions, image URLs,  call-to-actions, and ad page links. Ideal for ad intelligence, competitor monitoring, market research, campaign analysis & social media advertising insights 🚀📊",
    "version": "0.0",
    "x-build-id": "rbFVNaJ5EiNyzeVll"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/delectable_incubator~linkedin-ads-scraper-low-cost/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-delectable_incubator-linkedin-ads-scraper-low-cost",
        "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/delectable_incubator~linkedin-ads-scraper-low-cost/runs": {
      "post": {
        "operationId": "runs-sync-delectable_incubator-linkedin-ads-scraper-low-cost",
        "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/delectable_incubator~linkedin-ads-scraper-low-cost/run-sync": {
      "post": {
        "operationId": "run-sync-delectable_incubator-linkedin-ads-scraper-low-cost",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "✍️🔍 Keywords for Scraping Ads Metadata (Bulk)",
            "type": "array",
            "description": "List of keywords to search for in the LinkedIn Ads Library.\n\nExamples:\n• ['ai', 'machine learning']\n• ['nvidia', 'cloud computing']\n• ['marketing', 'saas']\n\nThe scraper will process each keyword and collect up to maxItemsPerKeyword ads for each.",
            "default": [
              "ai",
              "cloud"
            ],
            "items": {
              "type": "string"
            }
          },
          "entreprise": {
            "title": "🏢 Enter the Company Name for Ads Metadata",
            "type": "string",
            "description": "Specify the company whose ads you want to scrape from the LinkedIn Ads Library. Example: 'NVIDIA', 'Google', etc. 🏢",
            "default": "nvidia"
          },
          "country": {
            "title": "🌍 Select the Country for Scraping Ads",
            "enum": [
              "All 🌍",
              "Albania 🇦🇱",
              "Algeria 🇩🇿",
              "Andorra 🇦🇩",
              "Angola 🇦🇴",
              "Antigua and Barbuda 🇦🇬",
              "Argentina 🇦🇷",
              "Armenia 🇦🇲",
              "Australia 🇦🇺",
              "Austria 🇦🇹",
              "Azerbaijan 🇦🇿",
              "Bahamas 🇧🇸",
              "Bahrain 🇧🇭",
              "Bangladesh 🇧🇩",
              "Barbados 🇧🇧",
              "Belarus 🇧🇾",
              "Belgium 🇧🇪",
              "Belize 🇧🇿",
              "Benin 🇧🇯",
              "Bhutan 🇧🇹",
              "Bolivia 🇧🇴",
              "Bosnia and Herzegovina 🇧🇦",
              "Botswana 🇧🇼",
              "Brazil 🇧🇷",
              "Brunei 🇧🇳",
              "Bulgaria 🇧🇬",
              "Burkina Faso 🇧🇫",
              "Burundi 🇧🇮",
              "Cabo Verde 🇨🇻",
              "Cambodia 🇰🇭",
              "Cameroon 🇨🇲",
              "Canada 🇨🇦",
              "Central African Republic 🇨🇫",
              "Chad 🇹🇩",
              "Chile 🇨🇱",
              "China 🇨🇳",
              "Colombia 🇨🇴",
              "Comoros 🇰🇲",
              "Congo 🇨🇬",
              "Congo (Democratic Republic) 🇨🇩",
              "Costa Rica 🇨🇷",
              "Croatia 🇭🇷",
              "Cuba 🇨🇺",
              "Cyprus 🇨🇾",
              "Czech Republic 🇨🇿",
              "Denmark 🇩🇰",
              "Djibouti 🇩🇯",
              "Dominica 🇩🇲",
              "Dominican Republic 🇩🇴",
              "Ecuador 🇪🇨",
              "Egypt 🇪🇬",
              "El Salvador 🇸🇻",
              "Equatorial Guinea 🇬🇶",
              "Eritrea 🇪🇷",
              "Estonia 🇪🇪",
              "Eswatini 🇸🇿",
              "Ethiopia 🇪🇹",
              "Fiji 🇫🇯",
              "Finland 🇫🇮",
              "France 🇫🇷",
              "Gabon 🇬🇦",
              "Gambia 🇬🇲",
              "Georgia 🇬🇪",
              "Germany 🇩🇪",
              "Ghana 🇬🇭",
              "Greece 🇬🇷",
              "Grenada 🇬🇩",
              "Guatemala 🇬🇹",
              "Guinea 🇬🇳",
              "Guinea-Bissau 🇬🇼",
              "Guyana 🇬🇾",
              "Haiti 🇭🇹",
              "Honduras 🇭🇳",
              "Hungary 🇭🇺",
              "Iceland 🇮🇸",
              "India 🇮🇳",
              "Indonesia 🇮🇩",
              "Iran 🇮🇷",
              "Iraq 🇮🇶",
              "Ireland 🇮🇪",
              "Italy 🇮🇹",
              "Jamaica 🇯🇲",
              "Japan 🇯🇵",
              "Jordan 🇯🇴",
              "Kazakhstan 🇰🇿",
              "Kenya 🇰🇪",
              "Kiribati 🇰🇮",
              "Korea (North) 🇰🇵",
              "Korea (South) 🇰🇷",
              "Kuwait 🇰🇼",
              "Kyrgyzstan 🇰🇬",
              "Laos 🇱🇸",
              "Latvia 🇱🇻",
              "Lebanon 🇱🇧",
              "Lesotho 🇱🇸",
              "Liberia 🇱🇸",
              "Libya 🇱🇾",
              "Liechtenstein 🇱🇮",
              "Lithuania 🇱🇹",
              "Luxembourg 🇱🇺",
              "Madagascar 🇲🇬",
              "Malawi 🇲🇼",
              "Malaysia 🇲🇾",
              "Maldives 🇲🇻",
              "Mali 🇲🇱",
              "Malta 🇲🇹",
              "Marshall Islands 🇲🇭",
              "Mauritania 🇲🇷",
              "Mauritius 🇲🇺",
              "Mexico 🇲🇽",
              "Micronesia 🇫🇲",
              "Moldova 🇲🇩",
              "Monaco 🇲🇨",
              "Mongolia 🇲🇳",
              "Montenegro 🇲🇪",
              "Morocco 🇲🇦",
              "Mozambique 🇲🇿",
              "Myanmar 🇲🇲",
              "Namibia 🇳🇦",
              "Nauru 🇳🇷",
              "Nepal 🇳🇵",
              "Netherlands 🇳🇱",
              "New Zealand 🇳🇿",
              "Nicaragua 🇳🇮",
              "Niger 🇳🇪",
              "Nigeria 🇳🇬",
              "North Macedonia 🇲🇰",
              "Norway 🇳🇴",
              "Oman 🇴🇲",
              "Pakistan 🇵🇰",
              "Palau 🇵🇼",
              "Panama 🇵🇦",
              "Papua New Guinea 🇵🇬",
              "Paraguay 🇵🇾",
              "Peru 🇵🇪",
              "Philippines 🇵🇭",
              "Poland 🇵🇱",
              "Portugal 🇵🇹",
              "Qatar 🇶🇦",
              "Romania 🇷🇴",
              "Russia 🇷🇺",
              "Rwanda 🇷🇼",
              "Saint Kitts and Nevis 🇰🇳",
              "Saint Lucia 🇱🇨",
              "Saint Vincent and the Grenadines 🇻🇨",
              "Samoa 🇼🇸",
              "San Marino 🇸🇲",
              "Sao Tome and Principe 🇸🇹",
              "Saudi Arabia 🇸🇦",
              "Senegal 🇸🇳",
              "Serbia 🇷🇸",
              "Seychelles 🇸🇨",
              "Sierra Leone 🇸🇱",
              "Singapore 🇸🇬",
              "Slovakia 🇸🇰",
              "Slovenia 🇸🇮",
              "Solomon Islands 🇸🇧",
              "Somalia 🇸🇴",
              "South Africa 🇿🇦",
              "South Sudan 🇸🇸",
              "Spain 🇪🇸",
              "Sri Lanka 🇱🇰",
              "Sudan 🇸🇩",
              "Suriname 🇸🇷",
              "Sweden 🇸🇪",
              "Switzerland 🇨🇭",
              "Syria 🇸🇾",
              "Taiwan 🇹🇼",
              "Tajikistan 🇹🇯",
              "Tanzania 🇹🇿",
              "Thailand 🇹🇭",
              "Timor-Leste 🇹🇱",
              "Togo 🇹🇬",
              "Tonga 🇹🇴",
              "Trinidad and Tobago 🇹🇹",
              "Tunisia 🇹🇳",
              "Turkey 🇹🇷",
              "Turkmenistan 🇹🇲",
              "Tuvalu 🇹🇻",
              "Uganda 🇺🇬",
              "Ukraine 🇺🇦",
              "United Arab Emirates 🇦🇪",
              "United Kingdom 🇬🇧",
              "United States 🇺🇸",
              "Uruguay 🇺🇾",
              "Uzbekistan 🇺🇿",
              "Vanuatu 🇻🇺",
              "Vatican City 🇻🇦",
              "Venezuela 🇻🇪",
              "Vietnam 🇻🇳",
              "Yemen 🇾🇪",
              "Zambia 🇿🇲",
              "Zimbabwe 🇿🇼"
            ],
            "type": "string",
            "description": "Choose the country you want to scrape LinkedIn ads from. You can pick 'All 🌍' or any specific country! 🌎",
            "default": "All 🌍"
          },
          "date": {
            "title": "📅 Choose Date Sort (When Ads Were Posted) ⏰⏳",
            "enum": [
              "Any",
              "Last 30 days",
              "This month",
              "This year",
              "Last year"
            ],
            "type": "string",
            "description": "Choose how you want to sort ads by date! ⏰⏳ You can select 'Any' for all dates, or narrow it down by 'Last 30 days', 'This month', or 'This year'.",
            "default": "Any"
          },
          "maxItemsPerKeyword": {
            "title": "🎯 Maximum Ads Per Keyword",
            "type": "integer",
            "description": "Maximum number of ads to collect for EACH keyword.\n\nThe scraper will:\n• Scroll through results for each keyword\n• Stop when reaching this limit OR after 10 consecutive empty scrolls\n• Move to the next keyword automatically",
            "default": 60
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}