Skip to main content
POST
/
scrape-tiktok
Scrape TikTok videos
curl --request POST \
  --url https://rawugc.com/api/v1/scrape-tiktok \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "mode": "keyword",
  "limit": 10
}
'
{
  "scrapeId": "<string>",
  "count": 123,
  "videos": [
    {
      "id": "<string>",
      "url": "<string>",
      "author": "<string>",
      "description": "<string>",
      "stats": {
        "views": 123,
        "likes": 123,
        "comments": 123,
        "shares": 123
      },
      "duration": 123,
      "hashtags": [
        "<string>"
      ],
      "thumbnail": "<string>",
      "videoUrl": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use your API key from the RawUGC dashboard. Include as: Authorization: Bearer YOUR_API_KEY

Body

application/json
query
string
required

Search keyword, hashtag, or query

Required string length: 1 - 500
mode
enum<string>
default:keyword

Search mode

Available options:
keyword,
hashtag,
search
limit
integer
default:10

Maximum number of videos to return

Required range: 1 <= x <= 10

Response

Videos scraped successfully

scrapeId
string

Opaque ID to use with content-plans endpoint

count
integer

Number of videos returned

videos
object[]