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

# Get LinkedIn profile by URN

> Look up a LinkedIn user or organization by their URN (e.g. `urn:li:person:xyz` or `urn:li:organization:xyz`) to get the username, name, and profile picture.



## OpenAPI

````yaml /api/openapi.json get /linkedin/profile/{urn}
openapi: 3.1.0
info:
  title: Ordinal API
  version: 1.0.0
  description: API to create and manage Ordinal workspaces, posts, profiles, and analytics
servers:
  - url: https://app.tryordinal.com/api/v1
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Analytics
    description: Social media analytics data
  - name: Approvals
    description: Post approval workflows
  - name: Comments
    description: >-
      Post comments for team collaboration. Supports @mentions using the format
      @[Display Name](userId).
  - name: Engagements
    description: Auto-engagements for posts (likes, comments, reposts)
  - name: Invites
    description: Workspace invitations for adding new users
  - name: Labels
    description: Labels for organizing posts
  - name: Instagram
    description: Instagram utilities for location search and tagging
  - name: LinkedIn
    description: LinkedIn utilities for profile lookups, tagging, and mentions
  - name: Posts
    description: Create and manage posts
  - name: Profiles
    description: List connected social profiles
  - name: Slack Boosts
    description: >-
      List connected Slack channels (webhooks), then create and manage slack
      boosts so teams get notified in Slack when posts publish. Requires Slack
      connected with marketing boost channels.
  - name: Subscribers
    description: Post subscribers for notifications
  - name: File Uploads
    description: >-
      Upload files from URLs for use in posts. Supports images (JPEG, PNG, GIF,
      WebP) up to 10 MB and videos (MP4, MOV) up to 350 MB.
  - name: Ideas
    description: >-
      Create and manage content ideas. Ideas are draft posts without scheduled
      dates that can be converted to calendar posts.
  - name: Inline Comments
    description: >-
      Text-anchored comments on specific post content. Read-only API for
      retrieving inline comments across channels.
  - name: Users
    description: Workspace users
  - name: Webhooks
    description: >-
      Create, list, get, update, and delete webhooks to receive real-time event
      notifications
  - name: Workspaces
    description: Workspace information
paths:
  /linkedin/profile/{urn}:
    get:
      tags:
        - LinkedIn
      summary: Get LinkedIn profile by URN
      description: >-
        Look up a LinkedIn user or organization by their URN (e.g.
        `urn:li:person:xyz` or `urn:li:organization:xyz`) to get the username,
        name, and profile picture.
      operationId: linkedin-getProfile
      parameters:
        - name: urn
          in: path
          required: true
          description: >-
            LinkedIn URN of the person or organization (e.g.
            `urn:li:person:abc123` or `urn:li:organization:99999`)
          schema:
            type: string
            minLength: 1
            pattern: ^urn:li:(person|organization):.+
      responses:
        '200':
          description: LinkedIn profile information
          content:
            application/json:
              schema:
                type: object
                required:
                  - urn
                  - username
                  - name
                  - profileImageUrl
                  - type
                properties:
                  urn:
                    type: string
                    description: LinkedIn URN of the account
                  username:
                    type: string
                    description: LinkedIn vanity name (username)
                  name:
                    type: string
                    description: Display name of the account
                  profileImageUrl:
                    type: string
                    nullable: true
                    description: URL of the profile image, or null if not available
                  type:
                    type: string
                    enum:
                      - User
                      - Organization
                    description: Type of the LinkedIn account
              example:
                urn: urn:li:person:ABC123xyz
                username: johndoe
                name: John Doe
                profileImageUrl: https://media.licdn.com/dms/image/photo.jpg
                type: User
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Unauthorized:
      description: Unauthorized - Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: UNAUTHORIZED
            message: Invalid or unauthorized API key
    NotFound:
      description: Not Found - Resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: NOT_FOUND
            message: Post not found or does not belong to this workspace
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Generate an API key from your workspace
        settings.

````