# Facebook Competitor Benchmark & Best-Time-To-Post (`alpha-scraper/facebook-competitor-benchmark-best-time-to-post`) Actor

\[ 1k/1.49$ ] Facebook Competitor Benchmark & Best-Time-To-Post compares your Page with 1-9 competitors: followers, posting frequency, engagement rate, content mix, top posts and hashtags, plus a day x hour best-time-to-post matrix with confidence level. Public data, no login.

- **URL**: https://apify.com/alpha-scraper/facebook-competitor-benchmark-best-time-to-post.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Competitor Benchmark & Best-Time-To-Post

**Facebook Competitor Benchmark & Best-Time-To-Post** compares your Facebook Page with 1 to 9 competitor Pages and shows when posts tend to earn more engagement. Give Facebook Competitor Benchmark & Best-Time-To-Post your own Page and your rivals, and it returns followers, posting frequency, engagement per post, engagement rate, content mix, top posts, hashtag use and a best-time-to-post matrix.

Facebook Competitor Benchmark & Best-Time-To-Post reads public, logged-out Facebook data only. You do not need a Facebook account or login, so a full competitor report takes one run and a list of Page links.

> **📌 At a glance**
>
> - **Input:** your own Facebook Page plus 1-9 competitor Pages
> - **Output:** a run summary, one metrics record per Page, a benchmark record and a best-time record
> - **Timing:** day of week by hour of day, with sample size and a confidence level
> - **Control:** posts per Page, time zone, date window and minimum sample rules

Social media managers, agencies and brand teams use Facebook Competitor Benchmark & Best-Time-To-Post to see where a Page stands and when to schedule content.

### 🔹 Facebook Competitor Benchmark & Best-Time-To-Post – Key Features

Facebook Competitor Benchmark & Best-Time-To-Post turns recent posts into ranked comparisons.

- **Page benchmark:** every metric is ranked across all Pages, with gaps against your own Facebook Page.
- **Engagement metrics:** reactions, comments and shares per Facebook post, plus engagement rate against followers.
- **Posting frequency:** Facebook posts per week, days since the newest post and an activity status.
- **Content mix:** Facebook photo, video, reel, link and text-only shares, with average engagement per type.
- **Top posts and hashtags:** the highest-engagement Facebook posts and the most used hashtags for each Page.
- **Best-time matrix:** Facebook engagement by weekday and hour in your own time zone.
- **Confidence levels:** each recommendation shows its sample size and a confidence rating.
- **Readable insights:** short sentences name your largest gap and your largest strength.
- **Optional post records:** Facebook Competitor Benchmark & Best-Time-To-Post can add every sampled post as its own record with `includePosts`.

> **✅ Why use this Actor**
>
> Facebook Competitor Benchmark & Best-Time-To-Post replaces manual Page-by-Page comparisons. It measures every Facebook Page the same way, so the ranks and gaps are directly comparable.

### 🔍 What Data Does Facebook Competitor Benchmark & Best-Time-To-Post Extract?

The dataset holds several record types, told apart by the `recordType` field.

| Record type | Key fields | What you get |
|---|---|---|
| `run_summary` | `pagesRequested`, `pagesAnalyzed`, `timezone`, `failedPages`, `warnings`, `method` | What ran, what failed and how metrics are calculated |
| `page_metrics` | `page`, `sample`, `frequency`, `engagement`, `contentMix`, `hashtags`, `topPosts` | One full profile per Facebook Page |
| `benchmark` | `metrics`, `summaryTable`, `insights` | Ranks, gaps and a flat Facebook comparison table |
| `best_time_to_post` | `scopes`, `perPage` | Day-by-hour analysis with recommendations |
| `post` | `postId`, `engagement`, `localTime`, `hashtags` | Optional record per sampled Facebook post |
| `error` | `error` | Returned when `ownPage` or competitors are missing |

Engagement means reactions plus comments plus shares per post. Engagement rate is the mean engagement per post divided by followers, shown as a percentage.

### 🚀 How to Use Facebook Competitor Benchmark & Best-Time-To-Post

Running Facebook Competitor Benchmark & Best-Time-To-Post takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Competitor Benchmark & Best-Time-To-Post from the Apify Store and go to the Input tab.
- **Step 2 – Add your Page:** enter your own Facebook Page in `ownPage`.
- **Step 3 – Add competitors:** list 1 to 9 Facebook Pages in `competitors`.
- **Step 4 – Set the time zone:** enter an IANA name such as `Europe/Berlin` in `timezone`.
- **Step 5 – Choose the sample:** set `postsPerPage` to the number of recent Facebook posts analysed per Page.
- **Step 6 – Run and export:** start Facebook Competitor Benchmark & Best-Time-To-Post, then export JSON, CSV or Excel.

> **💡 Tip:** `ownPage` and `competitors` are prefilled with sample Pages. Replace them with your own list before you run Facebook Competitor Benchmark & Best-Time-To-Post.

### 📥 Facebook Competitor Benchmark & Best-Time-To-Post Input

Facebook Competitor Benchmark & Best-Time-To-Post has ten input fields. You need `ownPage` and at least one competitor.

| Field | Type | Description |
|---|---|---|
| `ownPage` | string | Your Facebook Page as URL, @handle, vanity name or numeric id. It is the baseline for all gaps. |
| `competitors` | array | 1-9 competitor Facebook Pages in the same formats. Only the first 10 Pages including yours are used. |
| `timezone` | string | IANA time zone for the day and hour matrix. Default `UTC`. An unknown name falls back to UTC. |
| `postsNewerThan` | string | Analyse only Facebook posts on or after this date, `YYYY-MM-DD` in UTC, for all Pages. Empty means no limit. |
| `minPostAgeHours` | integer | Facebook posts younger than this are left out of the best-time analysis. Minimum 0, default 24. |
| `minPostsForRecommendation` | integer | Eligible posts needed before a recommendation is made. Minimum 1, default 10. |
| `includePosts` | boolean | Also output every sampled post as a `post` record. Default `false`. |
| `topPostsPerPage` | integer | Highest-engagement Facebook posts listed per Page. Minimum 1, default 5. |
| `postsPerPage` | integer | Recent Facebook posts analysed for every Page. Minimum 1, default 20. |
| `workers` | integer | Facebook Pages processed in parallel, 1 to 4. Default 3. |

More Facebook posts give a steadier benchmark and best-time matrix, but the run takes longer because about one request is needed for every three posts.

Here is a sample input that benchmarks one Page against two competitors using Berlin time:

```json
{
  "ownPage": "https://www.facebook.com/samplesportswear",
  "competitors": ["https://www.facebook.com/examplerunning", "https://www.facebook.com/demoathletics"],
  "timezone": "Europe/Berlin",
  "postsNewerThan": "2026-08-01",
  "minPostAgeHours": 24,
  "minPostsForRecommendation": 10,
  "includePosts": false,
  "topPostsPerPage": 5,
  "postsPerPage": 30,
  "workers": 3
}
```

### 📤 Facebook Competitor Benchmark & Best-Time-To-Post Output

Facebook Competitor Benchmark & Best-Time-To-Post writes the run summary first, then the Page records, the benchmark and the best-time record. The examples below are shortened for readability.

The run summary:

```json
{
  "recordType": "run_summary",
  "ownPage": "samplesportswear",
  "pagesRequested": 3,
  "pagesAnalyzed": 3,
  "postsPerPageRequested": 20,
  "timezone": "America/New_York",
  "minPostAgeHours": 24,
  "postsNewerThan": null,
  "failedPages": null,
  "warnings": null,
  "httpRequests": 42,
  "scrapedAt": "2026-11-06T16:44:08.000Z"
}
```

A Page metrics record from Facebook Competitor Benchmark & Best-Time-To-Post:

```json
{
  "recordType": "page_metrics",
  "key": "samplesportswear",
  "isOwn": true,
  "inputUrl": "https://www.facebook.com/samplesportswear",
  "page": { "title": "Sample Sportswear", "url": "https://www.facebook.com/samplesportswear", "pageId": "100000000000001", "username": "samplesportswear", "category": "Sportswear shop", "followers": 60000, "likes": null, "talkingAboutCount": 2400, "verified": false },
  "requestedPosts": 20,
  "postsAnalyzed": 20,
  "sample": { "postsAnalyzed": 20, "postsWithEngagementData": 20, "oldestPost": "2026-08-14T09:30:00.000Z", "newestPost": "2026-11-05T16:10:00.000Z", "sponsoredPosts": 0, "sharedPosts": 1 },
  "frequency": { "postsPerWeek": 1.6, "postsPerDay": 0.228, "avgHoursBetweenPosts": 105.2, "spanDays": 83.3, "daysSinceNewestPost": 1, "postsInLast30Days": 7, "postsInLast90Days": 20, "activityStatus": "active (posted within 30 days)" },
  "engagement": { "total": 17280, "avgPerPost": 864, "medianPerPost": 710.5, "avgReactionsPerPost": 762, "avgCommentsPerPost": 59, "avgSharesPerPost": 43, "maxPost": 3120, "engagementRatePct": 1.44, "engagementPer1kFollowers": 14.4 },
  "contentMix": {
    "photo": { "count": 11, "sharePct": 55, "avgEngagement": 790, "medianEngagement": 640 },
    "reel": { "count": 5, "sharePct": 25, "avgEngagement": 1240, "medianEngagement": 1100 },
    "status": { "count": 4, "sharePct": 20, "avgEngagement": 597.5, "medianEngagement": 540 }
  },
  "bestContentType": { "type": "reel", "avgEngagement": 1240, "minSamples": 2 },
  "hashtags": { "postsWithHashtags": 9, "postsWithHashtagsPct": 45, "avgHashtagsPerPost": 0.9, "uniqueHashtags": 8, "top": [{ "tag": "#samplerun", "count": 6 }] },
  "linksAndMedia": { "postsWithMedia": 16, "mediaSharePct": 80, "postsWithExternalLink": 3, "externalLinkSharePct": 15, "videoAndReelSharePct": 25, "avgViewsPerVideoPost": 8120.5 },
  "topPosts": [
    { "postId": "1234567890123456", "url": "https://www.facebook.com/samplesportswear/posts/pfbid0ExampleSamplePostId", "time": "2026-10-18T22:05:00.000Z", "localTime": "2026-10-18 18:05", "dayOfWeek": "Sun", "hour": 18, "type": "reel", "text": "Run club recap: 5K at sunrise.", "reactions": 2650, "comments": 260, "shares": 210, "engagement": 3120, "views": 41200, "hashtags": ["#samplerun"], "hasExternalLink": false, "isSponsored": false }
  ],
  "scrapedAt": "2026-11-06T16:44:08.000Z"
}
```

The benchmark record, with one metric and one table row:

```json
{
  "recordType": "benchmark",
  "ownPage": "samplesportswear",
  "competitors": ["examplerunning", "demoathletics"],
  "pages": ["samplesportswear", "examplerunning", "demoathletics"],
  "metrics": [
    {
      "metric": "followers",
      "label": "Followers",
      "unit": "count",
      "kind": "performance",
      "betterWhen": "higher",
      "values": { "samplesportswear": 60000, "examplerunning": 74500, "demoathletics": 52000 },
      "ranks": { "examplerunning": 1, "samplesportswear": 2, "demoathletics": 3 },
      "ranked": 3,
      "ownValue": 60000,
      "ownRank": 2,
      "competitorAvg": 63250,
      "competitorMedian": 63250,
      "ownVsCompetitorAvgPct": -5.1,
      "highest": { "page": "examplerunning", "value": 74500 },
      "gapToHighest": 14500,
      "gapsVsOwn": { "examplerunning": { "diff": 14500, "pctOfOwn": 24.2 }, "demoathletics": { "diff": -8000, "pctOfOwn": -13.3 } }
    }
  ],
  "summaryTable": [
    { "page": "samplesportswear", "title": "Sample Sportswear", "isOwn": true, "followers": 60000, "followers_rank": 2, "engagementRatePct": 1.44, "engagementRatePct_rank": 1 }
  ],
  "insights": ["Largest strength vs competitor average: engagement rate (own +35.2% vs average; higher is better)."],
  "scrapedAt": "2026-11-06T16:44:08.000Z"
}
```

The best-time record, without the full day-by-hour grids:

```json
{
  "recordType": "best_time_to_post",
  "ownPage": "samplesportswear",
  "timezone": "America/New_York",
  "minPostAgeHours": 24,
  "scopes": {
    "ownPage": {
      "timezone": "America/New_York",
      "eligiblePosts": 20,
      "pagesIncluded": 1,
      "dataSufficiency": "low",
      "byDayOfWeek": [{ "day": "Thu", "n": 4, "avgEngagementIndex": 1.38, "avgEngagement": 905.3 }],
      "byHourBlock": [{ "label": "16:00-19:59", "n": 6, "avgEngagementIndex": 1.27, "avgEngagement": 861.2 }],
      "cellsWithMinSamples": 2,
      "recommendations": [
        { "level": "dayOfWeek", "when": "Thu", "n": 4, "avgEngagementIndex": 1.38, "avgEngagement": 905.3, "confidence": "medium" },
        { "level": "hourBlock", "when": "16:00-19:59", "n": 6, "avgEngagementIndex": 1.27, "avgEngagement": 861.2, "confidence": "low" }
      ],
      "confidence": "low"
    }
  },
  "scrapedAt": "2026-11-06T16:44:09.000Z"
}
```

#### 🧾 Facebook Competitor Benchmark & Best-Time-To-Post output field guide

- `frequency.activityStatus` reads active, slowing or dormant, based on the newest sampled Facebook post.
- `engagement` and `engagementRatePct` use reactions plus comments plus shares, and `method` in the summary repeats the formulas.
- `contentMix` covers photo, video, reel, link, status and other, and `bestContentType` names the type with the top average engagement.
- `benchmark.metrics` ranks every metric, where rank 1 is the top performer, and `gapsVsOwn` shows each competitor against you.
- `summaryTable` is one flat row per Page, so it exports cleanly to CSV.
- `recommendations` list the top weekdays, hour blocks, hours and weekday-hour slots, each with `n` and `confidence`.
- `scopes` has `ownPage`, `competitorsPooled` and `allPagesPooled`, and `perPage` covers each competitor.
- `matrix` holds `sampleSize` and `avgEngagementIndex` for every weekday and hour, which the example leaves out.
- `warning` appears on a Page record when fewer posts were read than requested or the newest post is old.

### 🕒 How to Find the Best Time to Post on Facebook with Facebook Competitor Benchmark & Best-Time-To-Post

Facebook Competitor Benchmark & Best-Time-To-Post groups recent Facebook posts by local weekday and hour, then compares each group with the Page's typical post. A score above 1.0 means that slot beat the typical post.

Read `confidence` before you act. With few posts per slot the result is a hint, not proof, so raise `postsPerPage` for steadier answers. If there are too few eligible posts, the record says there is not enough data.

### 📊 How to Benchmark Your Facebook Page Against Competitors with Facebook Competitor Benchmark & Best-Time-To-Post

Enter your Page in `ownPage` and up to nine rivals in `competitors`. Facebook Competitor Benchmark & Best-Time-To-Post then ranks followers, posting frequency, engagement rate and content style across all Pages.

Open the `benchmark` record and read `insights` first. Use `summaryTable` when you want one row per Facebook Page for a spreadsheet.

### 🎯 Facebook Competitor Benchmark & Best-Time-To-Post Use Cases

Facebook Competitor Benchmark & Best-Time-To-Post fits many planning and reporting tasks.

- **Posting schedules:** pick weekdays and hours that showed above-typical engagement.
- **Competitor tracking:** see how often rival Facebook Pages post and which formats they favour.
- **Client reports:** deliver a ranked Facebook comparison from Facebook Competitor Benchmark & Best-Time-To-Post with clear gaps and strengths.
- **Content planning:** compare Facebook reels, photos and text-only posts by average engagement.

### 💰 Pricing

Facebook Competitor Benchmark & Best-Time-To-Post runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of results and the resources used by the run.

> **💡 Cost tip:** start with two or three Pages and a smaller `postsPerPage`. Keep `includePosts` off in Facebook Competitor Benchmark & Best-Time-To-Post runs unless you need every sampled post.

### 💡 Tips and Best Practices

- **Start small:** a short Facebook Competitor Benchmark & Best-Time-To-Post run confirms the Page names and shows the record types.
- **Set your time zone:** the day and hour matrix of Facebook Competitor Benchmark & Best-Time-To-Post follows `timezone`, so match your audience.
- **Use enough posts:** raise `postsPerPage` so Facebook Competitor Benchmark & Best-Time-To-Post gives a steadier benchmark and matrix.
- **Check warnings:** logged-out Facebook can show older posts for some large Pages, so read `warning`.
- **Mind the sample:** every figure comes from recent public posts, not Page insights.
- **Check nulls:** a `null` field means the value was not shown for that Facebook Page.

> **⚠️ Important:** only use competitor data you are allowed to use. Public Facebook posts can contain personal data, so follow Facebook's terms and rules such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Competitor Benchmark & Best-Time-To-Post?

Facebook Competitor Benchmark & Best-Time-To-Post is an Apify Actor that benchmarks your Facebook Page against competitors and estimates the best times to post from recent public posts.

#### 🧭 How do I benchmark my Facebook Page against competitors?

Add your Page to `ownPage` and rivals to `competitors`, then start Facebook Competitor Benchmark & Best-Time-To-Post. The `benchmark` record ranks every metric.

#### ⏰ How does Facebook Competitor Benchmark & Best-Time-To-Post find the best time to post on Facebook?

Facebook Competitor Benchmark & Best-Time-To-Post compares engagement for each weekday and hour with the Page's typical post and lists the strongest slots with their sample size and confidence.

#### 👥 How many competitors can I compare?

Between 1 and 9 competitor Facebook Pages. Facebook Competitor Benchmark & Best-Time-To-Post uses at most 10 Pages including yours.

#### 📏 How does Facebook Competitor Benchmark & Best-Time-To-Post calculate engagement rate?

Engagement is reactions plus comments plus shares. The rate is the mean engagement per post divided by followers, as a percentage.

#### 🔐 Does Facebook Competitor Benchmark & Best-Time-To-Post need a Facebook login?

No. Facebook Competitor Benchmark & Best-Time-To-Post reads publicly visible Facebook Page content, so no account or cookies are required.

#### 📝 Can I also get every analysed Facebook post?

Yes. Switch on `includePosts` and Facebook Competitor Benchmark & Best-Time-To-Post adds each sampled post as a `post` record.

#### ⚖️ Is it legal to benchmark Facebook competitors?

Facebook Competitor Benchmark & Best-Time-To-Post collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms and local privacy laws.

### 📞 Support

If you have questions, ideas for new metrics or a Facebook Page where Facebook Competitor Benchmark & Best-Time-To-Post returns unexpected data, send the Page link and the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

## `ownPage` (type: `string`):

Your own Page: URL, @handle, vanity name or numeric id. It is the baseline for the benchmark gaps.

## `competitors` (type: `array`):

Competitor Page URLs, @handles, vanity names or numeric ids (1-9 Pages). Only the first 10 Pages including yours are used.

## `timezone` (type: `string`):

IANA time zone name used for the day-of-week / hour-of-day matrix, for example America/New_York or Europe/Berlin. An unknown name falls back to UTC.

## `postsNewerThan` (type: `string`):

Only analyse posts published on or after this date (YYYY-MM-DD, UTC). The same window applies to all Pages. Leave empty for no date limit.

## `minPostAgeHours` (type: `integer`):

Posts younger than this are left out of the best-time analysis.

## `minPostsForRecommendation` (type: `integer`):

Minimum number of eligible posts needed before a best-time recommendation is made. With fewer posts the output says there is too little data.

## `includePosts` (type: `boolean`):

Also output every sampled post as its own 'post' record, in addition to the run summary, the per-Page metrics, the benchmark and the best-time records.

## `topPostsPerPage` (type: `integer`):

How many of a Page's posts with the highest engagement are listed in its metrics record.

## `postsPerPage` (type: `integer`):

Number of most recent posts analysed for every Page, yours and the competitors'. More posts give a more reliable benchmark and best-time matrix but need more requests (about one per 3 posts).

## `workers` (type: `integer`):

Number of Pages processed in parallel, each with its own client. Values above 4 are treated as 4.

## Actor input object example

```json
{
  "ownPage": "https://www.facebook.com/nike",
  "competitors": [
    "https://www.facebook.com/adidas",
    "https://www.facebook.com/puma"
  ],
  "timezone": "UTC",
  "minPostAgeHours": 24,
  "minPostsForRecommendation": 10,
  "includePosts": false,
  "topPostsPerPage": 5,
  "postsPerPage": 20,
  "workers": 3
}
```

# Actor output Schema

## `results` (type: `string`):

Structured records extracted by Facebook Competitor Benchmark & Best-Time-To-Post and stored in the run's default dataset.

# 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 = {
    "ownPage": "https://www.facebook.com/nike",
    "competitors": [
        "https://www.facebook.com/adidas",
        "https://www.facebook.com/puma"
    ],
    "postsPerPage": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-competitor-benchmark-best-time-to-post").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 = {
    "ownPage": "https://www.facebook.com/nike",
    "competitors": [
        "https://www.facebook.com/adidas",
        "https://www.facebook.com/puma",
    ],
    "postsPerPage": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-competitor-benchmark-best-time-to-post").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 '{
  "ownPage": "https://www.facebook.com/nike",
  "competitors": [
    "https://www.facebook.com/adidas",
    "https://www.facebook.com/puma"
  ],
  "postsPerPage": 20
}' |
apify call alpha-scraper/facebook-competitor-benchmark-best-time-to-post --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-competitor-benchmark-best-time-to-post"
        }
    }
}
```

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/dtq9HIG3rXaq00EW3/builds/fOtlI4g6WfvDbOvtj/openapi.json
