Official scripts
Explore our curated collection of scripts
LinkedIn login
Log into LinkedIn via Google SSO. Drives LinkedIn's Continue-with-Google flow, picks the account (optional email arg), clears consent, and lands in the LinkedIn feed. Only works on a browser with its own signed-in Google session (not a managed or cloud browser).
Save LinkedIn post
Save a LinkedIn post to your saved items (My Items > Saved posts) by its permalink. Returns already_saved if the post was already saved, or saved otherwise.
Send LinkedIn connection request
Send a LinkedIn connection request with a personal note to a profile URL. Fails fast if the monthly note quota is exhausted or the profile isn't connectable (already 1st-degree, pending, or no Connect CTA); the note caps at 200 chars on free-tier. Returns status (sent/already_connected/pending/no_quota/no_connect_cta/failed), profileUrl, name, reason.
Get LinkedIn company info
Get a LinkedIn company's full profile from its URL or bare slug. employeeCount is LinkedIn members associated with the page, not declared size, and can wildly exceed employeeCountRange; use employeeCountRange for self-declared size. websiteUrl is verbatim and can be a linkedin.com self-link. Returns companyId, universalName, name, tagline, description, websiteUrl, industries, specialities, employeeCount, employeeCountRange, followerCount, foundedYear, phone, headquarters, locations, and logoUrl.
Suggest LinkedIn locations
Resolve a free-text location to LinkedIn geo suggestions [{label, geoUrn}], in ranked order ([0] = best match). The geo equivalent of get_company_info: pass a returned geoUrn to search_people's geoUrn. Returns [] when LinkedIn has no geo for the query (e.g. a continent like 'Europe').
Get LinkedIn profile education
Get the education list from a LinkedIn profile's dedicated education page by publicId. Captures schools with no LinkedIn page (schoolUrl null) and excludes the extra Skills entry and school-ranking promo cards LinkedIn injects into the list. Returns education (school, degree, dateRange, description, schoolUrl).
Get LinkedIn job
Fetch a LinkedIn job posting by numeric ID. Returns id, url, status (live/expired), title, company, location, posted, applicants, workplaceType, employmentType, description, and companyInfo (name, url, industry, followers, employeeRange, membersOnLinkedIn, description).
Get LinkedIn profile recommendations
Get the recommendations a LinkedIn profile has received and given, from its dedicated Recommendations page by public ID. Returns each recommendation's author/recipient (name, profile URL, connection degree, headline), the relationship note LinkedIn shows (date and how the two people worked together), and the full recommendation text. Profiles with no recommendations in a category come back with an empty list for it rather than an error. Requires being logged in to LinkedIn.
List LinkedIn invoices/receipts
List and download LinkedIn purchase receipts from the Admin Center > Transactions (Premium, Sales Navigator, etc.). Each receipt PDF is downloaded automatically via the row's ... > Download receipt action. Online purchases expose receipts here; sales-rep-assisted contracts expose invoices instead, and this requires billing-management access. Returns total plus invoices (date, amount, payment_method, invoice_number, status, purchase, filename, path).
Archive/restore LinkedIn conversation
Archive or restore a classic LinkedIn messaging conversation (NOT Sales Navigator), by thread URL from list_inbox. LinkedIn exposes this as a single toggle: archiving a conversation removes it from the main inbox, and running this again on an already-archived conversation restores it back to the inbox. Returns which direction was applied (archived/restored).
LinkedIn — accept a received invitation
Accept a pending received invitation on LinkedIn, identified by the inviter's display name (person or page). Guards against homonyms - if two or more pending invitations match the name it throws rather than guess - and returns the status plus the matched name (recipientResolved) so you can confirm the right one was accepted. Only acts on invitations already loaded in the list.
Mark LinkedIn conversation as unread
Mark a classic LinkedIn messaging conversation (NOT Sales Navigator) as unread, by thread URL from list_inbox. On group conversations (3+ participants), this occasionally times out on a rare page-loading delay on LinkedIn's side — retry the call if that happens.
unarchive_conversation
Move a LinkedIn classic-messaging conversation (not Sales Navigator) out of Archived and back into the main inbox, by its thread url from list_inbox. Returns whether it was unarchived, and already_active if the conversation was not archived to begin with.
Get LinkedIn dashboard analytics
Read the logged-in LinkedIn member's own analytics overview (Track performance): post impressions, total followers, profile viewers, search appearances, and newsletter rows when present. Returns one entry per tile with its value, percent change, direction (up/down/flat) and comparison window.
Search LinkedIn posts
Search LinkedIn posts by keyword, newest-first or by relevance. Returns each post's permalink (a lnkd.in short link — this surface exposes no activity id, so urn is always null), author name, profile URL and headline, full text, relative age, and reaction/comment/repost counts. Accepts limit (default 10) and sortBy ("relevance" | "date_posted").
Get LinkedIn notifications
Reads the LinkedIn notifications tab and returns each item's text, link, relative time, and read/unread state. Supports filtering by the same sub-tabs LinkedIn shows (all, jobs, my posts, mentions) and paginates via "load more" up to a requested count.
Get LinkedIn profile experience
Get the full experience list from a LinkedIn profile's dedicated experience page by publicId, with grouped companies expanded to one entry per role. Returns positions (title, company, companyUrl, employmentType, dateRange, duration, location, description).
Sales Navigator – Create lead list
Creates a new manual LinkedIn Sales Navigator lead list. Takes a name and optional description, returns the new listId (the join key that feeds save_lead_to_list and get_lead_list). This changes your account and needs a Sales Navigator seat.
Sales Navigator: search accounts
Search LinkedIn Sales Navigator company accounts by keywords, headquarters geography, and headcount, paginated 25 per page via a 0-based start offset. Returns total, count, start, and accounts (accountId, companyName, industry, employee count and range, description, list/saved status, spotlight badges, salesAccountUrl). Requires a Sales Navigator seat.
Follow LinkedIn company
Follow a LinkedIn company page by URL or bare slug. Safe to repeat: it returns already_following if you already follow it, and not_found when the page doesn't exist. Also returns the company's numeric id, canonical slug, and display name.
Find LinkedIn newsletters by author
List the LinkedIn newsletters published by a given profile or company page. For a profile, reads its Featured section (the dedicated Featured details page); for a company page, reads its Newsletter module on the page's Home tab. Returns each newsletter's name, URL, cadence/subscriber line, description, and logo. An author with no newsletter featured or listed there comes back with an empty list rather than an error.
Get LinkedIn message thread
Read a classic LinkedIn messaging conversation (NOT Sales Navigator) by its thread URL from list_inbox. Returns the participants and messages (from, fromSelf, text, time, subject) in chronological order. Returns the most recent page only.
Get LinkedIn newsletter edition
Fetch a single LinkedIn newsletter edition (article) by its permalink. Returns the newsletter it belongs to, the author, publish date, cover image, the full body converted to Markdown, and engagement stats (reactions, comments, reposts). Use get_edition_reactors for who reacted and get_edition_comments for the comment thread.
Get LinkedIn conversation attendees
List the participants of a classic LinkedIn messaging conversation (NOT Sales Navigator) by thread URL from list_inbox — mainly useful for group chats. Returns each attendee's name, profile URL and member urn, plus whether the thread is a group.
LinkedIn — Create post
Publish a text post to your LinkedIn feed, visible to anyone. This creates a real, public post under your account immediately — not a draft or preview. Only plain text posts are supported; images, polls, and articles need a different flow. Requires being logged into LinkedIn. Returns the link to the published post.
