Twittner Twittner API
Overview
Introduction
Authentication
Login POST Signup POST Social Login POST Reset Password POST Refresh Token POST Verify Account POST Logout POST
User Profile
Profile Data POST Update Profile POST Avatar & Cover POST Privacy Settings POST Change Password POST Change Language POST Delete Account POST
Content
Post & Reply POST Timeline Feed POST Thread Data POST Pin Post POST Delete Post POST Swifts POST
Social
Follow & Unfollow POST Fetch Followers POST Fetch Following POST Follow Requests POST
Engagement
Like & Unlike POST Vote on Polls POST Bookmarks POST Repost POST Report Post POST
Search
Search Hashtags POST Search People POST Search Posts POST
Messaging
Messages POST
Notifications
Get Notifications POST Delete Notifications POST Push Token POST
Moderation
Block User POST Report Profile POST
Back to Twittner
API / User Profile / Profile Data
Fetch data - 1 Fetch posts - 2

My / User profile data

Please use this (https://twittner.com/mobile_api/profile) API to access user profile data fetching endpoint


Get parameters

Field Value Remarks
user_id Profile user ID In order to get information about the profile, you must send a valid ID or username
username Profile username Unique username. E.g. "turki"
session_id User auth token (Optional) In this case, authorization is not required, but it is desirable to determine whether you are subscribed to this profile or not, blocked or not, etc.

Success response

{
        "code": 200,
        "message": "Profile fetched successfully",
        "data":{
            "id": 79,
            "first_name": "rwefwe",
            "last_name": "werwer",
            "avatar": "https://twittner.com/upload/avatars/2020/05/thumbnail_120x120.png",
            "cover": "https://twittner.com/upload/covers/2020/11/image_cover.jpg",
            "user_name": "3324",
            "email": "dan_kassings@gmail.com",
            "is_verified": false,
            "website": "",
            "about_you": "",
            "gender": "M",
            "country": "United States",
            "post_count": 0,
            "about": "",
            "ip_address": "127.0.0.1",
            "following_count": 0,
            "follower_count": 0,
            "language": "english",
            "last_active": "1601390105",
            "profile_privacy": "everyone",
            "member_since": "Sep 2020",
            "is_blocked_visitor": false,
            "is_following": false,
            "can_view_profile": true
        }
    }

Error responses

{
        "code": 400,
        "message": "User ID is missing or invalid",
        "data": []
    }

    {
        "code": 400,
        "message": "User ID is missing or invalid",
        "data": []
    }
    

Fetch profile posts

Please use this (https://twittner.com/mobile_api/profile_posts) API to access user profile posts fetching endpoint


Get parameters

Field Value Remarks
user_id Profile user ID In order to get information about the profile, you must send a valid ID
type Profile posts type (posts/media/liked) E.g. `posts` in order to get user publications
session_id User auth token (Optional) In this case, authorization is not required, but it is desirable to determine whether you are subscribed to this profile or not, blocked or not, etc.
offset Last post offset ID This is only needed when loading posts of the pagination system.
page_size ​Total post limit for each request Recommended: 20

Success response

{
    "code": 200,
    "message": "Posts fetched successfully",
    "data": {
        "posts": [
            {
                "id": 74,
                "user_id": 7,
                "text": "",
                "type": "image",
                "replys_count": "0",
                "reposts_count": "0",
                "likes_count": "1",
                "status": "active",
                "thread_id": 0,
                "target": "publication",
                "og_data": "",
                "time": "2 minutes ago",
                "offset_id": 82,
                "is_repost": false,
                "is_reposter": false,
                "attrs": "",
                "advertising": false,
                "time_raw": "1605809671",
                "og_text": "",
                "og_image": "https://twittner.com/upload/images/2020/11/FqDafAGzJSkbNHtWlzMZ_19_3ae1e109ba500931d882d2f10e521a31_image_original.jpg",
                "url": "https://twittner.com/thread/74",
                "can_delete": false,
                "media":[
                    {
                        "id": 52,
                        "pub_id": 74,
                        "type": "image",
                        "src": "upload/images/2020/11/FqDafAGzJSkbNHtWlzMZ_19_3ae1e109ba500931d882d2f10e521a31_image_original.jpg",
                        "json_data": "{\n    \"image_thumb\": \"upload\\/images\\/2020\\/11\\/HM9AjSxebhwUM1xETCWq_19_3ae1e109ba500931d882d2f10e521a31_image_300x300.jpg\"\n}",
                        "time": "1605809668",
                        "x":{"image_thumb": "upload/images/2020/11/HM9AjSxebhwUM1xETCWq_19_3ae1e109ba500931d882d2f10e521a31_image_300x300.jpg"}
                    }
                ],
                "is_owner": false,
                "has_liked": false,
                "has_saved": false,
                "has_reposted": false,
                "reply_to":[],
                "owner":{"id": 7, "url": "https://twittner.com/@dan_kassing", "avatar": "https://twittner.com/upload/default/avatar.png",…}
            },
            {"id": 73, "user_id": 7, "text": "", "type": "image",…},
            {"id": 72, "user_id": 7, "text": "how to get more twitter followers", "type": "text",…},
            {"id": 7, "user_id": 7, "cover": "https://twittner.com/upload/covers/2020/09/Y34uzzA8rsQCmhGOC5Qo_18_8cebe1d4683c6defe9fdc69cd94744bc_image_cover.jpg",…}
        ]
    }
}

Error responses

{
    "code": 400,
    "message": "User ID is missing or invalid",
    "data": []
}

{
    "code": 400,
    "message": "User ID is missing or invalid",
    "data": []
}