GET
/
api
/
enrich
/
scrape
curl --request GET \
  --url https://search.clado.ai/api/enrich/scrape \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "name": "John Doe",
    "headline": "Software Engineer at Tech Company",
    "location": "San Francisco, CA",
    "connection_count": 500,
    "posts": [
      {
        "urn": "7322384544848834560",
        "text": "Excited to announce...",
        "createdAt": 1679012345,
        "createdAtString": "2024-03-20T12:34:56Z",
        "comments": [
          {
            "isPinned": false,
            "isEdited": false,
            "threadUrn": "thread123",
            "createdAt": 1679012346,
            "createdAtString": "2024-03-20T12:34:57Z",
            "permalink": "https://linkedin.com/...",
            "text": "Congratulations!",
            "author": {
              "name": "Jane Smith"
            }
          }
        ],
        "comment_metadata": {
          "total": 1,
          "totalPage": 1,
          "paginationToken": null
        }
      }
    ]
  }
}

Extract comprehensive profile data including posts, comments, and engagement metrics directly from LinkedIn profiles. This endpoint fetches real-time data with detailed post interactions.

Scrape Profile

curl -X GET "https://search.clado.ai/api/enrich/scrape?linkedin_url=https://www.linkedin.com/in/johndoe" \
  -H "Authorization: Bearer YOUR_API_KEY"

Query Parameters

ParameterTypeRequiredDescription
linkedin_urlstringYesLinkedIn profile URL to scrape

Response

{
  "data": {
    "name": "John Doe",
    "headline": "Senior Software Engineer at Google",
    "location": "San Francisco, CA",
    "connection_count": 500,
    "posts": [
      {
        "urn": "7322384544848834560",
        "text": "Excited to announce our new AI product launch...",
        "createdAt": 1679012345,
        "createdAtString": "2024-03-20T12:34:56Z",
        "comments": [
          {
            "isPinned": false,
            "isEdited": false,
            "threadUrn": "thread123",
            "createdAt": 1679012346,
            "createdAtString": "2024-03-20T12:34:57Z",
            "permalink": "https://linkedin.com/feed/comment/thread123",
            "text": "Congratulations on the launch!",
            "author": {
              "name": "Jane Smith",
              "headline": "Product Manager at Meta"
            }
          }
        ],
        "comment_metadata": {
          "total": 15,
          "totalPage": 3,
          "paginationToken": "abc123"
        }
      }
    ]
  }
}

Response Fields

Profile Fields

FieldTypeDescription
namestringFull name of the person
headlinestringProfessional headline or tagline
locationstringCurrent location
connection_countintegerNumber of LinkedIn connections
postsarrayArray of post objects

Post Object

FieldTypeDescription
urnstringUnique identifier for the post
textstringPost content/text
createdAtintegerPost creation timestamp (Unix)
createdAtStringstringFormatted post creation date
commentsarrayArray of comment objects
comment_metadataobjectComment pagination information

Comment Object

FieldTypeDescription
isPinnedbooleanWhether the comment is pinned
isEditedbooleanWhether the comment was edited
threadUrnstringUnique identifier for the comment thread
createdAtintegerComment creation timestamp (Unix)
createdAtStringstringFormatted comment creation date
permalinkstringDirect URL to the comment
textstringComment content
authorobjectComment author information

Comment Metadata

FieldTypeDescription
totalintegerTotal number of comments on the post
totalPageintegerTotal number of comment pages
paginationTokenstringToken for loading additional comments

Error Responses

Status CodeDescription
400Bad Request - Invalid LinkedIn URL format
401Unauthorized - API key missing or invalid
402Payment Required - Insufficient credits (costs 2 credits)
422Validation Error - Missing required ‘linkedin_url’ parameter
500Internal Server Error - Error processing request or endpoint unavailable

Notes

  • Each request costs 2 credits
  • Automatically fetches comments for all posts
  • Posts are sorted by creation date (most recent first)
  • Comment pagination allows loading additional comments if needed
  • Real-time data fetched directly from LinkedIn
  • Profile must be public or connection accessible
  • Rate limits may apply based on usage
  • Username is extracted automatically from LinkedIn URL

Authorizations

Authorization
string
header
required

API key must be provided as a Bearer token in the Authorization header. Example: lk_your_api_key_here

Query Parameters

linkedin_url
string
required

The LinkedIn profile URL to scrape.

Response

200
application/json

Successful scraping operation

The response is of type object.