Skip to main content
Read public LinkedIn data as JSON with POST /v1/social/linkedin/{action}. {action} picks what to read. A completed request costs 0.5 credits.

Request

The request waits for the result, up to 290 seconds, and answers 200 with the result in response. A task still running answers 202; poll GET /v1/async/task/{id} or set webhook. See Async tasks.

Actions

The four actions read public profiles, posts and jobs. username takes a profile’s vanity name, the part after /in/, or a profile URL such as https://www.linkedin.com/in/williamhgates. postId takes a post’s activity ID, a post URN such as urn:li:activity:7530009142778941443 or a post URL (/posts/... or /feed/update/...). jobId takes a job ID or a job URL (/jobs/view/...). url takes the URL for the action.

Parameters

A request with a parameter of another action, a value outside the ones listed below, or a missing required field is refused when you submit it, with 400 VALIDATION_ERROR naming the field. jobs-search:
  • query: Up to 200 characters, with at least one letter or digit. Send query, jobLocation or both.
  • jobLocation: Up to 100 characters, such as Seoul, South Korea or United States.
  • postedWithin: day, week or month.
  • workplace: onsite, remote or hybrid.
  • jobType: full_time, part_time, contract, temporary, internship, volunteer or other.
  • experience: internship, entry, associate, mid_senior, director or executive.
  • limit: Optional integer from 1 to 100, default 10.
  • cursor: The nextCursor of the previous page, sent with the same query and filters. LinkedIn lists 10 jobs a page and stops before its 1,000th result.

Response example

Result fields

  • Every response echoes platform and action, and provider names the source the data was read from. A multi-word action is written with underscores, such as jobs_search for the path /jobs-search. jobs-search carries returnedCount.
  • profile returns username, url, name, headline, location, countryCode, about, avatarUrl, followerCount, connectionsText, currentCompany (name, url, startDate), jobTitles, previousCompanies and education (name, url, startDate, endDate).
    • posts lists the recent posts the profile shows, 5 to 9, each with postId, url, text, likeCount and publishedAt.
    • articles lists up to 10 articles, each with url, title, likeCount and publishedAt.
  • post returns postId, url, text, author (name, url, headline, followerCount), publishedAt, likeCount, commentCount, sharedTitle, imageUrl and, for a video post, media. comments previews about 10 comments, each with text, author, likeCount and publishedAt.
  • jobs-search returns jobs, hasMore and nextCursor, which is null at the end of the list, and echoes query and jobLocation. A job has jobId, url, title, company (name, url), location, position, postedAt, postedText and benefits.
  • job returns jobId, url, title, company, location, description with its line breaks, seniority, employmentType, industries, applicants as LinkedIn words it and postedText. jobFunction and salary appear when the listing shows them.
  • A profile, post or job that does not exist or is not public ends the task with PAGE_UNAVAILABLE. Only completed requests are charged.

HTML page

Set include.html to true and the result gains html, a link to the LinkedIn page the answer was read from, saved as a file you can put in a report. html has status, url and expiresAt, described in HTML pages.
  • include.html works on profile and post.
  • The file is the HTML document LinkedIn sent for the page, before any script ran. It starts with a note comment, Saved by querying.ai: the page LinkedIn served for task <id> at <UTC time>, the page as LinkedIn sent it, before any script ran, the address of the visit and its session ids masked.
  • Values that belong to the visit are replaced with zeros of the same length: cookie values, session, request and device ids, CSRF and other tokens, nonces and the signatures in media addresses. Because those signatures are masked, the image and video links in the file do not load. Content that depends on where the visit came from, such as the regional CDN host names in media addresses, stays as LinkedIn sent it.
  • The document’s scripts are kept as text. The file is served with a Content-Security-Policy that runs no script and loads no outside resource.
  • LinkedIn sends the main content as markup, so the opened file is readable.
  • profile and post keep the public page.
  • Every other action (jobs_search and job) returns 422 EVIDENCE_UNSUPPORTED when you submit the task, and the message names why.
  • The page costs nothing extra: the request is still 0.5 credits.
  • When the page cannot be kept, the answer is still returned and html is { "status": "failed", "error": "EVIDENCE_FAILED" }. Resubmit the task to try again.