Search LinkedIn ads
harvestapi.linkedin.ads.searchRetrieve a list of LinkedIn Ads matching the specified search criteria.
- 价格
- $0.0016/call按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年9月10日实测可用
GEThttps://toolswitch.dev/v1/tools/harvestapi.linkedin.ads.search?accountOwner=Microsoft预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
Use only the declared query parameters, once each, without a request body. Results are provider-native: inspect element/elements and body status/error; HTTP 200 alone does not prove a hit. Empty results can still be charged.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
enddate | 字符串 | 可选 | End date for 'custom-date-range' filter in 'YYYY-MM-DD' format | |
keyword | 字符串 | 可选 | Search by keyword | |
countries | 字符串 | 可选 | One or comma separated list of country codes to filter ads by country. Eg. 'US,GB,FR'. Supports "ALL" value to search in all countries. | |
startdate | 字符串 | 可选 | Start date for 'custom-date-range' filter in 'YYYY-MM-DD' format | |
dateOption | 字符串 | 可选 | One of the following options to filter ads by date: 'last-30-days', 'current-month', 'current-year', 'last-year', 'custom-date-range' | |
accountOwner | 字符串 | 可选 | Search by company or advertiser name | Microsoft |
paginationToken | 字符串 | 可选 | Pagination token from the previous response for fetching the next page | |
- 查询参数
enddate字符串可选End date for 'custom-date-range' filter in 'YYYY-MM-DD' format
keyword字符串可选Search by keyword
countries字符串可选One or comma separated list of country codes to filter ads by country. Eg. 'US,GB,FR'. Supports "ALL" value to search in all countries.
startdate字符串可选Start date for 'custom-date-range' filter in 'YYYY-MM-DD' format
dateOption字符串可选One of the following options to filter ads by date: 'last-30-days', 'current-month', 'current-year', 'last-year', 'custom-date-range'
accountOwner字符串可选Search by company or advertiser name
示例:
MicrosoftpaginationToken字符串可选Pagination token from the previous response for fetching the next page
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/harvestapi.linkedin.ads.search?accountOwner=Microsoft' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/harvestapi.linkedin.ads.search?accountOwner=Microsoft",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/harvestapi.linkedin.ads.search?accountOwner=Microsoft", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.0016/call 计费,已含服务费。