> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgly.app/llms.txt
> Use this file to discover all available pages before exploring further.

# List posts that mention a Facebook Page

> List the public posts on a Facebook Page or profile Mentions tab: posts that tag or mention it, with their text, author, date, media, reactions, comment and share counts. Page through older posts with `cursor`. Costs 1 credit per request.



## OpenAPI

````yaml /openapi.json post /facebook/get-profile-mentions
openapi: 3.1.0
info:
  title: Bridgly API
  description: >-
    Web scraping API for LinkedIn, X (Twitter), Reddit, GitHub, Instagram and
    TikTok. Authenticated endpoints accept a Bridgly API key (`bgly_…`) via
    `Authorization: Bearer <token>`.
  version: 1.0.0
servers:
  - url: https://api.bridgly.app
    description: Production
security: []
tags:
  - name: LinkedIn
    description: Scrape LinkedIn profiles, companies, posts, and search.
  - name: Reddit
    description: Scrape Reddit posts, subreddits, users, and search.
  - name: X (Twitter)
    description: Scrape tweets and search X.
  - name: GitHub
    description: >-
      Fetch GitHub profiles, pinned repos, contributions, repositories, stars,
      and projects via GitHub's GraphQL API.
  - name: Instagram
    description: Scrape Instagram profiles, posts, followers, and search.
  - name: TikTok
    description: Fetch TikTok profiles.
  - name: Meta Ads
    description: >-
      Search the Meta Ad Library: ads, ad details, and advertisers on Facebook
      and Instagram.
  - name: Facebook
    description: >-
      Scrape Facebook profiles, Pages, posts, comments, groups, Marketplace, and
      search.
paths:
  /facebook/get-profile-mentions:
    post:
      tags:
        - Facebook
      summary: List posts that mention a Facebook Page
      description: >-
        List the public posts on a Facebook Page or profile Mentions tab: posts
        that tag or mention it, with their text, author, date, media, reactions,
        comment and share counts. Page through older posts with `cursor`. Costs
        1 credit per request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                cursor:
                  description: >-
                    The previous response's `nextCursor`, to fetch the next
                    page. Omit it for the first page.
                  type: string
                profile:
                  type: string
                  minLength: 1
                  description: >-
                    The profile or Page: its link, username or numeric ID, e.g.
                    "https://www.facebook.com/NASA", "NASA" or
                    "100044561550831".
                count:
                  default: 3
                  description: Number of results to return (1–3). Defaults to 3.
                  type: integer
                  minimum: 1
                  maximum: 3
                cacheMaxAgeHours:
                  description: >-
                    Accept a cached result up to this many hours old, at no
                    cost; its `cachedAt` says when it was fetched. Without one
                    that recent, fresh data is fetched at the normal price.
                    Leave it out to always get fresh data, e.g. 24.
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                cacheOnly:
                  description: >-
                    Return only a cached result, never fresh data. With
                    `cacheMaxAgeHours`, only one that recent; without it, the
                    latest of any age. Responds 404, at no cost, when there is
                    none, e.g. true.
                  type: boolean
              required:
                - profile
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeMs:
                    type: number
                    description: >-
                      Wall-clock time the request took to complete, in
                      milliseconds.
                  creditsCost:
                    type: number
                    description: Number of account credits this request consumed.
                  cachedAt:
                    anyOf:
                      - type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                      - type: 'null'
                    description: >-
                      When the returned data was fetched, if it came from the
                      cache. Null when it was fetched fresh for this request.
                  data:
                    type: object
                    properties:
                      nextCursor:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: >-
                          Pass as `cursor` to fetch the next page; null when
                          there are no more results. A page can hold fewer
                          results than asked for, so keep paging until it is
                          null. Fetch the next page soon: a cursor starting with
                          `bridgly_page_` stays valid for 30 days, and a list
                          that changes in between can shift results across
                          pages.
                      posts:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: >-
                                Numeric post ID, e.g. "1685704526258250". Pass
                                the post `url` to the post and comments
                                endpoints.
                            url:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                Permanent link to the post, e.g.
                                "https://www.facebook.com/NASA/posts/pfbid0sWE…".
                            text:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: The post text, or null when empty.
                            entities:
                              type: array
                              items:
                                type: object
                                properties:
                                  type:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      What the text links to, as Facebook names
                                      it, e.g. "User", "Page", "Group",
                                      "Hashtag" or "ExternalUrl".
                                  id:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      Numeric ID of the linked profile, Page,
                                      group or hashtag; null for a web link.
                                  name:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      Its name, or the text that links to it,
                                      e.g. "#travel".
                                  url:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      Its link; for a web link, the site it
                                      opens, e.g. "https://go.nasa.gov/4C7G3xx".
                                required:
                                  - type
                                  - id
                                  - name
                                  - url
                                additionalProperties: false
                              description: >-
                                Profiles, Pages, groups, hashtags and links in
                                the post text, in order.
                            headline:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                The line naming who and where the post tags,
                                shown in place of the author name or after the
                                text, e.g. "Aaron L Heimowitz is in Washington
                                Crossing, PA." or "with Ray Wright."; null when
                                the post tags no one.
                            tagged:
                              type: array
                              items:
                                type: object
                                properties:
                                  type:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      What the text links to, as Facebook names
                                      it, e.g. "User", "Page", "Group",
                                      "Hashtag" or "ExternalUrl".
                                  id:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      Numeric ID of the linked profile, Page,
                                      group or hashtag; null for a web link.
                                  name:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      Its name, or the text that links to it,
                                      e.g. "#travel".
                                  url:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                    description: >-
                                      Its link; for a web link, the site it
                                      opens, e.g. "https://go.nasa.gov/4C7G3xx".
                                required:
                                  - type
                                  - id
                                  - name
                                  - url
                                additionalProperties: false
                              description: >-
                                People and places the post tags, such as who the
                                author is with and where they checked in.
                            place:
                              anyOf:
                                - type: object
                                  properties:
                                    type:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        What the text links to, as Facebook
                                        names it, e.g. "User", "Page", "Group",
                                        "Hashtag" or "ExternalUrl".
                                    id:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Numeric ID of the linked profile, Page,
                                        group or hashtag; null for a web link.
                                    name:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Its name, or the text that links to it,
                                        e.g. "#travel".
                                    url:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Its link; for a web link, the site it
                                        opens, e.g.
                                        "https://go.nasa.gov/4C7G3xx".
                                  required:
                                    - type
                                    - id
                                    - name
                                    - url
                                  additionalProperties: false
                                - type: 'null'
                              description: >-
                                The place shown under the author name, e.g.
                                "Miami, FL", or null.
                            createdAt:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: When the post was published, as ISO 8601.
                            privacy:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                Who can see the post, e.g. "Public" or "Public
                                group".
                            author:
                              anyOf:
                                - type: object
                                  properties:
                                    id:
                                      type: string
                                      description: >-
                                        Numeric Facebook ID of the person or
                                        Page, e.g. "4".
                                    name:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Display name, e.g. "Mark Zuckerberg".
                                    url:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Profile link, e.g.
                                        "https://www.facebook.com/zuck".
                                    profilePictureUrl:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Profile picture image URL, when Facebook
                                        includes it.
                                  required:
                                    - id
                                    - name
                                    - url
                                    - profilePictureUrl
                                  additionalProperties: false
                                - type: 'null'
                              description: The person or Page that published the post.
                            group:
                              anyOf:
                                - type: object
                                  properties:
                                    id:
                                      type: string
                                      description: >-
                                        Numeric group ID, e.g.
                                        "3267540656602272".
                                    name:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Group name.
                                    url:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Group link.
                                  required:
                                    - id
                                    - name
                                    - url
                                  additionalProperties: false
                                - type: 'null'
                              description: >-
                                The group the post was published in, or null
                                outside groups.
                            reactionCount:
                              anyOf:
                                - type: number
                                - type: 'null'
                              description: Total reactions of every kind.
                            reactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  reaction:
                                    type: string
                                    description: >-
                                      Reaction name as Facebook labels it, e.g.
                                      "Like" or "Love".
                                  count:
                                    type: number
                                    description: How many people reacted this way.
                                required:
                                  - reaction
                                  - count
                                additionalProperties: false
                              description: Reactions by kind, most frequent first.
                            commentCount:
                              anyOf:
                                - type: number
                                - type: 'null'
                              description: Total comments and replies.
                            shareCount:
                              anyOf:
                                - type: number
                                - type: 'null'
                              description: Times the post was shared.
                            media:
                              type: array
                              items:
                                oneOf:
                                  - type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - photo
                                      id:
                                        type: string
                                        description: Numeric photo ID.
                                      url:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                        description: Link to the photo on Facebook.
                                      imageUrl:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                        description: Image file URL.
                                      width:
                                        anyOf:
                                          - type: number
                                          - type: 'null'
                                        description: Image width in pixels.
                                      height:
                                        anyOf:
                                          - type: number
                                          - type: 'null'
                                        description: Image height in pixels.
                                      altText:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                        description: >-
                                          Description of the image, written by the
                                          owner or generated by Facebook.
                                    required:
                                      - type
                                      - id
                                      - url
                                      - imageUrl
                                      - width
                                      - height
                                      - altText
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - video
                                      id:
                                        type: string
                                        description: Numeric video ID.
                                      url:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                        description: >-
                                          Link to the video on Facebook, e.g. a
                                          /reel/ or /videos/ link.
                                      videoUrl:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                        description: >-
                                          Direct MP4 file URL of the video, when
                                          available.
                                      thumbnailUrl:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                        description: Thumbnail image URL.
                                      durationSeconds:
                                        anyOf:
                                          - type: number
                                          - type: 'null'
                                        description: Video length in seconds, e.g. 14.1.
                                      width:
                                        anyOf:
                                          - type: number
                                          - type: 'null'
                                        description: Video width in pixels.
                                      height:
                                        anyOf:
                                          - type: number
                                          - type: 'null'
                                        description: Video height in pixels.
                                    required:
                                      - type
                                      - id
                                      - url
                                      - videoUrl
                                      - thumbnailUrl
                                      - durationSeconds
                                      - width
                                      - height
                                    additionalProperties: false
                              description: >-
                                Photos and videos attached to the post, in
                                order.
                            link:
                              anyOf:
                                - type: object
                                  properties:
                                    url:
                                      type: string
                                      description: >-
                                        The shared link, e.g.
                                        "https://www.nasa.gov/".
                                    title:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Title of the link preview.
                                    description:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Description shown in the link preview.
                                    domain:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Site shown on the link preview, e.g.
                                        "nasa.gov".
                                    imageUrl:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Link preview image URL.
                                  required:
                                    - url
                                    - title
                                    - description
                                    - domain
                                    - imageUrl
                                  additionalProperties: false
                                - type: 'null'
                              description: >-
                                The link the post shares, with its preview, or
                                null.
                            sharedPost:
                              anyOf:
                                - type: object
                                  properties:
                                    id:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Numeric ID of the shared post.
                                    url:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Link to the shared post.
                                    text:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Text of the shared post.
                                    createdAt:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        When the shared post was published, as
                                        ISO 8601.
                                    author:
                                      anyOf:
                                        - type: object
                                          properties:
                                            id:
                                              type: string
                                              description: >-
                                                Numeric Facebook ID of the person or
                                                Page, e.g. "4".
                                            name:
                                              anyOf:
                                                - type: string
                                                - type: 'null'
                                              description: Display name, e.g. "Mark Zuckerberg".
                                            url:
                                              anyOf:
                                                - type: string
                                                - type: 'null'
                                              description: >-
                                                Profile link, e.g.
                                                "https://www.facebook.com/zuck".
                                            profilePictureUrl:
                                              anyOf:
                                                - type: string
                                                - type: 'null'
                                              description: >-
                                                Profile picture image URL, when Facebook
                                                includes it.
                                          required:
                                            - id
                                            - name
                                            - url
                                            - profilePictureUrl
                                          additionalProperties: false
                                        - type: 'null'
                                      description: Who published the shared post.
                                  required:
                                    - id
                                    - url
                                    - text
                                    - createdAt
                                    - author
                                  additionalProperties: false
                                - type: 'null'
                              description: The post this one reshares, or null.
                            poll:
                              anyOf:
                                - type: object
                                  properties:
                                    id:
                                      type: string
                                      description: Numeric ID of the poll.
                                    question:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: The poll question.
                                    responseMethod:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        How people answer, as Facebook names it,
                                        e.g. "CHOOSE_ONE" or "CHOOSE_MULTIPLE".
                                    state:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Whether the poll takes votes, e.g.
                                        "OPEN".
                                    options:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            description: Numeric ID of the option.
                                          text:
                                            anyOf:
                                              - type: string
                                              - type: 'null'
                                            description: The option as shown.
                                          voteCount:
                                            anyOf:
                                              - type: number
                                              - type: 'null'
                                            description: Votes the option received.
                                        required:
                                          - id
                                          - text
                                          - voteCount
                                        additionalProperties: false
                                      description: Options, in order.
                                  required:
                                    - id
                                    - question
                                    - responseMethod
                                    - state
                                    - options
                                  additionalProperties: false
                                - type: 'null'
                              description: >-
                                The poll in the post, with votes per option, or
                                null.
                            music:
                              anyOf:
                                - type: object
                                  properties:
                                    id:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Numeric ID of the song.
                                    title:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Song title, e.g. "Raindance".
                                    artist:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Artist, e.g. "Dave, Tems".
                                  required:
                                    - id
                                    - title
                                    - artist
                                  additionalProperties: false
                                - type: 'null'
                              description: The song added to the post, or null.
                          required:
                            - id
                            - url
                            - text
                            - entities
                            - headline
                            - tagged
                            - place
                            - createdAt
                            - privacy
                            - author
                            - group
                            - reactionCount
                            - reactions
                            - commentCount
                            - shareCount
                            - media
                            - link
                            - sharedPost
                            - poll
                            - music
                          additionalProperties: false
                        description: Posts on this page.
                    required:
                      - nextCursor
                      - posts
                    additionalProperties: false
                required:
                  - timeMs
                  - creditsCost
                  - cachedAt
                  - data
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '402':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: typescript
          label: Bridgly SDK
          source: |-
            import { Bridgly } from '@bridgly/sdk';

            const client = new Bridgly({ apiKey: process.env.BRIDGLY_API_KEY });

            const res = await client.facebook.getProfileMentions({
              profile: "string",
              count: 3,
            });
            if (res.type === 'success') console.log(res.data);
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Bridgly API key (`bgly_…`). Metered endpoints deduct credits from the
        resolved account.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.