# Facebook Page Posts API - Real-Time Page Posts, No Login (`topapi/facebook-page-posts-api`) Actor

Get the latest public posts of any Facebook Page in one HTTP request: text, date, reactions by type, comments, shares, views, media, links and Page followers. Date window, post type and engagement filters, cursor paging, comments add-on. Works from code, n8n, Make and AI agents (MCP).

- **URL**: https://apify.com/topapi/facebook-page-posts-api.md
- **Developed by:** [Top Api](https://apify.com/topapi) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 post scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 📘 Facebook Page Posts API - Real-Time Page Posts, No Login

**Facebook Page Posts API** returns the latest public posts of any Facebook Page in **one HTTP request**: no run to
start, no dataset to fetch. Send a Page URL, username or numeric id and get its posts back in the response, newest
first. It is an Apify **Server Actor**, so it also works as a **tool for AI agents (MCP)** and as one **HTTP Request**
step in n8n, Make or Zapier.

Each post carries its text, date, URL, reactions by type, comments, shares, video views, photos, video, link preview,
shared post and event, plus the Page's name and follower count. Keep only a date window, one post type, posts above a
reactions / comments / shares floor, or posts that mention your keywords. **You pay per post returned**; a request that
returns no post costs nothing.

### ✨ What you get

- 📝 **Post text** (plain and with links), hashtags, mentions, the post URL and id
- 📅 **Date**: Unix timestamp and ISO `published_at`
- ❤️ **Engagement**: reactions total and by type (like, love, care, haha, wow, sad, angry), comments, shares, video
  views and plays, engagement rate against the Page's followers
- 🖼️ **Media**: photos and albums (with alt text), video URL / id / thumbnail / duration, link previews, shared posts,
  events, caption tracks
- 🏷️ **The Page**: name, id, URL, followers, "talking about", Ad Library id
- 💬 **Top public comments and video files** with `includePostDetails`; **video transcripts** with `captionText` (free)
- 🧭 **Filters**: date window, post type, minimum reactions / comments / shares, keywords
- 📄 **Paging**: `meta.nextCursor` reads the next posts of the same Page
- 🔑 No Facebook account, no cookies, no API key of yours (only your Apify token)

### 🚀 How to call it

Every request needs your **Apify API token** in the `Authorization` header.

#### GET

```bash
curl "https://topapi--facebook-page-posts-api.apify.actor/posts?page=NASA&maxPosts=10" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>"
```

#### POST

```bash
curl -X POST "https://topapi--facebook-page-posts-api.apify.actor/posts" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d '{"page": "https://www.facebook.com/Starbucks", "startDate": "7 days", "maxPosts": 20, "minReactions": 100}'
```

#### Python

```python
import requests

URL = "https://topapi--facebook-page-posts-api.apify.actor/posts"
HEADERS = {"Authorization": "Bearer <YOUR_APIFY_TOKEN>"}
params = {"page": "NASA", "maxPosts": 50}
posts = []
for _ in range(3):                       # up to 150 posts, 50 per request
    r = requests.get(URL, params=params, headers=HEADERS, timeout=180)
    data = r.json()
    if r.status_code != 200:
        print(r.status_code, data["error"]["type"]); break
    posts += data["items"]
    if not data["meta"]["nextCursor"]:
        break
    params["cursor"] = data["meta"]["nextCursor"]
print(len(posts), "posts")
```

#### JavaScript

```javascript
const res = await fetch(
    'https://topapi--facebook-page-posts-api.apify.actor/posts?page=NASA&maxPosts=10',
    { headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}` } },
);
const { items, meta } = await res.json();
console.log(items.length, meta.page.followers, meta.nextCursor);
```

#### n8n, Make, Zapier

One **HTTP Request** step: method `GET`, URL `https://topapi--facebook-page-posts-api.apify.actor/posts`, query
parameters `page` and `maxPosts`, header `Authorization` = `Bearer <YOUR_APIFY_TOKEN>`. The posts are `items`. To poll a
Page for new posts, add `startDate` = the time of your last poll (an ISO time like `2026-11-18T08:00:00Z`, or `2 hours`).

#### AI agents (MCP)

MCP server URL: `https://topapi--facebook-page-posts-api.apify.actor/mcp` (Streamable HTTP, header
`Authorization: Bearer <YOUR_APIFY_TOKEN>`). Tool: `get_page_posts`, same parameters as the HTTP endpoint. Use
`outputFormat: "compact"` to give the model only the core fields.

### ⚙️ Parameters

| Parameter | Type | Default | What it does |
|---|---|---|---|
| `page` | string | required | The Page: URL (`facebook.com/NASA`, `/people/<name>/<id>`, `profile.php?id=`), username (`NASA`, `@NASA`) or numeric id. Public profiles work too. Also accepted as `url`, `pageUrl`, `startUrl`, `page_url`, `username`, `handle`, `pageId`, `page_id`, `id`. |
| `maxPosts` | integer | `10` | Posts to return, 1-50, newest first. Also `maxPostsPerPage`, `resultsLimit`, `max_posts`, `limit`. |
| `startDate` | string | | Only posts on or after this time: `2026-11-01`, `2026-11-01T08:00:00Z`, `6 hours`, `7 days`, `2 months`, or a day count (1 = today). Facebook applies the window itself. |
| `endDate` | string | | Only posts on or before this time (a bare day counts whole). |
| `postType` | `all` | `photo` | `video` | `link` | `text` | `event` | `share` | `all` | Only one kind of post (`photo` includes albums; `share` = posts sharing another post). |
| `minReactions` | integer | `0` | Only posts with at least this many reactions. |
| `minComments` | integer | `0` | Only posts with at least this many comments. |
| `minShares` | integer | `0` | Only posts shared at least this many times. |
| `keywordFilter` | string | | Comma-separated words: keep posts whose text, link title, shared post or event name mention any of them. |
| `includePostDetails` | boolean | `false` | Add each post's own top public comments, video SD/HD file URLs and view count. |
| `commentsLimit` | integer | `10` | With details: top comments per post, 1-50. |
| `commentsSort` | `most_relevant` | `newest` | `all` | `most_relevant` | With details: comment order. |
| `captionText` | boolean | `false` | Add the transcript of videos that carry a caption track (free). |
| `outputFormat` | `default` | `compact` | `apify` | `default` | Every field; core fields only (for AI agents); or apify/facebook-posts-scraper's field names. |
| `cursor` | string | | The previous response's `meta.nextCursor`, with the same `page` and filters, to read further. |

`GET /` lists the endpoints; the **Server** tab in Console shows the OpenAPI description.

### 📦 Response

A real response for `page=NASA` (2026-11-18), first post shown, long URLs and the cursor shortened:

```json
{
  "ok": true,
  "count": 10,
  "items": [{
    "post_id": "1690599575768745",
    "type": "photo",
    "url": "https://www.facebook.com/NASA/posts/pfbid0mWQ6eDmdn3nKnMyTx4mstENr2Ah5WkCot74QwCHq4goS3E2xPGTb6kpreDxs2Pxel",
    "message": "Beauty in chaos 🎨\n\nThis photo from our Chandra X-ray Observatory is the clearest view we have of the remains of an exploded star located in the center of the Milky Way. ...",
    "timestamp": 1794953014,
    "published_at": "2026-11-17T22:03:34.000Z",
    "source_type": "page",
    "source_id": "100044561550831",
    "source_name": "NASA - National Aeronautics and Space Administration",
    "source_url": "https://www.facebook.com/NASA",
    "page_followers": 28724900,
    "page_talking_about": 44600,
    "page_ad_library_id": "54971236771",
    "author": { "id": "100044561550831", "name": "NASA - National Aeronautics and Space Administration", "url": "https://www.facebook.com/NASA", "type": "page", "is_verified": true },
    "reactions_count": 1744,
    "comments_count": 44,
    "reshare_count": 168,
    "reactions": { "like": 1238, "love": 448, "care": 29, "wow": 25, "haha": 2, "sad": 1, "angry": 1 },
    "engagement_count": 1956,
    "engagement_rate": 0.006809,
    "image": { "uri": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-6/916765074_...jpg", "height": 526, "width": 526, "id": "1690599555768747" },
    "image_alt": "A supernova remnant looks like colorful paints swirling together set against the darkness of space. ...",
    "mentions": [{ "id": "100064533380525", "name": " Chandra X-ray Observator", "url": "https://www.facebook.com/chandraxrayobservatory", "type": "profile" }],
    "privacy": "Public",
    "top_level_url": "https://www.facebook.com/100044561550831/posts/1690599575768745",
    "scraped_at": "2026-11-18T17:40:12.311Z"
  }],
  "meta": {
    "page": { "id": "100044561550831", "name": "NASA - National Aeronautics and Space Administration", "url": "https://www.facebook.com/NASA", "username": "NASA", "followers": 28724900, "talking_about": 44600 },
    "read": 10,
    "filtered": {},
    "stopReason": "max_posts",
    "nextCursor": "eyJ2IjoxLCJwIjoiMTAwMDQ0NTYxNTUwODMxIiwiYyI6IkFRSFRkVFY5...",
    "charged": { "post-scraped": 10 },
    "ms": 4970
  }
}
```

| Field | Filled (70 posts from 11 Pages, 2026-11-18) |
|---|---|
| `post_id`, `type`, `url`, `timestamp`, `published_at`, `author`, `reactions_count`, `comments_count`, `reshare_count`, `reactions` (by type) | 100% |
| `page_ad_library_id` | 97% |
| `message` | 93% (video-only and some photo posts carry no text) |
| `image` | 86% |
| `top_comment` | 84% (posts with comments) |
| `external_url` | 43% (link posts and links inside the text) |
| `video`, `video_id`, `video_view_count`, `video_thumbnail`, `video_duration_ms` | 30% of all posts = 100% of the 21 video posts |
| `mentions`, `hashtags` | 16%, 10% (posts that use them) |
| `attached_post`, `event` | 6%, 1% (shares and events in this sample) |
| `top_comments`, `video_files` | with `includePostDetails` (7 of 8 test posts got their own comments, 3-5 each) |

`page_followers`, `page_talking_about` and `meta.page` come from the Page's own header (100% on the Pages tested).

### 🧾 Status codes (and what is charged)

| HTTP | `error.type` | Meaning | Charged |
|---|---|---|---|
| `200` | | Posts returned (`meta.warning` says when fewer than `maxPosts` came back and why) | `post-scraped` per post, `post-details` per post with details |
| `400` | `invalid-input` | Bad parameter or date, a group / event / search URL instead of a Page, a cursor this API did not issue | No |
| `400` | `cursor-mismatch` | The cursor belongs to another Page | No |
| `404` | `page-not-found` | Facebook shows no public Page or profile at this address | No |
| `404` | `page-not-public` | Facebook shows the Page only to signed-in users (age- or country-restricted) | No |
| `404` | `no-posts` | The Page has no public posts (in your date window, or after your cursor) | No |
| `404` | `no-posts-passed-filters` | Posts were read but none passed your filters; `error.meta` shows what was read and filtered | No |
| `429` | `too-many-requests` | More than 4 of your requests in flight at once | No |
| `503` | `blocked`, `timeout`, `unexpected-answer` | Facebook refused or did not answer; retry | No |

### 💰 Pricing

| Event | Price |
|---|---|
| Post returned (`post-scraped`) | **$0.0012** ($1.20 per 1,000) |
| Post details add-on (`post-details`) | $0.001 per post that receives its own comments or video files |

No start fee. Nothing is charged for `4xx` or `503` answers. Video transcripts (`captionText`) are free.

### 🗃️ Batch runs (input interface)

You can also start the actor as a normal run with a list of Pages: monitor mode (only posts newer than the last run),
up to 2,000 posts per Page, one dataset row per post, exactly like a batch scraper. Use the HTTP endpoint for one Page
at a time.

### ⏱️ Speed (measured on Apify, 2026-11-18)

- 1 post: 1.5-3.8 s; 10 posts: 5-9 s; 50 posts: 26-49 s (Facebook serves a Page's timeline 3 posts per call)
- 5 posts with `includePostDetails`: 17-31 s (each post's own page is read for its comments and video files)
- These include the first request after a quiet spell, when a server starts (1 post 2.8 s, 10 posts 6.9 s)
- 4 Pages in parallel: all answered, 3.6-4.5 s each (3 posts per Page)

### ⚠️ Limits

- Public posts only, as Facebook shows them to a signed-out visitor: Pages and profiles that need a login (age- or
  country-restricted) answer `404 page-not-public`.
- Facebook can only filter by date. Post type, the reaction / comment / share floors and keywords are checked on each
  post read, and a request whose filters keep almost nothing stops early (fewer than 1 in 5 posts passing) with a
  `meta.warning` or a `404`; continue with `meta.nextCursor` or loosen the filters.
- 50 posts per request; page further with the cursor. Facebook serves a Page's timeline 3 posts per call, so long
  requests take longer (see Speed).
- Pinned posts are not marked (Facebook does not say which post is pinned to signed-out visitors).

### ❓ FAQ

#### Do I need a Facebook account or cookies?

No. The actor reads Facebook's public Page timeline the way a signed-out visitor does. You only need your Apify token.

#### What does a request cost?

$0.0012 per post returned, so a 10-post request is $0.012. A request that returns nothing is free.

#### How do I get more than 50 posts?

Repeat the request with `cursor` set to the previous response's `meta.nextCursor` and the same `page`.

#### How do I get only new posts since my last call?

Set `startDate` to the time of your last call (`2026-11-18T08:00:00Z`) or a relative time (`2 hours`). Facebook applies
that window itself, so an empty window answers `404 no-posts` and costs nothing.

#### Can I pass a numeric Page id or a profile?

Yes: `page=100044561550831`, `page=@NASA`, a `profile.php?id=` URL or a `/people/<name>/<id>` URL all work. Group,
event, search and single-post URLs are refused with a `400` that says why (a post URL reads its Page's timeline).

#### Does it return comments?

Each post carries one top comment Facebook shows on the timeline. The post's own top public comments (up to 50, in the
order you choose) come with `includePostDetails=true`, charged $0.001 per post that gets them.

#### Can I get video transcripts?

`captionText=true` adds the transcript of every video that carries a caption track, free of charge.

#### Does it work with tools built for apify/facebook-posts-scraper?

`outputFormat=apify` returns that actor's field names (`postId`, `text`, `likes`, `comments`, `shares`, `time`, ...),
and its input names `resultsLimit`, `onlyPostsNewerThan`, `onlyPostsOlderThan` are accepted.

#### How do I use it from an AI agent?

Point an MCP client at `https://topapi--facebook-page-posts-api.apify.actor/mcp` with your Apify token. The tool is
`get_page_posts`; `outputFormat: "compact"` keeps answers short.

#### What if Facebook refuses a request?

You get a `503` and pay nothing. The actor already retries on fresh sessions and exits, so a retry a moment later
usually works.

#### Your feedback

Open an issue on the actor page with the request you sent and the response you got.

# Actor input Schema

## `startUrls` (type: `array`):

One per line: a Page URL, a username or a numeric id, e.g. "https://www.facebook.com/NASA", "starbucks", "100044561550831". Public profiles work too ("zuck"), as do profile.php?id= and /people/<name>/<id> links. Groups are not Pages. A post URL reads its Page's timeline; for single posts use Facebook Post Details Scraper.

## `startDate` (type: `string`):

Absolute date (2026-09-01), a full timestamp (2026-09-01T12:00:00Z) or relative to now (24 hours, 7 days, 3 weeks, 2 months, 1 year). Facebook starts the timeline at this date; every post is re-checked before delivery. Empty = no lower bound. Same as onlyPostsNewerThan.

## `endDate` (type: `string`):

Absolute date (2026-06-30, the whole day included), a timestamp or relative (e.g. 30 days). Combine with 'Posted after' for a window, e.g. 2024-01-01 to 2024-01-31 (measured: 10 NASA posts from January 2024 in 4 requests). Empty = up to now. Same as onlyPostsOlderThan.

## `postType` (type: `string`):

Keep only one kind of post. On a 150-post test run (Starbucks, The New York Times, Red Bull) 48% were videos, 20% link posts, 15% photos or albums, 15% text only.

## `minReactions` (type: `integer`):

Keep only posts with at least this many reactions, e.g. 1000 for a Page's hits only. 0 = no minimum.

## `minComments` (type: `integer`):

Keep only posts with at least this many comments, e.g. 50 to find the posts people talk about. 0 = no minimum.

## `minShares` (type: `integer`):

Keep only posts shared at least this many times. 0 = no minimum.

## `keywordFilter` (type: `string`):

Keep only posts whose text, link title or event name contains this word or phrase, case-insensitive, e.g. "launch" or "sale, discount, promo" (comma = any of them). Empty = no filter.

## `skipPostIds` (type: `array`):

Post ids (or post URLs) you already have; they are never delivered or charged. Monitor mode does this for you between scheduled runs.

## `captionText` (type: `boolean`):

Adds video_transcript: the video's captions file (auto-generated or uploaded) read as plain text, plus every caption language Facebook lists. Only videos Facebook has captions for get one (12 of 27 videos on a 2026-10-20 test run). No extra charge.

## `includePostDetails` (type: `boolean`):

Opens each post's public page and adds the post's own top comments (text, author, date, reactions; reels too) and, for videos, the SD/HD file URLs. Charged as the post-details event only for posts that received their own comments or video files. Every row already carries one top comment for free.

## `commentsLimit` (type: `integer`):

How many top-level comments the details add-on returns per post, 1-50. Same price at any number.

## `commentsSort` (type: `string`):

The order Facebook's own comment menu offers.

## `monitorMode` (type: `boolean`):

Remembers, per Page, the newest post already read (in the named key-value store below) and asks Facebook only for newer ones. A scheduled check with nothing new reads a few hundred bytes per Page, delivers nothing and is not charged. Each Page is checked about three times for every post it publishes: every 20 minutes when it posts hourly or faster, every 2 hours when it posts every 6 hours, every 8 hours when it posts daily, and at least once a day; on a faster schedule, runs in between skip it and are not charged. New posts are never lost - they are delivered by the next check.

## `monitorStoreName` (type: `string`):

Name of the key-value store that keeps the per-Page memory for monitor mode. Give each separate feed (a client, a Slack channel) its own name. Letters, digits and hyphens.

## `resetMonitor` (type: `boolean`):

Ignore what the memory remembers for these Pages and read them as on a first run (the memory is then rewritten). Use once, then switch it off.

## `maxPostsPerPage` (type: `integer`):

Cap per Page after filters (your main cost control; you pay per delivered post). Facebook serves the timeline 3 posts per request after a first page of about 10. 0 = the whole public timeline, up to 2,000 per Page. Same as resultsLimit.

## `maxItems` (type: `integer`):

Hard cap for the whole run across all Pages. 0 = no total cap (each Page is still capped above).

## `outputFormat` (type: `string`):

'apify' writes the same row under the field names of apify/facebook-posts-scraper, so a pipeline built on that actor reads this one unchanged. 'Compact' keeps the core fields only.

## `compact` (type: `boolean`):

Same as Output format = compact. Kept so saved tasks keep working.

## `proxyConfiguration` (type: `object`):

Residential US by default: Facebook rate-limits the timeline on Apify's datacenter IPs (8 of 9 requests refused on 2026-10-20), and hides news Pages from some countries. The actor rotates to a fresh session when Facebook refuses one. Post pages for the details add-on go through Apify's datacenter proxy.

## `maxConcurrency` (type: `integer`):

How many Pages are read at once. 3 is a safe default; raise to 6-8 for long Page lists.

## `cacheSession` (type: `boolean`):

Keeps the signed-out session tokens (no login, no cookies of yours) in the named key-value store facebook-page-posts-session for up to 6 hours, so the next run skips a ~70 KB page load. For lists of 4 or more Pages it also keeps each Page's id and header (the followers count on a row is then at most 20 hours old). Monitor runs keep both in their monitor store. Off = every run starts fresh.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.facebook.com/NASA"
  ],
  "postType": "all",
  "minReactions": 0,
  "minComments": 0,
  "minShares": 0,
  "keywordFilter": "",
  "skipPostIds": [],
  "captionText": false,
  "includePostDetails": false,
  "commentsLimit": 10,
  "commentsSort": "most_relevant",
  "monitorMode": false,
  "monitorStoreName": "facebook-page-posts-monitor",
  "resetMonitor": false,
  "maxPostsPerPage": 10,
  "maxItems": 0,
  "outputFormat": "default",
  "compact": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "maxConcurrency": 3,
  "cacheSession": true
}
```

# Actor output Schema

## `posts` (type: `string`):

The dataset of Facebook Page posts (one item per post).

## `summary` (type: `string`):

Per-Page counts (read, filtered, already delivered, delivered), requests made, sessions used and bytes on the wire.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.facebook.com/NASA"
    ],
    "maxPostsPerPage": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("topapi/facebook-page-posts-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://www.facebook.com/NASA"],
    "maxPostsPerPage": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("topapi/facebook-page-posts-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.facebook.com/NASA"
  ],
  "maxPostsPerPage": 10
}' |
apify call topapi/facebook-page-posts-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,topapi/facebook-page-posts-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/F3woY68sYXi8R5Sd6/builds/yKY0BGvjczeOnjLYg/openapi.json
