Social Media Scraper

n8n public profile workflow

TikTok Scraper for n8n: Get Public Profile Data

Connecting Social Media Scraper to an n8n HTTP Request node lets you fetch public TikTok profile JSON by handle or user_id for creator research workflows. Import the two-node starter workflow and authenticate with your API key to inspect identity, bio, and available metrics.

  1. Manual Trigger

    Start a test run with the public handle set in the HTTP Request node’s query parameters.

  2. HTTP Request GET

    Call tiktok.profile with Header Auth using x-api-key.

  3. Structured profile JSON

    Receive public identity, bio, and available counter fields for downstream steps.

Illustration of a public handle passing into HTTP Request GET and returning structured JSON

How to Set Up the n8n TikTok Profile Workflow JSON

Import the starter JSON with a Manual Trigger and an HTTP Request GET node. Set your Header Auth credential with header name x-api-key, pass a public handle in the HTTP Request query parameters, and run one test item.

Import the two-node starter JSON

Load the workflow JSON into n8n so you start with a Manual Trigger wired to one HTTP Request GET node.

Configure x-api-key Header Auth

Create an n8n Header Auth credential with header name x-api-key and store your API key inside the credential.

Test one handle and inspect $json.data

Set a public TikTok handle in the HTTP Request node query parameters, run one execution, and inspect the returned $json.data fields.

How to wire the two-node n8n HTTP Request workflow

Build an inactive workflow with Manual Trigger and an HTTP Request GET node using Header Auth (x-api-key); add Google Sheets or other downstream nodes yourself and keep keys out of URLs.

tiktok-scraper-n8n.json
{
  "name": "TikTok Scraper n8n",
  "nodes": [
    {
      "parameters": {},
      "id": "manual",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://socialmediascraper.org/v1/tiktok/profile",
        "method": "GET",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "handle",
              "value": "stoolpresidente"
            }
          ]
        },
        "options": {
          "timeout": 40000
        }
      },
      "id": "request",
      "name": "Fetch public data",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        500,
        300
      ]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Fetch public data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false,
  "pinData": {}
}

Copy or download the request, Python script, or n8n workflow, then run it in your own environment with an active API key and balance.

How Do You Configure the n8n TikTok Profile Request?

Set up the two-node TikTok profile starter (Manual Trigger -> HTTP Request) with Header Auth and a documented identifier before adding your own downstream nodes.

  1. Import the Manual Trigger and HTTP Request JSON

    Import the n8n TikTok profile workflow JSON into your workspace to place the Manual Trigger wired directly to the HTTP Request node.

  2. Set Header Auth header name to x-api-key

    In the HTTP Request node, set Authentication to Generic Credential Type, select Header Auth, and set the credential's Header Name to x-api-key with your Social Media Scraper API key as the value.

  3. Enable Send Query Parameters on tiktok.profile

    Keep the method set to GET for the sample tiktok.profile endpoint, enable Send Query Parameters, and supply a documented public TikTok handle or user_id.

  4. Execute manually and check Output JSON

    Trigger a manual run and inspect the Output JSON panel to confirm available identity, handle, bio, profile_url, and metric fields.

How Can You Map TikTok Profile Data into Optional Downstream Nodes?

Spreadsheet and field-mapping nodes are not included in the two-node download. Once you add an optional Edit Fields or Google Sheets node afterward, map these fields:

TikTok Response PathOptional Downstream Mapping
data.handleCreator handle column in a user-added Edit Fields or Google Sheets node
data.profile_urlPublic TikTok profile URL column for manual review
data.metrics.followersOptional follower count column (may be null if unavailable)

What Should You Check When a TikTok Profile Request Fails?

400 Bad Request from parameter formatting

Verify that Send Query Parameters is enabled and that you passed a valid handle or user_id accepted by tiktok.profile.

401 or 402 authentication and balance errors

Confirm that the Header Auth credential's Header Name is exactly x-api-key with an active key and that your Social Media Scraper account has available balance.

429 Rate Limit and absent optional data

Reduce request frequency if the API returns 429, and configure user-added sheet or database fields to tolerate null optional metrics.

The downloadable workflow has active set to false and contains two nodes only: Manual Trigger -> HTTP Request. Any scheduling, Edit Fields, Google Sheets, or storage steps must be added by the user.

What Does the TikTok Profile API Return?

Calling tiktok.profile with a public handle returns JSON for account identity, bio text, profile link, and available public counters. Missing or private fields come back null or omitted, while posts and transcripts use separate documented operations.

Public identity, bio, and profile URL

Get the account handle, display name, bio text, and profile URL in structured JSON fields.

Available public counters

Read reported follower, following, like, and video counts from the response without turning null or missing values into zero.

Separate post and transcript endpoints

Use separate documented API operations when you need video posts or transcripts rather than a profile record.

tiktok.profile response field types
{
  "id": "string",
  "handle": "string",
  "display_name": "string | null",
  "bio": "string | null",
  "profile_url": "string | null",
  "metrics": {
    "followers": "number | null",
    "posts": "number | null"
  }
}
Example schema of field names and value types only; not an actual query result or live metric readout.

Why Keep Profile Snapshots Separate from Content Tasks?

A single profile snapshot confirms account identity and public counts before you spend time on larger lists or downstream steps. It does not handle trend tracking, video generation, publishing, comment moderation, or private analytics.

Verify creator profiles early

Check public handle details and bios on single accounts during creator profile research before expanding your list.

Inspect clean JSON fields first

Review the returned $json.data fields on one test run so downstream steps map the right keys.

Keep public reads isolated

Separate public profile lookups from publishing, ad management, or private account reporting.

Illustration of a public TikTok profile feeding a data lookup and downstream records.
Illustration of a TikTok lookup feeding a user-configured data workflow.

When Should You Add Sheets, Schedules, or Storage?

Add destination or schedule nodes yourself after testing the two-node flow, because extra nodes are not bundled in the starter JSON. Connect a sheet or database after the request to save records, or add a schedule trigger before it for recurring checks.

Organize creator spreadsheets

Add a Google Sheets node after the HTTP Request node to build creator spreadsheets from returned handle, bio, and link fields.

Run recurring profile monitoring

Place a Schedule Trigger before the HTTP Request node and save your own timestamp with each run to compare public snapshots.

Store records in a database or script

Send JSON items to a database node or script after the request to deduplicate handles and record your own review notes.

What Limits Apply to Repeating TikTok Lookups?

Public profiles can be restricted or omit fields, and direct REST calls draw from your funded account balance. Free browser tools share three anonymous uses per network per UTC day across tools, with no automatic retries or anti-block guarantees.

Cap loop counts against balance

Limit handle loops before running workflows so request volume matches your funded account balance.

Handle null fields and failed requests

Account for null or missing values and check HTTP status codes because failed or restricted lookups do not retry automatically.

Protect keys and track browser quota

Keep x-api-key in an n8n Header Auth credential rather than URLs or shared JSON, and note the three-use daily browser limit.

What Questions Come Up with TikTok Profile Workflows in n8n?

Read the API documentation →

How to Test a TikTok Handle Before Connecting n8n

Run a lookup in the free profile viewer or check the tiktok.profile parameters before activating your n8n workflow.