Skip to main content
GET
/
viral-library
/
search
Search viral library
curl --request GET \
  --url https://rawugc.com/api/v1/viral-library/search \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "video": {
        "id": "<string>",
        "tiktokId": "<string>",
        "tiktokUrl": "<string>",
        "username": "<string>",
        "description": "<string>",
        "stats": {
          "views": 123,
          "likes": 123,
          "comments": 123,
          "shares": 123,
          "saves": 123
        },
        "hashtags": [
          "<string>"
        ],
        "soundName": "<string>",
        "duration": 123,
        "thumbnailUrl": "<string>",
        "playUrl": "<string>",
        "analysis": {
          "hook": "<string>",
          "summary": "<string>",
          "whyItPerformed": [
            "<string>"
          ],
          "attributesToCopy": [
            "<string>"
          ],
          "hooksToTest": [
            "<string>"
          ],
          "keyframes": [
            {
              "timestamp": 123,
              "type": "<string>",
              "description": "<string>",
              "visual": "<string>",
              "audio": "<string>",
              "text": "<string>"
            }
          ],
          "durationSeconds": 123,
          "tags": [
            "<string>"
          ],
          "analyzedAt": 123
        }
      },
      "score": 123
    }
  ],
  "query": "<string>",
  "total": 123
}

Authorizations

Authorization
string
header
required

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

Query Parameters

q
string
required

Natural language search query (e.g., 'before after transformation', 'pattern interrupt hooks', 'skincare product demos')

limit
integer
default:20

Maximum number of results to return

Required range: 1 <= x <= 50

Response

Search results ranked by relevance

results
object[]
query
string

The search query that was executed

total
integer

Number of results returned