Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Search Bilibili live creators

TikHub tool tikhub-api-bilibili-huahuo-search-live-upper on looot: input fields, $0.01 per call, output shape, and code to run it with curl, JavaScript or Python.

Searches Bilibili live creators for branded-content or live-commerce collaborations. Optional inputs: mids, page, sort, gender, order_by and more. Returns total_count: Total number of matching creators.

  • Tool id: tikhub-api-bilibili-huahuo-search-live-upper
  • Provider: TikHub
  • Job: Search live upper api bilibili huahuo (api.bilibili.huahuo.search-live-upper)
  • Price: $0.01 per call. A call that fails at the provider costs $0.

Inputs

Name Type Required Description
fans_age_tag string no Fan age tag
fans_gender_tag string no Fan gender tag
fans_region_tag string no Fan region tag
gender string no Streamer gender
high_potential_type string no Onboarding status
is_brand_live string no Live type: 1=content live, 0=live commerce. Available filters differ by type
live_audience_h_avg_30d_max string no Maximum hourly average viewer count, last 30 days
live_audience_h_avg_30d_min string no Minimum hourly average viewer count, last 30 days
live_danmu_h_avg_30d_max string no Maximum hourly average danmaku (bullet comment) count, last 30 days
live_danmu_h_avg_30d_min string no Minimum hourly average danmaku (bullet comment) count, last 30 days
live_good_category string no Main product category, 0 = all, values from live_good_category
live_good_gmv string no GMV tier over the last 90 days, 0=all
live_guild_id string no Live guild, values from live_guild_drop
live_subarea_id string no Live category (level 2), values from live_area_list
max_fans_num string no Maximum fan count
max_popularity string no Maximum average peak popularity per stream, last 30 days
mids string no Exact match on a batch of UIDs
min_fans_num string no Minimum fan count
min_popularity string no Minimum average peak popularity per stream, last 30 days
nickname_or_mids string no Search by creator nickname or UID
order_by string no Sort field
page string no Page number, starting at 1, fixed 20 items per page
partition_id string no Content category (level 1)
region_id string no Streamer home region (level 1)
second_partition_id string no Content category (level 2)
second_region_id string no Streamer home region (level 2)
sort string no Sort direction: desc or asc

Output

The run’s result holds the provider’s answer. Signed in, looot inspect tikhub-api-bilibili-huahuo-search-live-upper prints its fields.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.

Example input with placeholder values:

curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"tikhub-api-bilibili-huahuo-search-live-upper","input":{"mids":"<mids>"},"wait":30}'
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "tikhub-api-bilibili-huahuo-search-live-upper",
    input: {
      mids: "<mids>",
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "tikhub-api-bilibili-huahuo-search-live-upper",
        "input": {
            "mids": "<mids>",
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:api.bilibili.huahuo.search-live-upper as endpointId; see the job page.

Was this page helpful?