API Documentation

Access your bookmarks programmatically with the LinkaGoGo REST API.

Interactive API Explorer   Download OpenAPI Spec

Authentication

All API requests require an API key sent as a Bearer token in the Authorization header:

Authorization: Bearer lgg_your_api_key_here

Generate API keys in your Account Settings under API Keys. Keys are available on Plus and Premium plans.

Base URL

https://www.linkagogo.com/api/v1

Rate Limits

PlanRequests / day / keyMax keys
Plus5,0003
Premium10,0005

When the limit is exceeded, the API returns 429 Too Many Requests with a Retry-After: 86400 header.

Response Format

All responses are JSON. Errors return:

{"detail": "Error message here"}

Endpoints

User

GET /auth/me

Returns the authenticated user's profile.

Bookmarks

GET /urls

List bookmarks with optional filtering and pagination.

ParameterTypeDescription
folder_idintFilter by folder
qstringSearch query with optional prefix operators: tag:, -tag:, url:, -url:, star:N / star:N+, fav:yes / fav:no, visits:N / visits:N+, visited:7d / visited:2w / visited:never, created:7d / created:3m / created:1y+, modified:1w, status:dead / status:ok / status:redirect / status:unchecked. Time units: h (hours), d (days), w (weeks), m (months), y (years). Add + for older than. Use OR between same-prefix terms. Plain terms search title, URL, keywords, and comments.
favoriteboolFilter favorites only
sortstringtitle_asc, date_desc, visit_date_desc, visit_count_desc, rating_desc
pageintPage number (default 1)
page_sizeintItems per page (default 50, max 200)
GET /urls/{id}

Get a single bookmark by ID.

POST /urls

Create a new bookmark. If title is omitted or empty, LinkaGoGo auto-fetches the page title.

{
  "url": "https://example.com",
  "title": "Example Site",
  "folder_id": 0,
  "keywords": "example test",
  "comments": "",
  "rating": 0,
  "is_favorite": false
}
PUT /urls/{id}

Update a bookmark. All fields are required (full replacement).

PATCH /urls/{id}

Partially update a bookmark. Only include the fields you want to change.

{"title": "New Title", "keywords": "updated tags"}
DELETE /urls/{id}

Delete a bookmark.

POST /urls/move

Move multiple bookmarks to a folder.

{"ids": [123, 456], "folder_id": 789}
POST /urls/tag

Add or remove keyword tags on multiple bookmarks.

{"ids": [123, 456], "add": ["python", "tutorial"], "remove": ["misc"]}
POST /urls/batch/rating

Set rating (0–5) on multiple bookmarks.

{"ids": [123, 456], "rating": 4}
POST /urls/batch/favorite

Set or unset favorite on multiple bookmarks.

{"ids": [123, 456], "is_favorite": true}
POST /urls/batch/reminder

Set reminder schedule on multiple bookmarks. Use -9 to clear. Values: 0 (daily), -1 to -7 (weekly on Mon–Sun), -11 to -41 (monthly on 1st–31st), 7/14/30/60/90/180/365 (every N days).

{"ids": [123, 456], "reminder": 7}
POST /urls/batch/delete

Delete multiple bookmarks.

{"ids": [123, 456]}

Account

GET /account/stats

Get account statistics (bookmark count, folder count, favorites, tags, date range).

GET /urls?sort=reminders

List bookmarks with active reminders that are due.

Folders

GET /folders

List all folders (flat array with folder_id for parent).

POST /folders

Create a new folder.

{"name": "My Folder", "folder_id": 0}
POST /folders/create-path

Create a folder path, auto-creating intermediate folders. Returns the leaf folder.

{"path": "Dev/Python/Libraries"}
PUT /folders/{id}

Update a folder (rename, move, toggle public).

DELETE /folders/{id}

Delete a folder and its contents.

Import & Export

GET /export/xbel

Export all bookmarks as XBEL XML. (Plus+)

GET /export/netscape

Export all bookmarks as Netscape HTML.

POST /import/xbel

Import bookmarks from an XBEL XML file (multipart upload or raw XML body). (Plus+)

POST /import/netscape

Import bookmarks from a Netscape HTML file (multipart upload or raw HTML body). Supports Chrome, Firefox, and Safari export formats. (Plus+)

Example: curl

# List bookmarks
curl -H "Authorization: Bearer lgg_your_key" \
  https://www.linkagogo.com/api/v1/urls

# Create a bookmark
curl -X POST -H "Authorization: Bearer lgg_your_key" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","title":"Example"}' \
  https://www.linkagogo.com/api/v1/urls

# Search bookmarks
curl -H "Authorization: Bearer lgg_your_key" \
  "https://www.linkagogo.com/api/v1/urls?q=python&sort=date_desc"

Example: JavaScript

const API_KEY = 'lgg_your_key';
const BASE = 'https://www.linkagogo.com/api/v1';

const resp = await fetch(`${BASE}/urls?q=javascript`, {
  headers: { 'Authorization': `Bearer ${API_KEY}` },
});
const data = await resp.json();
console.log(data.bookmarks);

See also: AI Integration (MCP) — manage bookmarks by chatting with Claude, ChatGPT, Cursor, and more.

Markdown Views — the Web of Markdown

Every bookmark page in LinkaGoGo — the public pages you share, and your own private views — can render as plain markdown instead of HTML. Send Accept: text/markdown and you get a clean, link-ready document: no JSON to parse, no HTML to strip. We call this the Web of Markdown — your bookmarks in a format any text-based client, LLM agent, or markdown reader can consume directly, link to, and click through.

Public share pages

No authentication required — same content a visitor sees on your public share page.

GET /u/{username}

A user's public folders, as a markdown list.

GET /u/{username}/{folder_id}

One public folder: breadcrumb, subfolders, and bookmarks.

Private pages

Require the same session cookie or Authorization: Bearer API key as the rest of this API. These mirror your own account's views in the app at /app — and exist as real URLs specifically because the app's own hash-based routes (#new, #folder:0, #tags, ...) are resolved entirely by JavaScript in the browser and never reach the server, so a non-JS markdown client can't address them any other way.

PathShows
/app/allAll bookmarks, sorted by title
/app/newSorted by date added, newest first
/app/recentSorted by last visited
/app/popularSorted by visit count
/app/favoritesFavorited bookmarks
/app/remindersBookmarks with a reminder due
/app/top-ratedSorted by rating
/app/folder/{id}One folder: breadcrumb, subfolders, bookmarks (0 = root)
/app/tagsAll tags with counts
/app/tags/{tag}Bookmarks filtered to one tag
/app/rssBookmarks with an RSS feed attached (Plus+)
/app/rss/{bookmark_id}That bookmark's feed items (Plus+)
/app/dashboardYour configured dashboard toolbars, as a table of contents plus a short preview of each

Without an Accept: text/markdown header, every one of these paths just serves the normal app page — nothing changes for your browser.

Query parameters

ParameterValuesDescription
sortasc / descFlip the view's default sort direction
pageintPage number (25 items per page)
webiconsyesPrecede each title with its favicon
rawurlsyesLink straight to each bookmark's real URL instead of the visit-tracking redirect

By default, bookmark links on private pages go through the same visit-recording redirect the app's own title links use, so clicking one still counts as a visit. Pass rawurls=yes if you'd rather link directly to the destination — for example, from an API-key client where that redirect can't carry your Bearer token.

Example: curl

# A public share page, as markdown — no auth needed
curl -H "Accept: text/markdown" \
  https://www.linkagogo.com/u/someusername

# Your own "New" view, as markdown
curl -H "Accept: text/markdown" \
  -H "Authorization: Bearer lgg_your_key" \
  https://www.linkagogo.com/app/new

# Your dashboard, with favicons
curl -H "Accept: text/markdown" \
  -H "Authorization: Bearer lgg_your_key" \
  "https://www.linkagogo.com/app/dashboard?webicons=yes"

Prefer a browser over curl? Mardo is a markdown browser, built by the same author, made for exactly this — point it at any of the URLs above to try the Web of Markdown firsthand.