Skip to main content
The NodeLoc website and native apps use this API to read Nodes, publish topics, and manage accounts. The production base URL is https://www.nodeloc.com/api/v1. For a self-hosted instance, replace the origin. Use the same API paths for every interface language.

Make a first request

This public request searches tags. Each match in tags includes its name, display label, and topic_count. An empty array means there were no matches.

Choose credentials

For sign-in, two-factor authentication, and sign-out, see Accounts and sessions. Third-party websites can use Open Login to authenticate users. Merchants create orders through the payment API. Mini Apps have their own API and credentials.

Send requests and read responses

  • For JSON requests, set Content-Type: application/json. Endpoints using the standard JSON decoder accept one JSON value, reject unknown fields, and limit the body to 1 MiB. File uploads use multipart and notification streams use SSE.
  • A 204 No Content response has an empty body. Other success responses have endpoint-specific fields. A tag search returns tags, for example, while a successful upload returns upload.
  • Follow each endpoint’s pagination rules. Return the next cursor unchanged. Depending on the list, it can be called next_cursor, next_after, or next_before. Search supports numbered pages.
  • Transfers, lottery ticket purchases, and escrow order creation require an Idempotency-Key header. Reuse the same key when retrying the same operation and choose a new key for each new operation. The route tables identify endpoints that require it.
  • Send Accept-Language to indicate a preferred language. Display the localized error message and branch on error.code.

Handle errors

Calling GET /api/v1/search without a search term returns 422. With English as the response language, the error includes a message for the missing field.

Find an operation