List Facebook company ads
curl --request GET \
--url https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"ads": [],
"lookupStatus": "found",
"page": {
"hasMore": false,
"nextCursor": null
}
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01example_empty",
"version": "v1"
}
}Meta Ad Library
List Facebook company ads
Lists ads a company or Page is running in the Facebook Ad Library, with optional country, status, media, language and date filters. Provide pageId or companyName. Results are paged: while data.page.hasMore is true, send data.page.nextCursor as cursor to get the next page.
GET
https://api.aisa.one
/
apis
/
v1
/
facebook
/
ad-library
/
companies
/
ads
List Facebook company ads
curl --request GET \
--url https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"ads": [],
"lookupStatus": "found",
"page": {
"hasMore": false,
"nextCursor": null
}
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01example_empty",
"version": "v1"
}
}
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.
Request contract
- Method and path: GET /apis/v1/facebook/ad-library/companies/ads
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/facebook/ad-library/companies/ads - companyName: query; optional
- country: query; optional
- cursor: query; optional
- endDate: query; optional
- language: query; optional
- mediaType: query; optional
- pageId: query; optional
- sortBy: query; optional
- startDate: query; optional
- status: query; optional
{
"operationId": "facebook.ad-library.companies.ads",
"method": "GET",
"path": "/apis/v1/facebook/ad-library/companies/ads",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "companyName",
"required": false,
"schema": {
"description": "Company or page name to search when you do not have a page id.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "country",
"required": false,
"schema": {
"description": "Optional country code filter. Use ALL to search all countries.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"description": "Opaque pagination cursor from a previous response.",
"maxLength": 16384,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "endDate",
"required": false,
"schema": {
"description": "Optional end date filter in YYYY-MM-DD format.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "language",
"required": false,
"schema": {
"description": "Optional language code filter.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "mediaType",
"required": false,
"schema": {
"description": "Optional creative media filter.",
"enum": [
"all",
"image",
"image-and-meme",
"meme",
"none",
"video"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "pageId",
"required": false,
"schema": {
"description": "Facebook page id when you have it instead of a company name.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "sortBy",
"required": false,
"schema": {
"description": "Optional sort order for returned ads.",
"enum": [
"impressions",
"most-recent"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "startDate",
"required": false,
"schema": {
"description": "Optional start date filter in YYYY-MM-DD format.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "status",
"required": false,
"schema": {
"description": "Optional ad status filter.",
"enum": [
"active",
"all",
"inactive"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Observed response structure
The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.- HTTP status / last observed: 200 / 2026-11-28
{
"additionalProperties": true,
"properties": {
"aisa_pagination": {
"additionalProperties": true,
"properties": {
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": [
"null",
"string"
]
},
"next_param": {
"type": "string"
}
},
"type": "object"
},
"data": {
"additionalProperties": true,
"properties": {
"page": {
"additionalProperties": true,
"properties": {
"hasMore": {
"type": "boolean"
},
"nextCursor": {
"type": [
"null",
"string"
]
}
},
"type": "object"
}
},
"type": "object"
},
"meta": {
"additionalProperties": true,
"properties": {
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.042 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Pagination
- Pass
aisa_pagination.next_cursorascursor(query parameter) to fetch the next page; stop whenaisa_pagination.has_moreis false. - The same values are returned in the
X-AISA-Has-MoreandX-AISA-Next-Cursorresponse headers.
Response time
- Typically returns within 10 seconds.
Authorizations
Query Parameters
Response
Ads for the requested company or page.
Standard success response envelope.