> ## 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.

# LinkedIn Post API

> Text and author for one post or article.



## OpenAPI

````yaml openapi.json GET /v1/linkedin/posts
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/linkedin/posts:
    get:
      tags:
        - linkedin
        - posts
      summary: Get a single LinkedIn post or article by URL
      description: Text and author for one post or article.
      parameters:
        - schema:
            type: string
            format: uri
            example: https://www.linkedin.com/posts/shopify_activity-1234567890-ab12
          required: true
          name: url
          in: query
      responses:
        '200':
          description: Get a single LinkedIn post or article by URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedInPost'
        '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:
    LinkedInPost:
      type: object
      properties:
        postId:
          type: string
        url:
          type: string
        text:
          type: string
        publishedAt:
          type: string
        author:
          type: object
          properties:
            name:
              type: string
            url:
              type: string
              nullable: true
          required:
            - name
            - url
        metrics:
          type: object
          properties:
            likes:
              type: integer
              nullable: true
            comments:
              type: integer
              nullable: true
            shares:
              type: integer
              nullable: true
          required:
            - likes
            - comments
            - shares
      required:
        - postId
        - url
        - text
        - publishedAt
        - author
        - metrics
    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.

````