Endpoints
Here you will find all the endpoints and their examples.
Profile endpoint
GET https://api.samochat.net/profile/:username
This fetches the public information of a user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Headers
Authorization
string
The bearer token needed to access the API
{
"user": {
"name": "SamoChat",
"age": "13 years ",
"gender": "Male",
"location": "Søborg, Danmark",
"SamoCredits": "100.000.319",
"rank": "Elite",
"videos": "1",
"photos": "28",
"joined": "Member since 2 years ago",
"about": " What's your idea?: To connect everyone, everywhere in a 💯 % secure and private way About Me: We are the first Social media to truly respect and guard your privacy. Made in but based in 🇩🇰 Website: Samochat.net "
}
}curl --location -g --request GET 'api.samochat.net/profile/:username' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetProfile("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_profile("SamoChat")
Timeline endpoint
GET https://api.samochat.net/profile/:username/timeline
This fetches the public posts of a user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Headers
Authorization
string
The bearer token needed to access the API
{
"posts": [
" SamoChat says: 7 months ago We're now on product hunt SamoChatters! 🙌🏾 2 people like this. ",
" SamoChat says: 8 months ago SamoChat VS Facebook 3 people like this. ",
" SamoChat says: 1 year ago Just be yourself without worrying about privacy or preying eyes! NO ESPIONAGE NO TRACKING NO TO SELLING DATA GET PRIVACY and FREE SPEECH SamoChat the ideal social media for the new age! https://nationaltelegraph.net/samochat-posses-stiff-competition-for-facebook-in-somalia/ The article was written by a SamoChatter by the name Jebril Domenico Facebook Will Face Stiff Competition From Samochat In Somalia. 2 people like this. ",
" SamoChat says: 1 year ago Hodan Naleyah, was a true Somali who cared for her people, may Allah grant her, her husband and every other victim jannah firdous inshallah, in tribute to her and her spirit of never giving up, we've added a new sticker in her honor :(naagiskadhi): (remove the parenthesis in order to use it) 1 people like this. ",
" SamoChat says: 2 years ago Welcome new SamoChatters! 🙌🏾 3 people like this. ",
" SamoChat says: 2 years ago SamoChatters! new stickers have arrived! You can use the following codes: :(hi: :(bye: :(wow: :(cool: :(oops: :(what: but you must remove the parentheses in order for them to work. 4 people like this. SamoChat January 31, 2019 at 9:11 PM you can also find them in the more section inside the emoji menu suldaan cumar February 1, 2019 at 8:14 AM :(hi: Abdirahiim Yassin February 1, 2019 at 8:52 AM Wll qawska waan in laga saaro markaasaa shaqeynaysa Hafsa Yassin February 1, 2019 at 10:38 AM "
]
}curl --location -g --request GET 'api.samochat.net/profile/:username/timeline' \
--header 'Content-Type: application/json' \
--header 'Authorization: access_token'using SamoChatNet
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetPosts("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_posts("SamoChat")Name endpoint
GET https://api.samochat.net/user/:username?query=name
This fetches the name of a specified user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
name
string
The name of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"name": "SamoChat"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=name' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetName("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_name("SamoChat")Age endpoint
GET https://api.samochat.net/user/:username?query=age
This fetches the age of a specified user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
age
string
The age of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"age": " 13 years "
}curl --location -g --request GET 'api.samochat.net/user/:username?query=age' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetAge("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_age("SamoChat")Gender endpoint
GET https://api.samochat.net/user/:username?query=gender
This fetches the gender of a specified user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
gender
string
The gender of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"gender": "Male"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=gender' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetGender("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_gender("SamoChat")Location endpoint
GET https://api.samochat.net/user/:username?query=location
This fetches the location of a specified user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
location
string
The location of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"location": "Søborg, Danmark"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=location' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetLocation("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_location("SamoChat")SamoCredits endpoint
GET https://api.samochat.net/user/:username?query=samocredits
This fetches the amount of SamoCredits a specific user has.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
samocredits
string
The SamoCredits of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"SamoCredits": "100.000.319"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=SamoCredits' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetSamoCredits("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_samocredits("SamoChat")Rank endpoint
GET https://api.samochat.net/user/:username?query=rank
This fetches the location of a specified user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
rank
string
The rank of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"rank": "Elite"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=rank' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetRank("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_rank"SamoChat")Videos endpoint
GET https://api.samochat.net/user/:username?query=videos
This fetches the number of videos of a specified user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
videos
string
The number of videos of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"videos": "1"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=videos' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetVideos("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_videos("SamoChat")Photos endpoint
GET https://api.samochat.net/user/:username?query=photos
This fetches the number of photos of a specified user.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
photos
string
The number of photos of the specified user.
Headers
Authorization
string
The bearer token needed to access the API
{
"photos": "28"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=photos' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetPhotos("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_photos("SamoChat")Joined endpoint
GET https://api.samochat.net/user/:username?query=joined
This shows when the specified user joined SamoChat.
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
joined
string
Shows the
Headers
Authorization
string
The bearer token needed to access the API
{
"joined": "Member since 2 years ago"
}curl --location -g --request GET 'api.samochat.net/user/:username?query=joined' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetJoined("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_joined("SamoChat")About endpoint
GET https://api.samochat.net/user/:username?query=about
This fetches the about section of a specified user
Path Parameters
username
string
The unique username of each SamoChat profile.
Query Parameters
about
string
The about section of the user
Headers
Authorization
string
The bearer token needed to access the API
{
"about": " What's your idea?: To connect everyone, everywhere in a 💯 % secure and private way About Me: We are the first Social media to truly respect and guard your privacy. Made in but based in 🇩🇰 Website: Samochat.net "
}curl --location -g --request GET 'api.samochat.net/user/:username?query=about' \
--header 'Content-Type: application/json' \
--header 'Authorization: {access_token}'using SamoChatNet;
SamoChatConfig.ClientID = "ClientID";
SamoChatConfig.ClientSecret = "ClientSecret";
//Declares the instance
SamoChatData data = new SamoChatData();
data.GetAbout("SamoChat");import samochat
samochat.client_id = "client_id"
samochat.client_secret = "client_secret"
# Declares the instance
data = SamochatData()
data.get_about("SamoChat")Last updated
Was this helpful?