curl --request GET \
--url https://api.example.com/api/user/{username}{
"200": {},
"404": {},
"username": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"created_at": "<string>",
"custom_css": "<string>",
"background_image": "<string>",
"stats": {
"followers": 123,
"following": 123,
"posts": 123,
"upvotes": 123,
"downvotes": 123
}
}Retrieve a user’s public profile information including stats
curl --request GET \
--url https://api.example.com/api/user/{username}{
"200": {},
"404": {},
"username": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"created_at": "<string>",
"custom_css": "<string>",
"background_image": "<string>",
"stats": {
"followers": 123,
"following": 123,
"posts": 123,
"upvotes": 123,
"downvotes": 123
}
}{
"error": "user not found"
}
curl -X GET https://api.example.com/api/user/johndoe
{
"username": "johndoe",
"avatar_url": "https://example.com/avatars/johndoe.png",
"description": "Software developer and tech enthusiast",
"created_at": "2024-01-15 10:30:00",
"custom_css": ".profile { color: blue; }",
"background_image": "https://example.com/backgrounds/johndoe.jpg",
"stats": {
"followers": 150,
"following": 75,
"posts": 42,
"upvotes": 320,
"downvotes": 15
}
}