# Facebook data APIs for AI agents > morigraph has 27 Facebook data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including profile, post, ad creative details and ad details. You need no Facebook developer account or API key, only one morigraph connection. Calls cost from 0.014 credits, about $1.40 for 1,000 calls, paid from one balance. ## How to call it Every data API is run by one tool, `data_api`, with the API's id and its arguments. The example is Facebook Profile. In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Use morigraph's Facebook Profile data API with {"url":"https://www.facebook.com/nike"} and summarise what comes back. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call data_api --json-args '{"api":"facebook.profile","input":{"url":"https://www.facebook.com/nike"}}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/data_api \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"api":"facebook.profile","input":{"url":"https://www.facebook.com/nike"}}' ``` ## Facebook Profile `facebook.profile` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 Fetch a Facebook page's public profile (likes, followers, category, about) by URL or handle. | Argument | Type | Required | What it is | |---|---|---|---| | `handle` | string | no | Facebook page handle/username. | | `url` | string | no | Full Facebook page URL. profile.php without an id value names no page and is refused as invalid input, with no charge. | Returns: `about`, `adLibraryPageId`, `adStatus`, `avatarUrl`, `category`, `coverPhotoUrl`, `createdUtc`, `followers`, `id`, `likes`, `name`, `pageActive`, `phone`, `talkingAboutCount`, `url`, `website` ``` data_api({"api":"facebook.profile","input":{"url":"https://www.facebook.com/nike"}}) ``` ## Facebook Post `facebook.post` · 0.014 credits a call (about $1.40 for 1,000), at most 0.064 Fetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views). | Argument | Type | Required | What it is | |---|---|---|---| | `url` | string | yes | Full Facebook post URL. | Returns: `authorId`, `authorImage`, `authorName`, `authorVerified`, `comments`, `createdUtc`, `durationSeconds`, `feedbackId`, `id`, `image`, `likes`, `reactions`, `sharedPostText`, `shares`, `text`, `url`, `videoId`, `videoUrl`, `views` ``` data_api({"api":"facebook.post","input":{"url":"https://www.facebook.com/reel/2166091230582141/"}}) ``` ## Facebook Ad Creative Details `facebook.ad_details_full` · 0.081 credits a call (about $8.10 for 1,000) Pull one Meta Ad Library ad with its creative: every carousel variant, image and video URL, headline, body, and call to action. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | yes | Meta Ad Library ad ID - the numeric id in an Ad Library URL (e.g. "962050096457659" from https://www.facebook.com/ads/library/?id=962050096457659). | Returns: `active`, `adArchiveId`, `body`, `caption`, `categories`, `creatives`, `ctaText`, `ctaType`, `displayFormat`, `endedUtc`, `image`, `imageResized`, `images`, `isReshared`, `linkDescription`, `linkUrl`, `pageCategories`, `pageDeleted`, `pageId`, `pageImage`, `pageLikes`, `pageName`, `pageUrl`, `platforms`, `sourceUrl`, `startedUtc`, `title`, `videoPreviewImage`, `videoUrl`, `videos` ``` data_api({"api":"facebook.ad_details_full","input":{"id":"962050096457659"}}) ``` ## Facebook Ad Details `facebook.ad_details` · 0.024 credits a call (about $2.40 for 1,000) Look up a single Meta Ad Library ad by ID or URL and get the advertiser, creative text, call-to-action, platforms, and run dates as clean JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | Meta Ad Library ad ID (e.g. "702369045530963"). Provide either id or url. | | `url` | string | no | Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1185617869915074"). Provide either id or url. | Returns: `active`, `adArchiveId`, `body`, `caption`, `categories`, `creatives`, `ctaText`, `ctaType`, `currency`, `displayFormat`, `endDate`, `image`, `isReshared`, `linkDescription`, `linkUrl`, `media`, `pageCategories`, `pageDeleted`, `pageId`, `pageLikes`, `pageName`, `pageProfilePicture`, `pageUrl`, `platforms`, `sourceUrl`, `startDate`, `text`, `title`, `type`, `url`, `videoUrl` ``` data_api({"api":"facebook.ad_details","input":{"id":"962050096457659"}}) ``` ## Facebook Ad Search `facebook.ads_search` · 0.015 credits a call (about $1.50 for 1,000), at most 0.32 Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination. | Argument | Type | Required | What it is | |---|---|---|---| | `adType` | all \| political_and_issue_ads | no | Restrict to all ads (default) or only political and issue ads. | | `country` | string | no | Two-letter country code to scope results. Omit for all countries. | | `cursor` | string | no | Opaque pagination cursor from a previous response's nextCursor. | | `endDate` | string | no | Filter to ads with impressions on or before this date, in YYYY-MM-DD format. | | `mediaType` | ALL \| IMAGE \| VIDEO \| MEME \| IMAGE_AND_MEME \| NONE | no | Creative media type filter. | | `query` | string | yes | Keyword to search the Meta Ad Library for (e.g. "protein powder"). | | `searchType` | keyword_unordered \| keyword_exact_phrase | no | Match mode for the query: loose keyword match (keyword_unordered, the default) or exact phrase (keyword_exact_phrase). | | `sortBy` | impressions \| recent | no | Sort order: impressions (highest first, the default) or recent (most recent). | | `startDate` | string | no | Filter to ads with impressions on or after this date, in YYYY-MM-DD format. | | `status` | ALL \| ACTIVE \| INACTIVE | no | Ad status filter. | Returns: `active`, `adCount`, `ads`, `caption`, `categories`, `creatives`, `ctaText`, `ctaType`, `displayFormat`, `endDate`, `id`, `isReshared`, `linkDescription`, `linkUrl`, `media`, `nextCursor`, `pageCategories`, `pageDeleted`, `pageId`, `pageLikes`, `pageName`, `pageProfilePicture`, `pageUrl`, `platforms`, `sourceUrl`, `startDate`, `text`, `title`, `totalResults` ``` data_api({"api":"facebook.ads_search","input":{"country":"US","query":"nike","searchType":"keyword_exact_phrase"}}) ``` ## Facebook Ad Transcript `facebook.ad_transcript` · 0.024 credits a call (about $2.40 for 1,000), at most 0.64 Get the spoken-word transcript of a Meta Ad Library video ad by ad ID or URL. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | Meta Ad Library ad ID (e.g. "3152243841584775"). Provide either id or url. | | `url` | string | no | Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=3152243841584775"). Provide either id or url. | Returns: `adId`, `transcript`, `transcriptAvailable`, `url` ``` data_api({"api":"facebook.ad_transcript","input":{"id":"3152243841584775"}}) ``` ## Facebook Comment Replies `facebook.comment_replies` · 0.024 credits a call (about $2.40 for 1,000) List the replies to a Facebook post comment (text, author, reactions, and timestamps) as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response. | | `expansionToken` | string | yes | The expansion_token of the comment, from the post comments endpoint. | | `feedbackId` | string | yes | The feedback_id of the comment (not the comment id). | Returns: `authorId`, `authorName`, `authorProfilePicture`, `createdUtc`, `expansionToken`, `feedbackId`, `hasNextPage`, `id`, `nextCursor`, `reactionCount`, `replies`, `replyCount`, `text` ``` data_api({"api":"facebook.comment_replies","input":{"expansionToken":"MjoxNzk0OTY1NTI2OgF_48PgxDtZTfrjUQhIugX44eOMAdmECIWMKjB90eqNjepQ96yP8oclCv0Y3oD-2SwDK29iQXC1QBTY6d2VcsRTPW46EqgITJUFn5Ce5By9kj3HY4AFHPLUm-Fl70UnVSWN3x_ouAL-CEDDHkwftb0msi_dYu3r_oc0CKA6m_tp2yr-JWgmIBriQbBfJIBCP8GIY4OlY2RwFB3tC4WJnZiIvp3oluGCjsPbkZ8THb6MU5LqeQZ1C8QvIMXwhzrJWhSArtXaSFNxXeOgQdCIVRuTN0eUZP4cJzV-BzKkK2u8M1k7uKFjSW3dU9HzELDfAsqpkT9r5AnkYybhYzzgiISYWONjOAK7MWl8fMEgduZdZ_HZIRUrJeVm8P-amftCho2kJ5QnTDB-xIudAIX_v-LymiVy1WL4EazzQHa6oGd4y4haBcnmmRcCv8Sk8Zi98Z7fq4QKpcCybAtPCZXcdSwofUXmFEQCOj-CY2QkReyYIwjNPATpFZvzZEb9cXJmhOovn_toQBL7qzFVWN_7hOqaBDrHT4HnWUnfzU0_ZPrm5ytlY_eaRv1uSt75fuIJIM3BR7lqtoHGyVD93Au8d8DlrfXp1YrNVLYxrCwzhXEaX61qjeRox9rt2R-KXHApANRAoKS9TPlrQMC0T80B9DUEJo_22itbVSC7cis8VqmujfE9O7qDbnSYPZVW6muEp4y8gdd9fhJcix9cTcUQSA0FkGBm4imAIya6c93FrTSp728","feedbackId":"ZmVlZGJhY2s6cGZiaWQwM2RCSlB4elQ4OXYydmRQNFVVM0VnQWVBQXJWUjJ4dlMzS1VrVHd3NjdDeFV3V1lXMjFTYXBzOXBYVTUyQzdOc0pjUEZ6VDlkajh1VzY5TGpaWG80cWpoM2tnQ0cxZlV5RmRjbA=="}}) ``` ## Facebook Company Ads `facebook.company_ads` · 0.02 credits a call (about $2.00 for 1,000), at most 0.024 List the Meta Ad Library ads a company is running by page ID or company name (creative text, format, platforms, and run dates) with cursor pagination. | Argument | Type | Required | What it is | |---|---|---|---| | `companyName` | string | no | Company name to search (e.g. "nike"). Exact-match and case-sensitive against the Meta Ad Library index; an advertiser with no indexed page returns found:false. | | `country` | string | no | Two-letter country code to scope results. Defaults to all countries. | | `cursor` | string | no | Opaque pagination cursor from a previous response's nextCursor. | | `endDate` | string | no | Filter to ads with impressions on or before this date, in YYYY-MM-DD format. | | `language` | string | no | Two-letter language code to filter ads (e.g. "EN", "ES", "FR"). | | `mediaType` | ALL \| IMAGE \| VIDEO \| MEME \| IMAGE_AND_MEME \| NONE | no | Creative media type filter. | | `pageId` | string | no | Company's Ad Library page ID. Provide either pageId or companyName. | | `sortBy` | impressions \| recent | no | Sort order: impressions (highest first, the default) or recent (most recent). | | `startDate` | string | no | Filter to ads with impressions on or after this date, in YYYY-MM-DD format. | | `status` | ALL \| ACTIVE \| INACTIVE | no | Ad status filter. Defaults to ACTIVE. | Returns: `active`, `adCount`, `ads`, `caption`, `categories`, `creatives`, `ctaText`, `ctaType`, `currency`, `displayFormat`, `endDate`, `id`, `isReshared`, `linkDescription`, `linkUrl`, `media`, `nextCursor`, `pageCategories`, `pageDeleted`, `pageId`, `pageLikes`, `pageName`, `pageProfilePicture`, `pageUrl`, `platforms`, `startDate`, `text`, `title`, `totalResults` ``` data_api({"api":"facebook.company_ads","input":{"pageId":"15087023444","sortBy":"recent"}}) ``` ## Facebook Company Search `facebook.search_companies` · 0.022 credits a call (about $2.20 for 1,000), at most 0.08 Search the Meta Ad Library for advertisers by keyword and get matching pages: page ID, category, verification, follower counts, and linked Instagram. | Argument | Type | Required | What it is | |---|---|---|---| | `query` | string | yes | Keyword to search advertiser pages for (e.g. "nike"). | Returns: `category`, `companies`, `country`, `entityType`, `igFollowers`, `igUsername`, `igVerified`, `imageUrl`, `likes`, `name`, `pageAlias`, `pageDeleted`, `pageId`, `verification` ``` data_api({"api":"facebook.search_companies","input":{"query":"nike"}}) ``` ## Facebook Event Details `facebook.event_details` · 0.023 credits a call (about $2.30 for 1,000), at most 0.024 Fetch full details for a single Facebook event by ID or URL (name, schedule, venue, hosts, and attendance) as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | The event's numeric identifier. | | `url` | string | no | The event's Facebook URL. | Returns: `address`, `attendanceCount`, `canViewMembers`, `city`, `cityId`, `coverPhotoUrl`, `creatorId`, `creatorName`, `dayTimeSentence`, `description`, `duration`, `endTime`, `eventKind`, `goingCount`, `hostContextText`, `hostNames`, `hosts`, `id`, `image`, `interestedCount`, `isCanceled`, `isOnline`, `isPast`, `latitude`, `locationName`, `longitude`, `name`, `placeId`, `privacy`, `rsvpStyle`, `startTime`, `startTimeFormatted`, `startTimestamp`, `type`, `url`, `verified` ``` data_api({"api":"facebook.event_details","input":{"id":"4045709448982422"}}) ``` ## Facebook Events `facebook.events` · 0.024 credits a call (about $2.40 for 1,000) List public Facebook events for a city or place by its events-page URL (event name, date, venue, and attendance) as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response to fetch the next page. | | `time` | today \| this_week \| next_week | no | Timeframe filter for the returned events. Defaults to all time. | | `url` | string | yes | URL of a city's or place's Facebook Events page (e.g. https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547). | Returns: `coverImage`, `dayTimeSentence`, `eventKind`, `events`, `goingCount`, `id`, `interestedCount`, `isHappeningNow`, `isOnline`, `isPast`, `name`, `nextCursor`, `placeId`, `placeName`, `startTimestamp`, `url` ``` data_api({"api":"facebook.events","input":{"url":"https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"}}) ``` ## Facebook Events Search `facebook.events_search` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 Search public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response. | | `query` | string | yes | The query to search events for. | Returns: `coverImage`, `dayTimeSentence`, `eventKind`, `events`, `goingCount`, `id`, `interestedCount`, `isOnline`, `isPast`, `name`, `nextCursor`, `placeId`, `placeName`, `priceRangeText`, `startTimestamp`, `type`, `url` ``` data_api({"api":"facebook.events_search","input":{"query":"music festival"}}) ``` ## Facebook Followers `facebook.followers` · 1.26 credits a call (about $126 for 1,000), at most 2.16 List the public followers (or accounts followed) of any Facebook page or profile URL as normalized JSON records. | Argument | Type | Required | What it is | |---|---|---|---| | `followType` | string | no | Which relation to fetch: 'follower' or 'following' (e.g. follower). | | `limit` | integer | no | Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less. | | `url` | string | yes | Facebook page or profile URL to list follows for (e.g. https://www.facebook.com/nasa). | Returns: `id`, `image`, `name`, `type`, `url` ``` data_api({"api":"facebook.followers","input":{"limit":3,"url":"https://www.facebook.com/nike"}}) ``` ## Facebook Group Posts `facebook.group_posts` · 0.014 credits a call (about $1.40 for 1,000), at most 0.095 Fetch recent posts from any public Facebook group by URL: text, author, reactions, and comment counts. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response to fetch the next page. | | `sort` | TOP_POSTS \| RECENT_ACTIVITY \| CHRONOLOGICAL \| CHRONOLOGICAL_LISTINGS | no | Ordering for the returned posts (e.g. TOP_POSTS). | | `url` | string | yes | The URL of a public Facebook group to fetch posts from (e.g. https://www.facebook.com/groups/instantpotcommunity/). Any other Facebook link inside a group, such as a link to one post, a permalink, a member or the group's media, is read a… | Returns: `authorId`, `authorName`, `commentCount`, `id`, `image`, `nextCursor`, `posts`, `publishTime`, `reactionCount`, `reactions`, `sharedPostText`, `text`, `url` ``` data_api({"api":"facebook.group_posts","input":{"url":"https://www.facebook.com/groups/instantpotcommunity/"}}) ``` ## Facebook Marketplace `facebook.marketplace` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 Search Facebook Marketplace listings by keyword near a location, filter by price, condition, delivery, recency, and availability, and get title, price, location, and image as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `availability` | available \| sold \| all | no | Filter by availability: available (default), sold, or all (e.g. sold). | | `condition` | new \| used_like_new \| used_good \| used_fair | no | Only return listings in this condition (e.g. used_good). | | `cursor` | string | no | Pagination cursor from a previous response to fetch the next page. | | `dateListed` | all \| last_24_hours \| last_7_days \| last_30_days | no | Only return listings posted within this window (e.g. last_7_days). | | `deliveryMethod` | all \| local_pickup \| shipping | no | Only return listings offering this delivery method (e.g. shipping). | | `lat` | string | yes | Latitude of the search location (e.g. '30.2677'). | | `lng` | string | yes | Longitude of the search location (e.g. '-97.7475'). | | `priceMax` | integer | no | Maximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range. | | `priceMin` | integer | no | Minimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range. | | `query` | string | yes | Search keyword for Marketplace listings (e.g. 'bike'). | | `sort` | suggested \| distance_ascend \| creation_time_descend \| price_ascend \| price_descend | no | Sort order for the returned listings (e.g. price_ascend). | Returns: `categoryId`, `city`, `cityPageId`, `createdUtc`, `deliveryTypes`, `hasNextPage`, `id`, `isHidden`, `isLive`, `isPending`, `isSold`, `listingDateText`, `listings`, `locationName`, `nextCursor`, `photoId`, `photoUrl`, `priceAmount`, `priceFormatted`, `state`, `title`, `url` ``` data_api({"api":"facebook.marketplace","input":{"lat":"30.2677","lng":"-97.7475","priceMax":500,"priceMin":100,"query":"bike"}}) ``` ## Facebook Marketplace Item `facebook.marketplace_item` · 0.024 credits a call (about $2.40 for 1,000) Fetch full details for a single Facebook Marketplace listing by ID or URL (title, price, location, photos, and attributes) as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `id` | string | no | Facebook Marketplace item ID. | | `url` | string | no | Facebook Marketplace item URL. | Returns: `attributes`, `caption`, `categoryId`, `creationTime`, `currency`, `deliveryTypes`, `description`, `height`, `id`, `isBuyNowEnabled`, `isHidden`, `isLive`, `isPending`, `isShippingOffered`, `isSold`, `label`, `latitude`, `listingDateText`, `locationText`, `longitude`, `messagingEnabled`, `name`, `photos`, `priceAmount`, `priceFormatted`, `seller`, `shareUrl`, `strikethroughPriceFormatted`, `title`, `url`, `value`, `width` ``` data_api({"api":"facebook.marketplace_item","input":{"url":"https://www.facebook.com/marketplace/item/1656586118821988/"}}) ``` ## Facebook Marketplace Location Search `facebook.marketplace_location_search` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 Resolve a place name to Facebook Marketplace locations with coordinates and metadata as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `query` | string | yes | Location search query (e.g. a city name). | Returns: `city`, `latitude`, `locations`, `longitude`, `name`, `pageId`, `postalCode`, `subtitle` ``` data_api({"api":"facebook.marketplace_location_search","input":{"query":"Austin"}}) ``` ## Facebook Page Contact Info `facebook.page_contact` · 0.024 credits a call (about $2.40 for 1,000), at most 0.24 Look up a Facebook Page's public contact details (email, phone, website, and address) by page URL or ID. | Argument | Type | Required | What it is | |---|---|---|---| | `language` | string | no | Locale code for the returned data (e.g. en-US). | | `page` | string | yes | Facebook Page URL or page ID to look up (e.g. https://www.facebook.com/nasa). A link to a post, video, photo or reels tab on a page is read as that page. A link to Facebook's own business, about, marketplace, fb-answers, videos, photos o… | Returns: `about`, `adLibraryPageId`, `adStatus`, `address`, `category`, `coverPhotoUrl`, `createdUtc`, `email`, `followers`, `id`, `image`, `links`, `phone`, `priceRange`, `rating`, `services`, `title`, `url`, `website` ``` data_api({"api":"facebook.page_contact","input":{"page":"https://www.facebook.com/joesstonecrab"}}) ``` ## Facebook Page Events `facebook.profile_events` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 List upcoming and past events hosted by any public Facebook page by URL (name, schedule, venue, and host) as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response. | | `url` | string | yes | The Facebook page link whose events to list, e.g. https://www.facebook.com/brickyardoldtown. Accepted: facebook.com/, /p/-, /pages//, /pg/, /people// and profile.php?id=, on facebook.com or f… | Returns: `city`, `creatorName`, `dayTimeSentence`, `events`, `hasNextPage`, `id`, `isCanceled`, `isOnline`, `isPast`, `name`, `nextCursor`, `placeName`, `startTimestamp`, `totalCount`, `url` ``` data_api({"api":"facebook.profile_events","input":{"url":"https://www.facebook.com/brickyardoldtown"}}) ``` ## Facebook Page Lookup `facebook.page_lookup` · 0.195 credits a call (about $19.5 for 1,000), at most 0.843 Look up Facebook Pages and profiles by name with Facebook's own quick search. A name lookup that returns basic identity fields only: name, URL, profile image, Facebook id, and verified status. Matches can include personal profiles as well as Pages. For full Page details (category, followers, phone, website), use facebook.search_pages. | Argument | Type | Required | What it is | |---|---|---|---| | `limit` | integer | no | Maximum number of matches to return (1-7, default 7). Facebook's quick search answers a name with at most 7 matches. | | `query` | string | yes | Name to look up, as you would type it into Facebook's search box (e.g. NASA or plumber chicago). | Returns: `id`, `image`, `isVerified`, `name`, `url` ``` data_api({"api":"facebook.page_lookup","input":{"limit":5,"query":"NASA"}}) ``` ## Facebook Page Photos `facebook.photos` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 Fetch recent photos posted by any public Facebook page or profile (image URLs, captions, and dimensions) as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response to fetch the next page. | | `url` | string | yes | URL of the public Facebook page or profile to fetch photos from (e.g. https://www.facebook.com/Spurs). | Returns: `caption`, `id`, `imageHeight`, `imageUrl`, `imageWidth`, `nextCursor`, `nextPageId`, `photoId`, `photos`, `thumbnail`, `url` ``` data_api({"api":"facebook.photos","input":{"url":"https://www.facebook.com/Spurs"}}) ``` ## Facebook Page Search `facebook.search_pages` · 2.2 credits a call (about $220 for 1,000) Search Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details). | Argument | Type | Required | What it is | |---|---|---|---| | `limit` | integer | no | Maximum number of results to return (1-10, default 10). You are billed per result returned, so a lower limit costs less. | | `location` | string | no | Optional free-text location to narrow the search: a city, province, or country (e.g. 'Berlin'). | | `query` | string | yes | Keyword to search Facebook Pages for (e.g. 'coffee roasters'). | Returns: `about`, `adLibraryPageId`, `adStatus`, `categories`, `category`, `coverPhotoUrl`, `createdUtc`, `followers`, `id`, `image`, `likes`, `owner`, `pageAlias`, `phone`, `title`, `url`, `website` ``` data_api({"api":"facebook.search_pages","input":{"limit":3,"query":"nike"}}) ``` ## Facebook Post Comments `facebook.post_comments` · 0.024 credits a call (about $2.40 for 1,000), at most 0.095 List the comments on a Facebook post by URL with cursor pagination (text, author, reactions, reply count). | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response's nextCursor. | | `feedbackId` | string | no | Facebook feedback id for the post (alternative to url). | | `url` | string | no | Full Facebook post URL. | Returns: `author`, `authorId`, `authorImage`, `comments`, `createdUtc`, `expansionToken`, `feedbackId`, `hasNextPage`, `id`, `nextCursor`, `reactions`, `replies`, `text` ``` data_api({"api":"facebook.post_comments","input":{"url":"https://www.facebook.com/reel/2166091230582141/"}}) ``` ## Facebook Post Search `facebook.search_posts` · 0.32 credits a call (about $32 for 1,000), at most 2.074 Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement). | Argument | Type | Required | What it is | |---|---|---|---| | `endDate` | string | no | Only return posts published on or before this date, format YYYY-MM-DD (e.g. 2024-12-31). | | `limit` | integer | no | Maximum number of results to return (1-20, default 20). | | `location` | string | no | Optional place name; include both city and country for best matches (e.g. 'Paris, France'). Uses Facebook's place filter, which favors posts tagged at that place rather than every post by people who live there, and can still return some … | | `query` | string | yes | Keyword or phrase to search Facebook posts for (e.g. 'product launch'). | | `startDate` | string | no | Only return posts published on or after this date, format YYYY-MM-DD (e.g. 2024-01-01). | Returns: `albumPreview`, `authorId`, `authorImage`, `authorName`, `authorUrl`, `commentCount`, `createdUtc`, `id`, `image`, `imagesCount`, `reactionCount`, `reactions`, `shareCount`, `text`, `type`, `url` ``` data_api({"api":"facebook.search_posts","input":{"limit":3,"query":"nike"}}) ``` ## Facebook Post Transcript `facebook.post_transcript` · 0.024 credits a call (about $2.40 for 1,000), at most 0.64 Get the spoken-word transcript of any public Facebook video post by URL as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `url` | string | yes | The Facebook post or video URL. | Returns: `durationSeconds`, `postId`, `transcript` ``` data_api({"api":"facebook.post_transcript","input":{"url":"https://www.facebook.com/reel/2166091230582141/"}}) ``` ## Facebook Profile Posts `facebook.profile_posts` · 0.023 credits a call (about $2.30 for 1,000), at most 0.134 List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, publication time, permalink). | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response. | | `pageId` | string | no | Facebook page id. | | `url` | string | no | Facebook page or profile link, e.g. https://www.facebook.com/nike. Accepted: facebook.com/, /p/-, /pages//, /pg/, /people//, profile.php?id=, and share links to a page (/share/ or /share/… | Returns: `author`, `authorId`, `comments`, `createdUtc`, `id`, `image`, `likes`, `media`, `nextCursor`, `posts`, `reactions`, `sharedPostText`, `shares`, `text`, `url` ``` data_api({"api":"facebook.profile_posts","input":{"url":"https://www.facebook.com/nike"}}) ``` ## Facebook Profile Reels `facebook.profile_reels` · 0.024 credits a call (about $2.40 for 1,000), at most 0.095 List a Facebook page's reels by URL with cursor pagination (caption, view count, permalink, thumbnail). | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response. | | `url` | string | yes | Full Facebook page/profile URL. | Returns: `authorId`, `authorImage`, `authorName`, `authorVerified`, `caption`, `comments`, `createdUtc`, `durationSeconds`, `feedbackId`, `id`, `likes`, `nextCursor`, `reels`, `shares`, `thumbnail`, `url`, `videoId`, `videoUrl`, `views` ``` data_api({"api":"facebook.profile_reels","input":{"url":"https://www.facebook.com/nike"}}) ``` ## Do I need a Facebook API key or developer account? No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 27 APIs on this page. ## What does Facebook data cost through morigraph? Between 0.014 and 2.2 credits a call depending on the API, where a credit is about 10 cents. That is from about $1.40 for 1,000 calls. You pay per call from one balance, with no separate subscription. ## Can Claude, ChatGPT or Cursor get Facebook data? Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call. ## Which Facebook data APIs are available? Facebook Profile, Facebook Post, Facebook Ad Creative Details, Facebook Ad Details, Facebook Ad Search, Facebook Ad Transcript, Facebook Comment Replies, Facebook Company Ads, Facebook Company Search and Facebook Event Details, and 17 more listed on this page. --- Canonical page: https://morigraph.com/tools/data/facebook/ Prices read from the catalogue on 2026-11-27. These APIs return public data; how you may use it depends on the platform's terms and applicable law. All data APIs: https://morigraph.com/tools/data.md · Connect: https://morigraph.com/connect.md · Site overview: https://morigraph.com/llms.txt