---
title: "GET /v1/facebook/ads/company"
description: "Every ad of one advertiser (Facebook Page) in the Meta Ad Library, 30 a page, filterable."
canonical_url: https://groundsocial.dev/docs/api/facebook-ads-company
---
# GET /v1/facebook/ads/company

> Every ad of one advertiser (Facebook Page) in the Meta Ad Library, 30 a page, filterable.

> ## Agent Instructions
> The Groundsocial REST API is at https://api.groundsocial.dev (OpenAPI: https://groundsocial.dev/openapi.json). Set yourself up with https://groundsocial.dev/SKILL.md; the MCP server is https://api.groundsocial.dev/mcp. Every docs page is Markdown at its URL plus `.md`; the index is https://groundsocial.dev/llms.txt.

|  |  |
| --- | --- |
| Request | `GET /v1/facebook/ads/company` |
| Operation id | `facebook.ads.company` |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: `Authorization: Bearer <key>` or `x-api-key`. |

Every ad of one advertiser (Facebook Page) in the Meta Ad Library, 30 a page, filterable.

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | `string` | no | Page id, Page URL or vanity name. Example: `15087023444`. |
| `company_name` | `string` | no | Advertiser name, when you don’t have the Page. Example: `Nike`. |
| `country` | `string` | no | ISO 3166-1 alpha-2 country the ads reached (US, GB, DE…), or ALL (default). |
| `status` | `"active" \| "inactive" \| "all"` | no | active (default), inactive, or all. One of `active`, `inactive`, `all`. |
| `media_type` | `"all" \| "image" \| "video" \| "meme" \| "image_and_meme" \| "none"` | no | all (default), image, video, meme (image with text), image_and_meme, none (text only). One of `all`, `image`, `video`, `meme`, `image_and_meme`, `none`. |
| `ad_type` | `"all" \| "political_and_issue_ads" \| "housing" \| "employment" \| "credit" \| "financial"` | no | all (default), or one of Meta’s special ad categories: political_and_issue_ads, housing, employment, credit, financial. One of `all`, `political_and_issue_ads`, `housing`, `employment`, `credit`, `financial`. |
| `sort_by` | `"total_impressions" \| "relevancy_monthly_grouped" \| "total_active_time"` | no | total_impressions (default, high to low), relevancy_monthly_grouped (most recent), or total_active_time (longest-running first, within each page of 30). One of `total_impressions`, `relevancy_monthly_grouped`, `total_active_time`. |
| `language` | `string` | no | Comma-separated ISO 639-1 languages of the ad text (en,es). |
| `publisher_platforms` | `string` | no | Comma-separated placements: facebook, instagram, audience_network, messenger, whatsapp, threads, oculus. |
| `start_date` | `string` | no | YYYY-MM-DD: only ads delivered on or after this day. |
| `end_date` | `string` | no | YYYY-MM-DD: only ads delivered on or before this day. |
| `after` | `string` | no | The previous page’s `page_info.end_cursor`; keep the other filters the same. |

## Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | A page of the advertiser’s ads, with the next cursor. | `FacebookAdsPage` |
| `400` | Invalid input. Nothing was charged. | `Error` |
| `401` | Missing or invalid API key. | `Error` |
| `402` | Not enough credits, a spend cap was reached, or payment is required. | `Error` |
| `403` | The target is private, or the account is suspended. | `Error` |
| `404` | The ad, Page or advertiser is not in the Meta Ad Library. | `Error` |
| `429` | Too many requests. Wait for Retry-After seconds. | `Error` |
| `503` | Facebook is temporarily unavailable. Retryable; nothing was charged. | `Error` |

### FacebookAdsPage fields

| Field | Type | Description |
| --- | --- | --- |
| `ads` | `FacebookAd[]` |  |
| `count` | `integer \| null` | Meta’s estimate of how many ads match, on the first page (null on later pages). Meta caps it at 50,001. |
| `page_info` | `object` |  |

Errors use one shape everywhere; see [Errors](https://groundsocial.dev/docs/errors) for every code and what to do.

## Example

cURL:

```bash
curl "https://api.groundsocial.dev/v1/facebook/ads/company" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/facebook/ads/company', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/facebook/ads/company",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

_Canonical HTML: https://groundsocial.dev/docs/api/facebook-ads-company_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial docs](https://groundsocial.dev/docs.md)
- [Quickstart](https://groundsocial.dev/docs/quickstart.md)
- [Authentication](https://groundsocial.dev/docs/authentication.md)
- [Credits and payments](https://groundsocial.dev/docs/payments.md)
- [Rate limits](https://groundsocial.dev/docs/rate-limits.md)
- [Errors](https://groundsocial.dev/docs/errors.md)
- [Data freshness and caching](https://groundsocial.dev/docs/freshness.md)
- [MCP server](https://groundsocial.dev/docs/mcp.md)
- [SKILL.md, llms.txt and Markdown twins](https://groundsocial.dev/docs/skill.md)
- [CLI](https://groundsocial.dev/docs/cli.md)
- [TypeScript SDK](https://groundsocial.dev/docs/sdk.md)
- [PRAW and snoowrap](https://groundsocial.dev/docs/praw.md)
- [Legal and compliance](https://groundsocial.dev/docs/compliance.md)
- [API reference](https://groundsocial.dev/docs/api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://groundsocial.dev/docs"},{"@type":"ListItem","position":3,"name":"API reference","item":"https://groundsocial.dev/docs/api"},{"@type":"ListItem","position":4,"name":"GET /v1/facebook/ads/company","item":"https://groundsocial.dev/docs/api/facebook-ads-company"}]}
```
