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

Get content square api xiaohongshu pgy

Run job:api.xiaohongshu.pgy.get-content-square through the looot API: 1 provider, from $0.02 per call. Inputs, prices, output shape and code for curl, JavaScript and Python.

Get content square api xiaohongshu pgy.

Job id api.xiaohongshu.pgy.get-content-square, in Ads intelligence (Xiaohongshu). As of 2026-10-01, 1 provider serve it through 1 tool. Run job:api.xiaohongshu.pgy.get-content-square and looot picks one of them; with fallback on, a miss moves on to the next. See Jobs.

Inputs

This job has one tool, so it takes that tool’s fields. Any key you send passes through unchanged.

Name Type Required Description
author_type string no Board 4 only.
biz_type integer yes Leaderboard. Example: 1
category string no Board 1 only. Example: “内容类目#美妆”
content_type string no Content source. Example: 1
date_range integer no Date window in days. Example: 7
fans string no Creator fans range, board 4 only
industry string no Industry, values differ per board. Example: “母婴”
marketing_target string no Board 3 only. Example: 3
note_type string no Content type. Example: 2
order_by string no Sort field, empty=board default. Example: “premium_imp_num”
page_num integer no Page; each board has only 100 items. Example: 1
page_size integer no Page size, 1-34. Example: 34
placement string no Traffic placement. Example: 1
price string no Creator price, board 4 only
search_word string no Keyword, comma-separated for batch. Example: “面膜”
sub_biz_type string no Board 8 only. Example: 3
theme string no Theme. Example: “开箱”

Providers and prices

Provider Tool Price
TikHub tikhub-api-xiaohongshu-pgy-get-content-square $0.02 per call

A call that fails at the provider costs $0. See What’s free.

Output

The run’s result holds the provider’s answer. Signed in, looot inspect tikhub-api-xiaohongshu-pgy-get-content-square 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":"job:api.xiaohongshu.pgy.get-content-square","input":{"biz_type":1,"theme":"开箱","category":"内容类目#美妆","industry":"母婴","order_by":"premium_imp_num","page_num":1,"note_type":2,"page_size":34,"placement":1,"date_range":7,"author_type":"<author_type>","search_word":"面膜","content_type":1,"sub_biz_type":3,"marketing_target":3},"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: "job:api.xiaohongshu.pgy.get-content-square",
    input: {
      biz_type: 1,
      theme: "开箱",
      category: "内容类目#美妆",
      industry: "母婴",
      order_by: "premium_imp_num",
      page_num: 1,
      note_type: 2,
      page_size: 34,
      placement: 1,
      date_range: 7,
      author_type: "<author_type>",
      search_word: "面膜",
      content_type: 1,
      sub_biz_type: 3,
      marketing_target: 3,
    },
    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": "job:api.xiaohongshu.pgy.get-content-square",
        "input": {
            "biz_type": 1,
            "theme": "开箱",
            "category": "内容类目#美妆",
            "industry": "母婴",
            "order_by": "premium_imp_num",
            "page_num": 1,
            "note_type": 2,
            "page_size": 34,
            "placement": 1,
            "date_range": 7,
            "author_type": "<author_type>",
            "search_word": "面膜",
            "content_type": 1,
            "sub_biz_type": 3,
            "marketing_target": 3,
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To pin one provider, send its tool id as endpointId instead of job:api.xiaohongshu.pgy.get-content-square.

Was this page helpful?