API reference

Eight surfaces, one envelope. Every endpoint, typed and runnable in-page.

LinkFetch exposes a small, stable REST surface. Every endpoint is also available as a typed MCP tool, and every endpoint card below is generated from the same catalog that powers the in-app playground — there is exactly one place where endpoint metadata lives, so prose and runtime never drift.

Common base

Base URL: https://api.linkfetch.io
Auth:     Authorization: Bearer sk_live_...
Format:   application/json (request + response)

Path conventions:

  • :slug — public LinkedIn vanity (the tail of /in/<slug> or /company/<slug>). Always lowercase.
  • :id — numeric LinkedIn ID (job id, group id, activity id, etc.).
  • :activityId — the integer in /feed/update/urn:li:activity:<id>/.
  • ?url= — convenience: pass any LinkedIn URL and we extract the id.

Surfaces

Response envelope

{
  "data": { /* the typed record(s) for this surface */ },
  "meta": {
    "request_id": "req_01HZ...",
    "credits_charged": 5,
    "rate_limit": { "remaining": 4995, "reset_at": "..." },
    "provenance": {
      "source": "extension",
      "fetched_at": "2026-04-23T10:14:22Z",
      "freshness_days": 0
    }
  }
}

Errors use the same envelope with a top-level error object — see Errors. Empty result sets return data: [] and are never charged.