Skip to content

URL Shortener API Guides

Guides to the REST API, bulk link creation and the MCP server, with links to the webhook, OAuth and command-line docs at b1.lc/docs/.

Can I create short links from code?

Yes. The BN Shortener API is a REST API with 180+ operations: create links, QR codes and bio pages, run Launch Check and read stats. It works with API keys or OAuth 2.1, sends 32 signed webhook events, and has Python and TypeScript SDKs plus an MCP server for AI assistants.

BN Shortener has a REST API with 180+ operations in 22 areas, so anything you do in the dashboard you can do from code: create and update short links, make QR codes, build bio pages, run Launch Check and read the stats. Apps that act for other people sign in with OAuth 2.1, and 32 signed webhook events tell your system when something happens, such as a traffic spike on a link or a new answer to a feedback QR code.

Two SDKs are released: pip install bn-shortener for Python, which also installs the bn command line, and npm install @bn-shortner/shortener for TypeScript. AI assistants such as Claude can manage links through the hosted MCP server at b1.lc/mcp, which offers 28 tools, and there is an n8n community node and a GitHub Action for workflows.

The guides below walk through the common jobs: shortening links from code, bulk imports from a CSV file, replacing Firebase Dynamic Links and working with AI assistants. For the full picture, see the developer platform, every SDK, plugin and workflow node on the integrations page, and the API reference. The API and the MCP server come with every plan, including Free; webhooks come with Pro and higher.

All developers guides

Try it on your next link

The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.