Post with Node.js

Post to social media
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

The fastest way: ask your agent

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.

Post with Node.js

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);

Step by step

  1. Create an API key in your dashboard (Settings → API Keys).
  2. Connect your accounts under a profile once, in the dashboard.
  3. POST to /v1/posts with fetch — Node 18+ has it built in, no dependency.
  4. Use the normalised response: a post id and a targets array with each network's live URL.

Good to know

Why PostLake

One call, every network

List the platforms in one request and PostLake posts to all of them, returning a single normalised shape — your code never branches per platform.

No app setup

PostLake manages each network's developer app and OAuth for you — nothing to register or get reviewed yourself.

Agent-safe

Idempotency keys mean a retry never double-posts, and analytics come back normalised so an agent can decide what to post next.

Honest pricing

A free tier to start, then usage-based credits — one per post. You only pay for posts that actually publish.

Common questions

How do I post to social media with Node.js?

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.

Is there an npm package I need?

No package required — plain fetch works. PostLake wraps every network behind one endpoint, so there's nothing per-platform to install.

Can an AI agent built in Node post through PostLake?

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.

More guides

Python · n8n · Make · Zapier · LangChain · All guides · Full docs

One API and MCP server for every major network. Free to start.

Get started free →