โšก Native Rust 2024 ยท Sub-3ms Cold Start ยท Apify Actor Powered

LinkedIn Profile & Post Scraping
Built for Humans & AI Agents

A native, standalone CLI tool for extracting full LinkedIn profiles and activity posts via Apify. YAML-first output, OS keystore secrets, and structured agent envelopes.

linkedin profile --include experiences,skills
$ linkedin profile https://www.linkedin.com/in/satyanadella --include experiences,skills
# YAML-first structured terminal output
- fullName: Satya Nadella
  headline: Chairman and CEO at Microsoft
  location: Greater Seattle Area
  experiences:
    - title: Chairman and CEO
      company: Microsoft
      duration: 2014 - Present
  skills:
    - name: Cloud Computing
    - name: Enterprise Software
    - name: Artificial Intelligence

Engineered for Performance & Agents

Built upon the SpaceCorps high-performance CLI tenets with zero runtime bloat.

๐Ÿš€

Native Speed (1โ€“3 ms)

Compiled to a single standalone static binary with Rust 2024 edition, fat LTO, and zero interpreter overhead. Perfect for high-frequency agent tool loops.

๐Ÿ“„

YAML First, JSON on Demand

Outputs clean, human-readable YAML by default for terminal review. Pass --json for deterministic jq pipelines and autonomous LLM tool calling.

๐Ÿ”

Native OS Keystore Integration

Tokens are never stored in plaintext disk files. Integrates directly with macOS Keychain, Windows DPAPI, and Linux Secret Service daemons.

๐ŸŽฏ

Selective Section Filtering

Fetch only the sections you need with --include experiences,skills,educations, slashing token usage and response payload sizes.

๐Ÿ‘ฅ

Multi-Account Management

Switch between multiple Apify accounts safely with --account <name>. Never accidentally query using the wrong organization key.

๐Ÿค–

Self-Documenting Agent Card

Autonomous agents can run linkedin agent-readme [--json] to inspect the full tool manual, schema rules, and error exit codes without network roundtrips.

Command Reference

Comprehensive commands for profile discovery, post retrieval, and account control.

Command Description Options
linkedin profile <URL> Scrape full profile details for a LinkedIn user --include <SECTIONS>, -a, --account <NAME>, --api-key <KEY>
linkedin post <URL> Scrape posts from update, profile, company, or search URL --limit <N>, --since <DATE>, --no-deep, --raw, --include
linkedin me Inspect authenticated user context and token validity -a, --account <NAME>, --api-key <KEY>
linkedin login [<NAME>] Authenticate with Apify token and store into OS keystore --api-key <KEY>, --api-key-stdin, --no-browser, --force
linkedin accounts list List all configured accounts and keystore backend --check
linkedin accounts test <NAME> Verify that a stored account key still works None
linkedin accounts remove <NAME> Remove account and delete key from local keystore --yes
linkedin agent-readme Print the built-in operating manual for LLM agents --json

Quickstart Installation

Get up and running with LinkedIn CLI in under 60 seconds.

bash
# 1. Install via Homebrew or Cargo
$ cargo install --git https://github.com/SpaceCorps/Linkedin-Cli.git

# 2. Log in with your Apify API Token
$ linkedin login

# 3. Fetch a profile
$ linkedin profile https://www.linkedin.com/in/satyanadella

v1.0.0 Stable Release Binaries

Download pre-compiled standalone binaries for macOS, Linux, and Windows.

๐ŸŽ macOS (Apple Silicon)
aarch64-apple-darwin • .tar.gz
Download ↓
๐ŸŽ macOS (Intel)
x86_64-apple-darwin • .tar.gz
Download ↓
๐Ÿง Linux (x86_64 static)
x86_64-unknown-linux-musl • .tar.gz
Download ↓
๐Ÿง Linux (ARM64 static)
aarch64-unknown-linux-musl • .tar.gz
Download ↓
๐ŸชŸ Windows (x64)
x86_64-pc-windows-msvc • .zip
Download ↓