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

# Search LinkedIn posts



## OpenAPI

````yaml /openapi.json post /linkedin/search/posts
openapi: 3.1.0
info:
  title: Bridgly API
  description: >-
    Web scraping API for LinkedIn, X (Twitter) and Reddit. Authenticated
    endpoints accept a Bridgly API key (`bgly_…`) via `Authorization: Bearer
    <token>`.
  version: 1.0.0
servers:
  - url: https://api.bridgly.app
    description: Production
  - url: http://localhost:4000
    description: Local
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.
paths:
  /linkedin/search/posts:
    post:
      tags:
        - LinkedIn
      summary: Search LinkedIn posts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                keyword:
                  type: string
                  description: >-
                    Keyword(s) to search LinkedIn for, e.g. "openai", "software
                    engineer", "fintech".
                start:
                  description: Pagination offset into the result list. Defaults to 0.
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                count:
                  description: Number of results to return. Defaults to 10.
                  type: integer
                  minimum: 1
                  maximum: 9007199254740991
                sortOrder:
                  type: string
                  enum:
                    - date_posted
                    - relevance
                  description: >-
                    Result ordering: "date_posted" for newest-first, "relevance"
                    for LinkedIn ranking.
                datePosted:
                  type: string
                  enum:
                    - past-24h
                    - past-week
                    - past-month
                  description: Restrict to posts published within a recent window.
              required:
                - keyword
      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.
                  data:
                    type: object
                    properties:
                      posts:
                        type: array
                        items:
                          type: object
                          properties:
                            urn:
                              type: string
                              description: >-
                                Canonical activity URN, e.g.
                                urn:li:activity:7473669660778000385.
                            shareUrn:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                The underlying share URN (urn:li:share:<id>),
                                when present.
                            url:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: Public post URL, stripped of tracking params.
                            text:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: Post commentary / body text.
                            postedAgo:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                Relative age label as shown by LinkedIn, e.g.
                                "5h", "1d", "2w".
                            author:
                              anyOf:
                                - type: object
                                  properties:
                                    name:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Author display name.
                                    headline:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Author headline / occupation line.
                                    profileUrl:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Canonical author profile URL.
                                    profileUrn:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Author profile URN, e.g.
                                        urn:li:fsd_profile:<token>.
                                    memberUrn:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: >-
                                        Author member URN, e.g.
                                        urn:li:member:<numericId>.
                                    imageUrl:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      description: Author profile picture URL.
                                  required:
                                    - name
                                    - headline
                                    - profileUrl
                                    - profileUrn
                                    - memberUrn
                                    - imageUrl
                                  additionalProperties: false
                                - type: 'null'
                              description: The post author.
                            socialCounts:
                              anyOf:
                                - type: object
                                  properties:
                                    numLikes:
                                      anyOf:
                                        - type: number
                                        - type: 'null'
                                    numComments:
                                      anyOf:
                                        - type: number
                                        - type: 'null'
                                    numShares:
                                      anyOf:
                                        - type: number
                                        - type: 'null'
                                    reactionTypeCounts:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          reactionType:
                                            type: string
                                          count:
                                            type: number
                                        required:
                                          - reactionType
                                          - count
                                        additionalProperties: false
                                  required:
                                    - numLikes
                                    - numComments
                                    - numShares
                                    - reactionTypeCounts
                                  additionalProperties: false
                                - type: 'null'
                              description: Like / comment / share counts.
                            content:
                              anyOf:
                                - oneOf:
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - article
                                        title:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Shared article title.
                                        subtitle:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Article subtitle / source line.
                                        url:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: >-
                                            Article URL, stripped of tracking
                                            params.
                                        imageUrl:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Article cover image URL.
                                      required:
                                        - type
                                        - title
                                        - subtitle
                                        - url
                                        - imageUrl
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - entity
                                        title:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Entity card title.
                                        subtitle:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Entity card subtitle.
                                        description:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Entity card description.
                                        url:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Entity URL, stripped of tracking params.
                                        imageUrl:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                          description: Entity image / logo URL.
                                      required:
                                        - type
                                        - title
                                        - subtitle
                                        - description
                                        - url
                                        - imageUrl
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - images
                                        urls:
                                          type: array
                                          items:
                                            type: string
                                          description: Image URLs attached to the post.
                                      required:
                                        - type
                                        - urls
                                      additionalProperties: false
                                - type: 'null'
                              description: >-
                                Attached content (article, entity card, or
                                images), if any.
                          required:
                            - urn
                            - shareUrn
                            - url
                            - text
                            - postedAgo
                            - author
                            - socialCounts
                            - content
                          additionalProperties: false
                        description: Ranked matching posts.
                      keyword:
                        type: string
                        description: The keyword(s) that were searched on LinkedIn.
                      totalResultCount:
                        anyOf:
                          - type: number
                          - type: 'null'
                        description: >-
                          Total number of matching results reported by LinkedIn
                          (not the number returned in this page).
                    required:
                      - posts
                      - keyword
                      - totalResultCount
                    additionalProperties: false
                required:
                  - timeMs
                  - creditsCost
                  - 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
        '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
        '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: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Bridgly API key (`bgly_…`). Metered endpoints deduct credits from the
        resolved account.

````