> ## 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 the recommendations a LinkedIn profile received or gave

> List the recommendations a LinkedIn member received or gave, newest first, with the other member's name, headline and profile link, the text, the date and how the two know each other. Page on with the `nextStart` from the previous response. Costs 1 credit per request.



## OpenAPI

````yaml /openapi.json post /linkedin/get-profile-recommendations
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:
  /linkedin/get-profile-recommendations:
    post:
      tags:
        - LinkedIn
      summary: List the recommendations a LinkedIn profile received or gave
      description: >-
        List the recommendations a LinkedIn member received or gave, newest
        first, with the other member's name, headline and profile link, the
        text, the date and how the two know each other. Page on with the
        `nextStart` from the previous response. Costs 1 credit per request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                start:
                  description: Number of results to skip. Defaults to 0.
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                publicId:
                  type: string
                  minLength: 1
                  description: >-
                    The member public identity, or the profile link itself, e.g.
                    "williamhgates" or
                    "https://www.linkedin.com/in/williamhgates".
                count:
                  default: 100
                  description: Number of results to return (1–100). Defaults to 100.
                  type: integer
                  minimum: 1
                  maximum: 100
                type:
                  default: received
                  description: >-
                    Which recommendations to list: "received" (written about the
                    member) or "given" (written by the member). Defaults to
                    "received".
                  type: string
                  enum:
                    - received
                    - given
                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:
                - publicId
      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:
                      nextStart:
                        anyOf:
                          - type: number
                          - type: 'null'
                        description: >-
                          Pass as `start` to fetch the next page; null when
                          there are no more results.
                      recommendations:
                        type: array
                        items:
                          type: object
                          properties:
                            member:
                              type: object
                              properties:
                                name:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                  description: Full name, e.g. "Bill Gates".
                                headline:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                  description: Headline shown under their name.
                                publicIdentifier:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                  description: >-
                                    The slug in
                                    linkedin.com/in/<publicIdentifier>, e.g.
                                    "williamhgates".
                                profileUrl:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                  description: Link to their profile.
                                profilePictureUrl:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                  description: Largest available profile picture.
                              required:
                                - name
                                - headline
                                - publicIdentifier
                                - profileUrl
                                - profilePictureUrl
                              additionalProperties: false
                              description: >-
                                The other member: who wrote the recommendation
                                when it was received, who got it when it was
                                given.
                            text:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: The recommendation, as its author wrote it.
                            date:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                When the recommendation was given, as
                                "YYYY-MM-DD".
                            relationship:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                How the two members know each other, as LinkedIn
                                words it, e.g. "Mike worked with Reid but they
                                were at different companies".
                          required:
                            - member
                            - text
                            - date
                            - relationship
                          additionalProperties: false
                        description: Recommendations on this page, newest first.
                    required:
                      - nextStart
                      - recommendations
                    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.linkedin.getProfileRecommendations({
              publicId: "string",
              count: 100,
              type: "received",
            });
            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.