Returns the nodeinfo of the Gitea application
GET
/nodeinfo
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
Media typeapplication/json
NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
object
metadata
object
openRegistrations
boolean
protocols
Array<string>
services
NodeInfoServices contains the third party sites this server can connect to via their application API
object
inbound
Array<string>
outbound
Array<string>
software
NodeInfoSoftware contains Metadata about server software in use
object
homepage
string
name
string
repository
string
version
string
usage
NodeInfoUsage contains usage statistics for this server
object
localComments
integer format: int64
localPosts
integer format: int64
users
NodeInfoUsageUsers contains statistics about the users of this server
object
activeHalfyear
integer format: int64
activeMonth
integer format: int64
total
integer format: int64
version
string
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"}