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

# Facebook Page API

> Likes/followers, contact info, and whether the page is currently running ads.



## OpenAPI

````yaml openapi.json GET /v1/facebook/pages/{slug}
openapi: 3.0.0
info:
  title: ScoutLayer API
  version: 1.0.0
  description: Competitor data. One API.
servers:
  - url: https://api.scoutlayer.io
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/facebook/pages/{slug}:
    get:
      tags:
        - facebook
        - pages
      summary: Get a public Facebook page by slug
      description: >-
        Likes/followers, contact info, and whether the page is currently running
        ads.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: shopify
          required: true
          name: slug
          in: path
      responses:
        '200':
          description: Get a public Facebook page by slug
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FacebookPage'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: This endpoint is declared but not yet implemented — never charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The orchestrator failed or was unreachable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    FacebookPage:
      type: object
      properties:
        slug:
          type: string
        pageId:
          type: string
        name:
          type: string
        category:
          type: string
        intro:
          type: string
        websiteUrl:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        avatarUrl:
          type: string
        coverUrl:
          type: string
          nullable: true
        createdAt:
          type: string
          nullable: true
          description: >-
            Page creation date — a proxy for when this competitor entered the
            market
        metrics:
          type: object
          properties:
            likes:
              type: integer
            followers:
              type: integer
            rating:
              type: number
              nullable: true
          required:
            - likes
            - followers
            - rating
        adLibraryPageId:
          type: string
          nullable: true
          description: >-
            Feed this into ads.advertisers.ads.get.v1 (network=meta) to pull
            every ad this page is running
        isRunningAds:
          type: boolean
        checkedAt:
          type: string
      required:
        - slug
        - pageId
        - name
        - category
        - intro
        - websiteUrl
        - email
        - phone
        - address
        - avatarUrl
        - coverUrl
        - createdAt
        - metrics
        - adLibraryPageId
        - isRunningAds
        - checkedAt
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key passed as the X-API-Key request header. Recommended for
        server-to-server calls.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (or OAuth token) passed as a Bearer token in the Authorization
        header.

````