const axios = require("axios");
const options = {
method: 'GET',
url: 'https://tik-tok-feed.p.rapidapi.com/',
params: {search: 'wyn8080520', type: 'user-feed', max: '0'},
headers: {
'X-RapidAPI-Key': 'xxxx',
'X-RapidAPI-Host': 'tik-tok-feed.p.rapidapi.com'
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
downloadAddr:
0:"https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0037c001-aiso/ogmhHRxUxIEzAAXOovnQANh3fCAI6Q2Aw5SNCI/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=3358&bt=1679&cs=0&ds=3&ft=4fUEKMzm8Zmo0CedM64jVmN6PpWrKsdm&mime_type=video_mp4&qs=0&rc=NDxkO2Y5NzU4ZDo3PGU3ZkBpajd3bDM6ZnEzaDMzZjczM0AwYmM0NjE0NV8xYTYyYmFhYSNwMS8zcjRnZWxgLS1kMWNzcw%3D%3D&btag=80000&expire=1677133704&l=202302230028139BE1265558D0B95C1D74&ply_type=2&policy=2&signature=7484daea62dfd1739a1e612a54c06351&tk=tt_chain_token"
playAddr:
0:"https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0037c001-aiso/ogmhHRxUxIEzAAXOovnQANh3fCAI6Q2Aw5SNCI/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=3358&bt=1679&cs=0&ds=3&ft=4fUEKMzm8Zmo0CedM64jVmN6PpWrKsdm&mime_type=video_mp4&qs=0&rc=NDxkO2Y5NzU4ZDo3PGU3ZkBpajd3bDM6ZnEzaDMzZjczM0AwYmM0NjE0NV8xYTYyYmFhYSNwMS8zcjRnZWxgLS1kMWNzcw%3D%3D&btag=80000&expire=1677133704&l=202302230028139BE1265558D0B95C1D74&ply_type=2&policy=2&signature=7484daea62dfd1739a1e612a54c06351&tk=tt_chain_token"
Participez à la discussion - ajoutez un commentaire ci-dessous:
None of the user feed api works as expected.
Any ETA?
user-feed-v2 only works for tiktok profile, for all other users it gives the following error
ex
const axios = require(“axios”);
const options = {
method: ‘GET’,
url: ‘https://tik-tok-feed.p.rapidapi.com/’,
params: {search: ‘wyn8080520’, type: ‘user-feed-v2’, max: ‘0’},
headers: {
‘X-RapidAPI-Key’: ‘xxxx’,
‘X-RapidAPI-Host’: ‘tik-tok-feed.p.rapidapi.com’
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
I updated the new endpoint, please try again!
The current API version returns a download link which requires a cookie, I will update.