/v0/accounts/:identifier
GET
/v0/accounts/:identifier
const url = 'http://localhost:3000/v0/accounts/:identifier';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/v0/accounts/:identifierParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”OK
Media type application/json
object
id
required
Account ID
string
email
Account email address (only when logged in to an account with viewing privileges)
string
name
required
Account name
string
nickname
required
Account nickname
string
bio
required
Biography
string
avatar
required
Avatar URL
string format: uri
header
required
Header URL
string format: uri
followed_count
required
Followed count
number
following_count
required
Following count
number
note_count
required
Note count
number
role
Account role (only when logged in to an account with viewing privileges)
string
status
Account status (only when logged in to an account with viewing privileges)
string
frozen
Account frozen status (only when logged in to an account with viewing privileges)
string
silenced
Account silenced status (only when logged in to an account with viewing privileges)
string
created_at
Account created at (only when logged in to an account with viewing privileges)
string format: date-time
Example
{ "id": "38477395", "email": "johndoe@example.com", "name": "@johndoe@example.com", "nickname": "JohnDoe<:typescript:299384730049>", "bio": "", "avatar": "https://example.com/avatar.png", "header": "https://example.com/header.png", "followed_count": 100, "following_count": 100, "note_count": 100, "role": "normal", "status": "active", "frozen": "normal", "silenced": "normal", "created_at": "2021-01-01T00:00:00Z"}Not Found
Media type application/json
Account not found
object
error
required
Account not found.
string
Example
{ "error": "ACCOUNT_NOT_FOUND"}Internal Server Error
Media type application/json
object
error
required
Internal server error.
string
Example
{ "error": "INTERNAL_ERROR"}