Post with Node.js
PostLake is one REST endpoint for every social network, so from Node.js you post with a single fetch — no per-platform npm packages, no OAuth code, one normalised response back.
Get started free →No card for the free tier · one API for every network · full MCP access
Prefer no code at all? Connect PostLake's hosted MCP server to your AI assistant (Claude, ChatGPT, Cursor and others) and just ask it to post. It authorizes over OAuth — no key to paste. See the MCP guide.
This is the whole integration — connect your accounts once in the dashboard, then:
const resp = await fetch("https://api.postlake.dev/v1/posts", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
text: "Hello from Node 👋",
platforms: ["bluesky", "linkedin"],
profile: "my-brand",
}),
});
const result = await resp.json(); // one post id + a targets list with live URLs
console.log(result);/v1/posts with fetch — Node 18+ has it built in, no dependency.targets array with each network's live URL.scheduledAt (ISO 8601, UTC) to the body.POST /v1/media first and pass the med_… id.Idempotency-Key header so retries are safe.List the platforms in one request and PostLake posts to all of them, returning a single normalised shape — your code never branches per platform.
PostLake manages each network's developer app and OAuth for you — nothing to register or get reviewed yourself.
Idempotency keys mean a retry never double-posts, and analytics come back normalised so an agent can decide what to post next.
A free tier to start, then usage-based credits — one per post. You only pay for posts that actually publish.
POST to PostLake's /v1/posts endpoint using the built-in fetch (Node 18+) with your API key and the platforms array. One request publishes to every network you list and returns a single normalised response.
No package required — plain fetch works. PostLake wraps every network behind one endpoint, so there's nothing per-platform to install.
Yes — either call the API directly, or connect PostLake's MCP server so your agent posts by asking, with OAuth handling auth instead of a pasted key.
Python · n8n · Make · Zapier · LangChain · All guides · Full docs
One API and MCP server for every major network. Free to start.
Get started free →