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 intags 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 Contentresponse has an empty body. Other success responses have endpoint-specific fields. A tag search returnstags, for example, while a successful upload returnsupload. - Follow each endpoint’s pagination rules. Return the next cursor unchanged. Depending on the list, it can be called
next_cursor,next_after, ornext_before. Search supports numbered pages. - Transfers, lottery ticket purchases, and escrow order creation require an
Idempotency-Keyheader. 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-Languageto indicate a preferred language. Display the localized error message and branch onerror.code.
Handle errors
CallingGET /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
- Accounts and sessions covers sign-in and session lifecycle.
- Nodes, topics, and replies covers browsing, pagination, and publishing.
- Search, uploads, and notifications shows how to page through search results, upload files, and stream unread counts.
- Direct messages and chat covers conversation IDs, message history, and read positions.
- The route index lists methods, paths, and access requirements for community clients and integrations.
