FACEBOOK AD LIBRARY API
Search for Companies
Retrieve search for companies from Facebook Ad Library with a single API request.
GET
/api/data/v1/facebook/adLibrary/search/companies1credit base cost
Request parameters
Up to 1 creditKeyword to search for
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/facebook/adLibrary/search/companies?query=nike' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"searchResults": [
{
"page_id": "51212153078",
"category": "Product/service",
"image_uri": "https://scontent.ford4-1.fna.fbcdn.net/v/t39.30808-1/387181570_863325755161415_3589774989337788111_n.jpg?stp=dst-jpg_s200x200_tt6&_nc_cat=103&ccb=1-7&_nc_sid=418b77&_nc_ohc=SzL6LoxpjrMQ7kNvgF5Uyy3&_nc_oc=AdgIflwSC-gA-77yFJHPKOC1dEGUI7YqvKYkmll9n5n8BcvLzRKToufpLG-068BnjE4&_nc_zt=24&_nc_ht=scontent.ford4-1.fna&_nc_gid=AYuU655BQ_HFcmz-fz9agWZ&oh=00_AYDD0ELO2MQikn7TBtxiTe7n64HX6iKiI5ofiI86BQ_jYw&oe=67CAC605",
"likes": 41136495,
"verification": "BLUE_VERIFIED",
"name": "Nike Football",
"country": null,
"entity_type": "PERSON_PROFILE",
"ig_username": "nikefootball",
"ig_followers": 46451228,
"ig_verification": true,
"page_alias": "nikefootball",
"page_is_deleted": false
}
],
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"searchResults": {
"type": "array",
"items": {
"type": "object",
"properties": {
"page_id": {
"type": "string"
},
"category": {
"type": "string"
},
"image_uri": {
"type": "string"
},
"likes": {
"type": "integer"
},
"verification": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"entity_type": {
"type": "string"
},
"ig_username": {
"type": "string"
},
"ig_followers": {
"type": "integer"
},
"ig_verification": {
"type": "boolean"
},
"page_alias": {
"type": "string"
},
"page_is_deleted": {
"type": "boolean"
}
}
}
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}