Facebook Adlibrary Company Ads API

Facebook adlibrary company ads.

GET/v1/facebook/adlibrary/company/ads
5 credits per successful callCache window 30 minutesFull API reference ↗

Coverage is rolling out during preview. Test the endpoint you need before integrating. Unavailable operations return an explicit error and use no credits.

Try this endpoint

Enter the documented inputs, run a protected browser test, and inspect the JSON response.

GET/v1/facebook/adlibrary/company/ads

Provide one of: pageId, companyName

Optional parameters (12)

No API key needed for this protected browser test. Production calls require a server-side SocialQuery key.

Request preview
Copy this request into your server-side integration, or run a test to inspect the response.
curl -X GET 'https://socialquery.dev/v1/facebook/adlibrary/company/ads?pageId=1234567890' \
  -H "x-api-key: $SOCIALQUERY_API_KEY"

Request contract

Parameters

Pass these fields as query parameters. Production requests also require your server-side API key.

Choose one: pageId or companyName

pageIdOptional
Provide pageId in the format shown in the example.
Example: 1234567890
companyNameOptional
Provide companyName in the format shown in the example.
Example: Lululemon
countryOptional
Provide country in the format shown in the example.
Example: us
statusOptional
Provide status in the format shown in the example.
Example: ALL
media_typeOptional
Provide media type in the format shown in the example.
Example: ALL
languageOptional
Provide language in the format shown in the example.
Example: en
sort_byOptional
Provide sort by in the format shown in the example.
Example: total_impressions
start_dateOptional
Provide start date in the format shown in the example.
Example: —
end_dateOptional
Provide end date in the format shown in the example.
Example: —
cursorOptional
The pagination cursor returned by the previous response, if supported.
Example: —
trimOptional
Provide trim in the format shown in the example.
Example: false
includeOptional
Provide include in the format shown in the example.
Example: audience
sinceOptional
Provide since in the format shown in the example.
Example: —
untilOptional
Provide until in the format shown in the example.
Example: —

Build a reliable integration.

Keep your key server-side

Pass your SocialQuery key in the x-api-key header. Never expose credentials in a browser bundle.

Check the response

Read success before using data. Preserve request_id when logging errors or contacting support.

Account for coverage

Test the fields you need. Provider availability varies, and unavailable operations use no credits.

More Facebook endpoints

View all →