POST /v1/social/linkedin/{action}. {action} picks what to read. A completed request costs 0.5 credits.
Request
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, with400 VALIDATION_ERROR naming the field.
jobs-search:
query: Up to 200 characters, with at least one letter or digit. Sendquery,jobLocationor both.jobLocation: Up to 100 characters, such asSeoul, South KoreaorUnited States.postedWithin:day,weekormonth.workplace:onsite,remoteorhybrid.jobType:full_time,part_time,contract,temporary,internship,volunteerorother.experience:internship,entry,associate,mid_senior,directororexecutive.limit: Optional integer from 1 to 100, default 10.cursor: ThenextCursorof 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
platformandaction, andprovidernames the source the data was read from. A multi-wordactionis written with underscores, such asjobs_searchfor the path/jobs-search.jobs-searchcarriesreturnedCount. profilereturnsusername,url,name,headline,location,countryCode,about,avatarUrl,followerCount,connectionsText,currentCompany(name,url,startDate),jobTitles,previousCompaniesandeducation(name,url,startDate,endDate).postslists the recent posts the profile shows, 5 to 9, each withpostId,url,text,likeCountandpublishedAt.articleslists up to 10 articles, each withurl,title,likeCountandpublishedAt.
postreturnspostId,url,text,author(name,url,headline,followerCount),publishedAt,likeCount,commentCount,sharedTitle,imageUrland, for a video post,media.commentspreviews about 10 comments, each withtext,author,likeCountandpublishedAt.jobs-searchreturnsjobs,hasMoreandnextCursor, which isnullat the end of the list, and echoesqueryandjobLocation. A job hasjobId,url,title,company(name,url),location,position,postedAt,postedTextandbenefits.jobreturnsjobId,url,title,company,location,descriptionwith its line breaks,seniority,employmentType,industries,applicantsas LinkedIn words it andpostedText.jobFunctionandsalaryappear 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
Setinclude.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.htmlworks onprofileandpost.- 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.
profileandpostkeep the public page.- Every other action (
jobs_searchandjob) returns422 EVIDENCE_UNSUPPORTEDwhen 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
htmlis{ "status": "failed", "error": "EVIDENCE_FAILED" }. Resubmit the task to try again.
Related
- LinkedIn Ad Library, for the ads an advertiser runs on LinkedIn
- Threads
- Engine overview
- Credits and limits