Skip to content

Commit

Permalink
fix: change api URL
Browse files Browse the repository at this point in the history
due to content-length being 0

thanks to #4
  • Loading branch information
okdargy committed Mar 15, 2024
1 parent 796975a commit 6b85c66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/tiktok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export async function grabAwemeId(videoId: string): Promise<String | Error> {
}

export async function getVideoInfo(awemeId: String): Promise<AwemeList | Error> {
// https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/7311925846594342175
const res: Response = await fetch('https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id=' + awemeId, {
const res: Response = await fetch('https://api19-normal-c-useast2a.tiktokv.com/aweme/v1/feed/?aweme_id=' + awemeId, {
cf: {
cacheEverything: true,
cacheTtlByStatus: { "200-299": 86400, 404: 1, "500-599": 0 },
Expand Down

0 comments on commit 6b85c66

Please sign in to comment.