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

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Headers

Name
Type
Description

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 "
  }
}

The username of a profile can be found in the url. Eg. samochat.net/profile/samochat

Timeline endpoint

GET https://api.samochat.net/profile/:username/timeline

This fetches the public posts of a user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Name endpoint

GET https://api.samochat.net/user/:username?query=name

This fetches the name of a specified user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

name

string

The name of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Age endpoint

GET https://api.samochat.net/user/:username?query=age

This fetches the age of a specified user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

age

string

The age of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Gender endpoint

GET https://api.samochat.net/user/:username?query=gender

This fetches the gender of a specified user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

gender

string

The gender of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Location endpoint

GET https://api.samochat.net/user/:username?query=location

This fetches the location of a specified user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

location

string

The location of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

SamoCredits endpoint

GET https://api.samochat.net/user/:username?query=samocredits

This fetches the amount of SamoCredits a specific user has.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

samocredits

string

The SamoCredits of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Rank endpoint

GET https://api.samochat.net/user/:username?query=rank

This fetches the location of a specified user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

rank

string

The rank of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Videos endpoint

GET https://api.samochat.net/user/:username?query=videos

This fetches the number of videos of a specified user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

videos

string

The number of videos of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Photos endpoint

GET https://api.samochat.net/user/:username?query=photos

This fetches the number of photos of a specified user.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

photos

string

The number of photos of the specified user.

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Joined endpoint

GET https://api.samochat.net/user/:username?query=joined

This shows when the specified user joined SamoChat.

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

joined

string

Shows the

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

About endpoint

GET https://api.samochat.net/user/:username?query=about

This fetches the about section of a specified user

Path Parameters

Name
Type
Description

username

string

The unique username of each SamoChat profile.

Query Parameters

Name
Type
Description

about

string

The about section of the user

Headers

Name
Type
Description

Authorization

string

The bearer token needed to access the API

Last updated

Was this helpful?