Social media6 min readBy Purrkey teamUpdated

How to list a Facebook page's reels by URL

List a Facebook page's reels with captions, views, permalinks and thumbnails, then page through results with a cursor

On this page

You have four Facebook pages to review and about 40 reels to compare before you pick formats for next month's content calendar. Call anyapi.facebook.profile_reels once per page, follow the cursor while it returns one, and sort the responses into a single worksheet

The worksheet is the deliverable: one row per reel, the numbers the tool returns, and a column you fill in with a format hypothesis. No run has been executed for this guide, so the tables below are a design and the cells are placeholders

Example input and worksheet design

Four page URLs, invented for this design and safe to swap for your own:

At roughly ten reels per page the sweep produces about 40 rows. The columns below are the design; values are placeholders showing the shape

createdUtccaptionviewslikescommentssharesurlthumbnailvideoIdFormat hypothesis
epoch secondscaption text00 or null0 or null0 or nullcanonical reel URLimage URLvideo idshort tutorial, product clip, behind the scenes

The last column is yours. The tool does not classify a reel, so read the captions and write the hypothesis by hand

What the tool takes

url is required: the full Facebook page or profile URL, copied from the browser. Here that is one of the four example URLs above

cursor is optional and comes from a previous response's data.nextCursor. On a first call you leave it out

requireFields is optional, and it is the one input that can move the price. Omit it and routing is unchanged, with the cheapest source serving. Name fields from the enum and the request is served only by a source that returns each one of them: authorVerified, comments, feedbackId, likes, shares, videoUrl. Fields you do not name are still returned whenever the serving source has them

The catalog states the trade: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a reel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge

For a format review the default lane is usually enough. Reach for requireFields only when a null in likes, comments or shares would break the comparison

Reading the fields that drive the decision

caption and createdUtc organise the review. createdUtc is a UTC epoch timestamp in seconds, so multiply by 1000 for a JS Date. caption is the text you read to guess the format

views is an integer on the reel. likes, comments and shares are the engagement counts, and the contract says each is null when the serving source does not report it. A null is a source limitation, not a zero

url is the canonical reel permalink and thumbnail gives you a still for the worksheet. videoId is the id that appears in the reel's own URL, while the reel's id, also required, is the Facebook post id. videoUrl is a playable file and is nullable when the source cannot read it

Sort by views, read the captions of the top rows, and write one format hypothesis per row. Where likes, comments or shares come back null, mark that comparison as partial instead of treating the missing number as zero

The cursor limit

Paging is cursor only. Pass data.nextCursor from one response back as cursor in the next call, and repeat until nextCursor is null, which means this lane has no more reels

The limit sits at the end of each page. Keep each page's chain together: the cursor belongs to the lane that served the request, so finishing page one before starting page two keeps the bookkeeping clean

A page with no reels is not an error. The response comes back with found: false and reason: not_found, and the contract says that is a successful call. Record the page as empty and move on

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list the reels
for four Facebook pages. Check the current inputs and price of
anyapi.facebook.profile_reels before running anything. Call the tool once
per page with its url, then pass data.nextCursor back as cursor and repeat
until nextCursor is null. Do not set requireFields. Return one table with
createdUtc, caption, views, likes, comments, shares, url, thumbnail and
videoId, grouped by page and sorted by views, keeping null as null. Add a
last column called Format hypothesis and leave it empty for me to fill.

Page URLs (example, replace with your own):
https://www.facebook.com/yourbrandpage
https://www.facebook.com/lindqvistbakerypage
https://www.facebook.com/okaforplumbingpage
https://www.facebook.com/ramanstudio

Run one page first. The cursor chain for that page tells you how many calls the other three will take, which is the number the cost plan uses

Estimated tool cost

Prices read from the Purrkey catalog on November 13, 2026, through POST /v1/runs with toolId anyapi.facebook.profile_reels. The unit is max_call, described as "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Single page lookupcalls x max price$0.00477 per call1$0.00477
First page of each pagecalls x max price$0.00477 per call4$0.01908
One cursor follow-up eachcalls x max price$0.00477 per call4$0.01908
Four-page sweep8$0.03816

The planned scenario is four pages with one cursor follow-up each, at most eight calls. A single page lookup is one call at most, $0.00477. Model fees for the agent are not counted in either figure

Run the first page

Open the Facebook tool page, copy one page URL and make the single call. A real nextCursor and a real row count tell you more than a plan does

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Facebook.
Explore Facebook tools and pricing

FAQ

How do I list a Facebook page's reels by URL?

Call anyapi.facebook.profile_reels with url set to the full page URL, then pass data.nextCursor back as cursor and repeat until nextCursor is null. The response carries a reels array with caption, views, thumbnail, permalink and other fields.

What inputs does anyapi.facebook.profile_reels take?

It requires url, the full Facebook page or profile URL. It also accepts cursor from a previous response and an optional requireFields array.

How does cursor pagination work for page reels?

Pass data.nextCursor from one response back as cursor in the next call. A null nextCursor means this lane has no more reels.

Does requireFields change the price?

Naming fields can raise the price, because when the cheapest source cannot return a named field a dearer source serves and you are quoted and charged its price. Omitting it keeps routing unchanged, with the cheapest source serving.

Why are likes, comments or shares null on some reels?

The contract says each of those counts is null when the serving source does not report it. A null is a source limitation, not a zero.

How much does it cost to list reels for four pages?

The unit price is up to $0.00477 per call. Four page calls plus four cursor follow-ups is eight calls, at most $0.03816.

What happens when a page has no reels?

The response comes back with found false and reason not_found. The contract says that is a successful call, not an error.

Next step

Try this with Facebook

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Facebook tools

Share this article