Posts on your Facebook Page with engagement counts
facebook.facebook.page.postsList the posts published on your Facebook Page with their engagement counts
- Price
- freeZum Anbieterpreis
- Success rate
- 100 %Last 30 days · 194 calls
- Latency p50
- 320 msp95 1 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/facebook.facebook.page.postsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
needs the Page token, which treg injects once this Page is selected on the connection; with the user token Meta answers code 190 / subcode 2069032 ('A Page access token is required for this call'). page_id must be the selected Page. /feed is the wider edge (it also includes posts by visitors); /posts is the Page's own
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Pfadparameter | ||||
page_id | Zeichenkette | Erforderlich | numeric id of the Page selected on the connection | 123456789012345 |
| Abfrageparameter | ||||
limit | Ganzzahl | Optional | default 25 | 25 |
since | Zeichenkette | Optional | Unix timestamp or YYYY-MM-DD | 2026-07-01 |
until | Zeichenkette | Optional | ||
fields | Zeichenkette | Erforderlich | the .summary(true) suffixes turn the nested edges into counts instead of full lists | id,message,created_time,permalink_url,shares,comments.summary(true).limit(0),reactions.summary(true).limit(0) |
- Pfadparameter
page_idZeichenketteErforderlichnumeric id of the Page selected on the connection
Beispiel:
123456789012345- Abfrageparameter
limitGanzzahlOptionaldefault 25
Beispiel:
25sinceZeichenketteOptionalUnix timestamp or YYYY-MM-DD
Beispiel:
2026-07-01untilZeichenketteOptionalfieldsZeichenketteErforderlichthe .summary(true) suffixes turn the nested edges into counts instead of full lists
Beispiel:
id,message,created_time,permalink_url,shares,comments.summary(true).limit(0),reactions.summary(true).limit(0)
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
curl -X GET 'https://toolswitch.dev/v1/tools/facebook.facebook.page.posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/facebook.facebook.page.posts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/facebook.facebook.page.posts", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.