Returns the nodeinfo of the Gitea application
const url = 'https://gitea.com/api/v1/nodeinfo';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/nodeinfo \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”NodeInfo
NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
object
Metadata contains free form key value pairs for software specific values
object
OpenRegistrations indicates if new user registrations are accepted
Protocols lists the protocols supported by this server
NodeInfoServices contains the third party sites this server can connect to via their application API
object
Inbound lists services that can deliver content to this server
Outbound lists services this server can deliver content to
NodeInfoSoftware contains Metadata about server software in use
object
Homepage is the URL to the homepage of this server software
Name is the canonical name of this server software
Repository is the URL to the source code repository
Version is the version of this server software
NodeInfoUsage contains usage statistics for this server
object
LocalComments is the total amount of comments made by users local to this server
LocalPosts is the total amount of posts made by users local to this server
NodeInfoUsageUsers contains statistics about the users of this server
object
ActiveHalfyear is the amount of users that signed in at least once in the last 180 days
ActiveMonth is the amount of users that signed in at least once in the last 30 days
Total is the total amount of users on this server
Version specifies the schema version
Examplegenerated
{ "metadata": {}, "openRegistrations": true, "protocols": [ "example" ], "services": { "inbound": [ "example" ], "outbound": [ "example" ] }, "software": { "homepage": "example", "name": "example", "repository": "example", "version": "example" }, "usage": { "localComments": 1, "localPosts": 1, "users": { "activeHalfyear": 1, "activeMonth": 1, "total": 1 } }, "version": "example"}