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

# Facebook search

> Search Facebook by keyword for pages, profiles, posts or reels, optionally within a location: page contacts, followers and rating, or post text and engagement. 10 point per returned record.



## OpenAPI

````yaml /openapi.json post /functions/v1/run-facebook-search
openapi: 3.0.0
info:
  title: NeuralVerge API
  version: 1.0.0
  description: >-
    NeuralVerge API for AI research, search, extraction, and structured data
    source execution.
servers:
  - url: https://api.neuralverge.ai
    description: NeuralVerge API
security:
  - BearerAuth: []
tags:
  - name: AI Research
    description: Multi-step research workflows and the sessions they run in.
  - name: AI Extract
    description: Schema-driven extraction workflows.
  - name: Search
    description: Fast, synchronous web search with no session or polling.
  - name: Company intelligence
    description: Company profile lookups from company databases.
  - name: E-commerce & Marketplaces
    description: >-
      Product, seller, and review lookups on Amazon, eBay, Walmart, AliExpress,
      and Alibaba.
  - name: Enrichment
    description: Email and phone enrichment, validation, and discovery.
  - name: Product reviews
    description: >-
      Software and business reviews from Capterra, Gartner Peer Insights, and
      Trustpilot.
  - name: Social media
    description: LinkedIn profile, company, and people lookups.
  - name: Company Registries
    description: Company Registries data sources.
  - name: Startup & Funding Data
    description: Startup & Funding Data data sources.
  - name: Maps & Local Businesses
    description: Maps & Local Businesses data sources.
paths:
  /functions/v1/run-facebook-search:
    post:
      tags:
        - Social media
      summary: Facebook search
      description: >-
        Search Facebook by keyword for pages, profiles, posts or reels,
        optionally within a location: page contacts, followers and rating, or
        post text and engagement. 10 point per returned record.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  description: Search query. e.g. restaurant
                  type: string
                location:
                  description: Location. e.g. New York
                  type: string
                search_type:
                  description: >-
                    Search type. Options: pages = Pages - Facebook search,
                    pages-google = Pages - Google search, profiles = Profiles -
                    Facebook search, posts = Posts - Facebook search, reels =
                    Reels - Facebook search
                  type: string
                  enum:
                    - pages
                    - pages-google
                    - profiles
                    - posts
                    - reels
                  default: pages
                max_items:
                  description: Max results (up to 1000)
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 20
              required:
                - query
            example:
              query: restaurant
              max_items: 2
      responses:
        '200':
          description: Run completed.
          content:
            application/json:
              example:
                session_id: 11111111-1111-1111-1111-111111111111
                kind: facebook_search
                query: restaurant
                location: ''
                search_type: pages
                max_items: 2
                partial: false
                human: |-
                  # Facebook search

                  - **Query:** restaurant
                  - **Search type:** pages
                  - **Max results:** 2
                  - **Records returned:** 2
                machine:
                  total_items: 2
                  items:
                    - result_type: page
                      id: '100083535933598'
                      name: Lalezar - Restaurant & Cafe
                      username: null
                      url: https://www.facebook.com/lalezarrestaurantandcafe
                      category: null
                      categories: []
                      intro: >-
                        🍽️ Lalezar Restaurant – طعم يلامس الحواس استمتعوا
                        بتجربة فريدة من النكهات الشرقية الأصيلة والأجواء
                        الفاخرة. 👨‍🍳 مأكولات محضّرة بحُب 🌿 مكونات طازجة وجودة
                        عالية ✨ جلسات راقية وخدمة مميزة
                      info: []
                      likes: null
                      followers: null
                      followings: null
                      rating: null
                      rating_overall: null
                      rating_count: null
                      email: null
                      phone: null
                      address: null
                      address_url: null
                      websites: []
                      messenger: null
                      alternative_social_media: null
                      instagram: []
                      tiktok: []
                      price_range: null
                      services: null
                      wifi: null
                      payment: null
                      business_hours: null
                      creation_date: null
                      is_verified: false
                      ad_status: null
                      ad_library_id: null
                      profile_picture_url: >-
                        https://scontent.fmem1-2.fna.fbcdn.net/v/t39.30808-1/286430160_102680862477366_1063033409208724871_n.png?stp=cp0_dst-png&cstp=mx1200x1200&ctp=s60x60&_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_s
                      profile_photo_url: null
                      cover_photo_url: null
                      personal_profile: null
                      latest_posts: []
                      source_url: https://www.facebook.com/search/top?q=restaurant
                    - result_type: page
                      id: '61590290957934'
                      name: Tridha Restaurant
                      username: null
                      url: >-
                        https://www.facebook.com/people/Tridha-Restaurant/61590290957934/
                      category: null
                      categories: []
                      intro: >-
                        Where every craving finds its perfect match. A fusion of
                        flavour,Elegant dining and experiences. 🍽️ Dine beyond
                        expectations.
                      info: []
                      likes: null
                      followers: null
                      followings: null
                      rating: null
                      rating_overall: null
                      rating_count: null
                      email: null
                      phone: null
                      address: null
                      address_url: null
                      websites: []
                      messenger: null
                      alternative_social_media: null
                      instagram: []
                      tiktok: []
                      price_range: null
                      services: null
                      wifi: null
                      payment: null
                      business_hours: null
                      creation_date: null
                      is_verified: false
                      ad_status: null
                      ad_library_id: null
                      profile_picture_url: >-
                        https://scontent.fmem1-1.fna.fbcdn.net/v/t39.30808-1/717582497_122275354268184622_6145302280683700349_n.avif?stp=cp0_dst-avif&cstp=mx2048x2048&ctp=s60x60&_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&
                      profile_photo_url: null
                      cover_photo_url: null
                      personal_profile: null
                      latest_posts: []
                      source_url: https://www.facebook.com/search/top?q=restaurant
                  errors: []
                total_points: 20
              schema:
                type: object
                properties:
                  session_id:
                    type: string
                    description: Session identifier for this run.
                  kind:
                    type: string
                    description: Data source identifier for this endpoint.
                  query:
                    type: string
                  location:
                    type: string
                  search_type:
                    type: string
                  max_items:
                    type: integer
                  partial:
                    type: boolean
                    description: >-
                      True when the scrape stopped early and returned the
                      records collected so far.
                  human:
                    type: string
                    description: Markdown summary of the result, for display.
                  machine:
                    type: object
                    properties:
                      total_items:
                        type: integer
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            result_type:
                              type: string
                            id:
                              type: string
                            name:
                              type: string
                            username: {}
                            url:
                              type: string
                            category: {}
                            categories:
                              type: array
                              items: {}
                            intro:
                              type: string
                            info:
                              type: array
                              items: {}
                            likes: {}
                            followers: {}
                            followings: {}
                            rating: {}
                            rating_overall: {}
                            rating_count: {}
                            email: {}
                            phone: {}
                            address: {}
                            address_url: {}
                            websites:
                              type: array
                              items: {}
                            messenger: {}
                            alternative_social_media: {}
                            instagram:
                              type: array
                              items: {}
                            tiktok:
                              type: array
                              items: {}
                            price_range: {}
                            services: {}
                            wifi: {}
                            payment: {}
                            business_hours: {}
                            creation_date: {}
                            is_verified:
                              type: boolean
                            ad_status: {}
                            ad_library_id: {}
                            profile_picture_url:
                              type: string
                            profile_photo_url: {}
                            cover_photo_url: {}
                            personal_profile: {}
                            latest_posts:
                              type: array
                              items: {}
                            source_url:
                              type: string
                      errors:
                        type: array
                        items: {}
                    description: Structured result payload.
                  total_points:
                    type: integer
                    description: Points charged for this run.
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '500':
          description: Internal Error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````

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