Facebook ad library ad details by id or URL
scrapecreators.x.v1-facebook-adlibrary-adRetrieves detailed information about a specific Facebook ad by its ID or URL.
- Price
- $0.00188/call제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다성공률 데이터가 아직 없습니다
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-ad?id=702369045530963Preview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
id | 문자열 | 선택 | Facebook Ad Id | 702369045530963 |
url | 문자열 | 선택 | Facebook Ad URL | https://www.facebook.com/ads/library?id=1185617869915074 |
trim | 불리언 | 선택 | Set to true for a trimmed down version of the response | false |
cache_max_age | 문자열 | 선택 | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Cac... | 7d |
- 쿼리 파라미터
id문자열선택Facebook Ad Id
예시:
702369045530963url문자열선택Facebook Ad URL
예시:
https://www.facebook.com/ads/library?id=1185617869915074trim불리언선택Set to true for a trimmed down version of the response
예시:
falsecache_max_age문자열선택If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Cac...
예시:
7d
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-ad?id=702369045530963' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-ad?id=702369045530963",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-ad?id=702369045530963", {
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());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.00188/call이며 서비스 수수료가 포함되어 있습니다.