User Posts
Fetching a users posts through our API
GENERAL ENDPOINT
Returns posts posted by the user
GET https://kitkot.xyz/api/get_user/posts
Returns the first x count of posts you specify that the user has posted
Query Parameters
Name
Type
Description
api_key*
String
The api_key you got when purchasing our service
sec_user_id*
String
The sec_user_id of the user to fetch posts off
max_cursor
String
The max_cursor returned from the request you made before to fetch the next page of posts
{
"code": 200,
"posts": [Object, Object, Object, Object],
"min_cursor": 1632205340000,
"max_cursor": 1632205340000,
"has_more": 1
}{
"code": 400,
"msg": "invalid parameters"
}const fetch = require('node-fetch');
const BASEURL = "https://kitkot.xyz/api";
const API_KEY = "my-api-key";
const sec_user_id = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM";
const count = "6";
const request = await fetch(`${BASEURL}/get_user/posts?api_key=${API_KEY}&sec_user_id=${sec_user_id}&count=${count}`);
const response = await request.json();
console.log(response);import requests
BASEURL = "https://kitkot.xyz/api"
API_KEY = "my-api-key"
sec_user_id = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
count = "6"
request = requests.get(f"{BASEURL}/get_user/posts?api_key={API_KEY}&sec_user_id={sec_user_id}&count={count}")
response = request.json()
print(response)Last updated
