Skip to content

Social Media Profiles

Fetch all social media profiles

fetch('https://dummyapi.online/api/social-profiles')
.then((response) => response.json())
.then((json) => console.log(json));
Output
[
{
"userId": 1,
"username": "user123",
"email": "user1@example.com",
"profilePic": "https://placehold.co/400x400?text=user123+profile+pic",
"bio": "This is a short user bio...",
"homepage": "https://userwebsite.com",
"hobbies": ["Photography", "Traveling", "Reading"],
"fullName": "John Doe",
"location": "New York, USA",
"birthDate": "1990-01-01",
"followersCount": 1500,
"followingCount": 300,
"postsCount": 450,
"joinedDate": "2015-06-01",
"verifiedStatus": true,
"languages": ["English", "Spanish"],
"education": "B.Sc in Computer Science",
"work": "Software Developer at TechCorp",
"relationshipStatus": "Single",
"gender": "Male",
"pronouns": "he/him",
"interests": ["Artificial Intelligence", "Machine Learning"],
"coverPhoto": "https://placehold.co/600x400?text=user123+cover+pic",
"privacySettings": {
"showEmail": false,
"showBirthDate": false
},
"lastActive": "2023-11-23",
"statusMessage": "Exploring the world of AI!",
"contactInfo": {
"phone": "+1234567890",
"secondaryEmail": "secondary@example.com"
},
"customFields": [
{
"fieldName": "FavoriteBook",
"fieldValue": "1984 by George Orwell"
}
]
},
// More profiles...
]

Fetch a single social media profile

Getting a single social media profile by ID. In this example, we use the /api/social-profiles/1 route.

fetch('https://dummyapi.online/api/social-profiles/1')
.then((response) => response.json())
.then((json) => console.log(json));
Output
{
"userId": 1,
"username": "user123",
"email": "user1@example.com",
"profilePic": "https://placehold.co/400x400?text=user123+profile+pic",
"bio": "This is a short user bio...",
"homepage": "https://userwebsite.com",
"hobbies": ["Photography", "Traveling", "Reading"],
"fullName": "John Doe",
"location": "New York, USA",
"birthDate": "1990-01-01",
"followersCount": 1500,
"followingCount": 300,
"postsCount": 450,
"joinedDate": "2015-06-01",
"verifiedStatus": true,
"languages": ["English", "Spanish"],
"education": "B.Sc in Computer Science",
"work": "Software Developer at TechCorp",
"relationshipStatus": "Single",
"gender": "Male",
"pronouns": "he/him",
"interests": ["Artificial Intelligence", "Machine Learning"],
"coverPhoto": "https://placehold.co/600x400?text=user123+cover+pic",
"privacySettings": {
"showEmail": false,
"showBirthDate": false
},
"lastActive": "2023-11-23",
"statusMessage": "Exploring the world of AI!",
"contactInfo": {
"phone": "+1234567890",
"secondaryEmail": "secondary@example.com"
},
"customFields": [
{
"fieldName": "FavoriteBook",
"fieldValue": "1984 by George Orwell"
}
]
}

Show All Available Social Media Profiles

To view all available social media profiles, you can open the Social Media Profiles Endpoint in your browser.