Search Pugongying creators by keyword, audience, and price
justoneapi.x.xiaohongshu-pgysolar-cooperator-blogger-v2-v1Search Xiaohongshu Pugongying creators with keyword, audience, location, content, pricing, performance, cooperation, live, and similarity filters.
- Prix
- $0.0738/successAu prix catalogue
- Taux de réussite
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latence p50
- ——
- Dernière vérification
- 28 juil. 2026Vérifié et opérationnel
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-pgysolar-cooperator-blogger-v2-v1?page=1&sort=FANS&gender=ALL&fansAge=ALL&keyword=coffee&location=%E6%B5%99%E6%B1%9F+%E5%AE%81%E6%B3%A2+%E6%85%88%E6%BA%AA%E5%B8%82¬eType=ALL&tradeType=3c%E5%8F%8A%E7%94%B5%E5%99%A8+%E9%A3%9F%E5%93%81%E9%A5%AE%E6%96%99+%E6%9C%8D%E8%A3%85%E9%85%8D%E9%A5%B0+%E9%A4%90%E9%A5%AE+%E4%BA%92%E8%81%94%E7%BD%91&contentTag=%E7%BE%8E%E9%A3%9F&fansGender=ALL&searchType=NICKNAMEBeta- Utilise le quota de la plateforme
- Réponse synchrone
- Lit des données publiques
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
page | entier | Facultatif | Page number. | 1 |
sort | chaîne | Facultatif | Creator search sorting. Values: FANS sorts by follower count descending, DEFAULT uses Pugongying intelligent ranking. Available Values: - `DEFAULT`: Platform default intelligent ranking - `FANS`: Sort by follower count descending One of: DEFAULT, FANS. | FANS |
gender | chaîne | Facultatif | KOL's gender. Available Values: - `ALL`: All genders - `MALE`: Male - `FEMALE`: Female One of: ALL, MALE, FEMALE. | ALL |
fansAge | chaîne | Facultatif | Target fans age group. Available Values: - `ALL`: All ages - `LT_18`: Under 18 - `AGE_18_24`: 18 to 24 - `AGE_25_34`: 25 to 34 - `AGE_35_44`: 35 to 44 - `GT_44`: Above 44 One of: ALL, LT_18, AGE_18_24, AGE_25_34, AGE_35_44, GT_44. | ALL |
keyword | chaîne | Facultatif | Search keyword. | coffee |
industry | chaîne | Facultatif | Pugongying industry preset for industry assistant style creator recommendations. Available Values: - `BEAUTY_PERSONAL_CARE_BEAUTY`: Beauty and personal care - beauty - `BEAUTY_PERSONAL_CARE_SKINCARE`: Beauty and personal care - skincare - `BEAUTY_PERSONAL_CARE_PERSONAL_CARE`: Beauty and personal car One of: BEAUTY_PERSONAL_CARE_BEAUTY, BEAUTY_PERSONAL_CARE_SKINCARE, BEAUTY_PERSONAL_CARE_PERSONAL_CARE, BEAUTY_PERSONAL_CARE_FRAGRANCE, FOOD_BEVERAGE_SNACKS, FOOD_BEVERAGE_DRINKS, FOOD_BEVERAGE_HEALTH_FOOD, FOOD_BEVERAGE_DAIRY, FOOD_BEVERAGE_ALCOHOL, FOOD_BEVERAGE_GRAINS_OIL, FOOD_BEVERAGE_CROSS_BORDER_FOOD, FOOD_BEVERAGE_FRESH_FOOD. | |
location | chaîne | Facultatif | Creator profile location filter. Pass Pugongying location labels separated by English or Chinese commas. Country, China province or region, city-level paths, and district/county-level paths are supported. China province or region short labels are normalized to the full Pugongying value. Only paths p | 浙江 宁波 慈溪市 |
noteType | chaîne | Facultatif | Note type filter. Values: ALL=all note types, PHOTO_TEXT=mainly photo-text notes, VIDEO=mainly video notes. Available Values: - `ALL`: All note types - `PHOTO_TEXT`: Mainly photo-text notes - `VIDEO`: Mainly video notes One of: ALL, PHOTO_TEXT, VIDEO. | ALL |
fansNumUp | booléen | Facultatif | Whether to exclude bloggers whose fan count is dropping. | |
notePrice | chaîne | Facultatif | Photo-text cooperation quote range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound. | |
tradeType | chaîne | Facultatif | Recent cooperation industry filter from Pugongying. | 3c及电器 食品饮料 服装配饰 餐饮 互联网 |
avgAgmv90d | chaîne | Facultatif | Average live sales amount range. Pass two comma-separated numeric bounds. | |
contentTag | chaîne | Facultatif | Content category filter. Pass first-level or second-level category labels from Pugongying, separated by commas. Available values: - 美妆: 整体妆容, 唇妆, 眼妆, 美甲, 底妆, 美妆合集, 香水, 美妆其他 - 护肤: 面部保养, 面部清洁, 护肤合集, 护肤其他 - 个人护理: 头发产品, 身体护理, 口腔护理, 护理其他 - 母婴: 母婴日常, 早教, 婴童用品, 婴童洗护, 婴童食品, 婴童时尚, 孕期穿搭, 孕产经验, 产后恢复, 育儿经验, 宝宝才 | 美食 |
fansGender | chaîne | Facultatif | Target fans gender. Available Values: - `ALL`: All genders - `MALE_HIGH`: Mainly Male - `FE_MALE_HIGH`: Mainly Female One of: ALL, MALE_HIGH, FE_MALE_HIGH. | ALL |
searchType | chaîne | Facultatif | Search criteria type. Available Values: - `NICKNAME`: Search by nickname - `NOTE`: Search by note content One of: NICKNAME, NOTE. | NICKNAME |
videoPrice | chaîne | Facultatif | Video cooperation quote range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound. | |
featureTags | chaîne | Facultatif | Good-at content tag filter. Pass label values separated by commas. | |
kliveCnt30d | chaîne | Facultatif | Live count in the last 30 days range. Pass two comma-separated numeric bounds. | |
mCpuvNum30d | chaîne | Facultatif | Cooperation note outer-store median range. Pass two comma-separated numeric bounds. | |
similarWord | chaîne | Facultatif | Similar creator keyword shown by Pugongying. `similarUserId` and `similarWord` must be provided together. | |
fansLocation | chaîne | Facultatif | Follower audience location filter. Pass Pugongying follower-region labels separated by English or Chinese commas. Country, China province, and city-level paths are supported; district/county-level paths are not accepted. Only paths present in the Pugongying follower-region tree are accepted. Use cit | |
marketTarget | chaîne | Facultatif | Marketing target filter. Pass one Pugongying marketing target value. Available values: - estimateAllCpm: Exposure - exposure performance - cost - mAccumImpNum: Exposure - exposure performance - scale - readCost: Exposure - read performance - cost - mValidRawReadFeedNum: Exposure - read performance - | |
personalTags | chaîne | Facultatif | Blogger persona tag filter. Pass one or more Pugongying persona labels separated by English or Chinese commas. Available values: - 妈妈 - 萌娃 - 爸爸 - 奶奶 - 情侣 - 夫妻 - 家庭 - 闺蜜 - 兄弟 - 备孕中 - 孕期中 - 12岁以上 - 传统行业 - 互联网 - 教育科研 - 金融法律 - 企业创业 - 时尚美妆 - 食品饮料 - 文化传媒 - 医疗健康 - 艺术设计 - 影视娱乐 - 运动健身 - 专业服务 - 工程师 - 销售 - HR | |
readMidNor30 | chaîne | Facultatif | Daily note read median range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound. | |
audienceGroup | chaîne | Facultatif | Audience target filter. Pass Pugongying audience group IDs (`dmpGroupId`) separated by English or Chinese commas. These IDs are dynamic and account-specific, so there is no fixed global value list. Use the audience group name shown in Pugongying Audience Management to identify what each ID means. | |
interMidNor30 | chaîne | Facultatif | Daily note interaction median range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound. | |
readMidCoop30 | chaîne | Facultatif | Cooperation note read median range. Pass two comma-separated numeric bounds. | |
similarUserId | chaîne | Facultatif | Similar creator user ID. `similarUserId` and `similarWord` must be provided together. | |
interMidCoop30 | chaîne | Facultatif | Cooperation note interaction median range. Pass two comma-separated numeric bounds. | |
estimateCpuv30d | chaîne | Facultatif | Estimated outer-store visit unit price range. Pass two comma-separated numeric bounds. | |
fansNumberLower | entier | Facultatif | Minimum number of fans. | |
fansNumberUpper | entier | Facultatif | Maximum number of fans. | |
avgLiveViewerNum | chaîne | Facultatif | Average live viewer count range. Pass two comma-separated numeric bounds. | |
estimateVideoCpm | chaîne | Facultatif | Estimated video CPM range. Pass two comma-separated numeric bounds. | |
excludeLowActive | booléen | Facultatif | Whether to exclude low-activity bloggers. | |
fansChildAgeInfo | chaîne | Facultatif | Mother-and-baby audience stage filter. Pass Pugongying labels or numeric codes separated by English or Chinese commas. Available values: - 1: 备孕 - 2: 0-6月 - 3: 7-12月 - 4: 1-3岁 - 5: 4-6岁 - 6: 7-12岁 - 7: 孕早期 - 8: 孕晚期 | |
progressOrderCnt | chaîne | Facultatif | Current cooperation order count range. Pass two comma-separated numeric bounds. | |
top20CrowdsLabel | chaîne | Facultatif | Top-20 audience filter. Pass top-level or child audience labels separated by commas; child labels are converted to Pugongying request values. | |
contentSceneLabel | chaîne | Facultatif | Content scene label filter. Pass full Pugongying note category scene label paths separated by English or Chinese commas. Available values: - 汽车 理性决策 选车攻略 政策 - 汽车 理性决策 选车攻略 购车顾虑 - 汽车 理性决策 选车攻略 配置 - 汽车 理性决策 选车攻略 能源类型优势对比 - 汽车 理性决策 选车攻略 攻略 - 汽车 理性决策 新车测评 - 汽车 理性决策 探店试驾 - 汽车 理性决策 车主心得 - 汽车 用车场景 远行近游 近郊探 | |
contentThemeLabel | chaîne | Facultatif | Content theme filter. Pass Pugongying value IDs or label values separated by commas; labels are converted to value IDs. | |
estimatePictureCpm | chaîne | Facultatif | Estimated photo-text CPM range. Pass two comma-separated numeric bounds. | |
tradeReportBrandIds | chaîne | Facultatif | Recent cooperation brand IDs, separated by English or Chinese commas. | |
estimatePicReadPrice | chaîne | Facultatif | Estimated photo-text read unit price range. Pass two comma-separated numeric bounds. | |
thousandLikePercent30 | chaîne | Facultatif | Thousand-like note ratio range. Pass fractional ratios such as 0.4,null or percentage values such as 40,null. | |
estimateVideoReadPrice | chaîne | Facultatif | Estimated video read unit price range. Pass two comma-separated numeric bounds. | |
inviteReply48hNumRatio | chaîne | Facultatif | 48-hour invite reply ratio range. Pass fractional ratios such as 0.9,0.95 or percentage values such as 90,95. | |
accumCoopImpMedinNum30d | chaîne | Facultatif | Cooperation note exposure median range. Pass two comma-separated numeric bounds. | |
estimateVideoEngageCost | chaîne | Facultatif | Estimated video engagement unit price range. Pass two comma-separated numeric bounds. | |
accumCommonImpMedinNum30d | chaîne | Facultatif | Daily note exposure median range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound. | |
estimatePictureEngageCost | chaîne | Facultatif | Estimated photo-text engagement unit price range. Pass two comma-separated numeric bounds. | |
excludeTradeReportBrandIds | booléen | Facultatif | Whether to exclude creators who cooperated with the selected recent cooperation brands. | |
industrySpecificCrowdsMotorDom | chaîne | Facultatif | Industry-specific portrait filter. Pass Pugongying portrait value IDs or label values separated by commas. | |
- Paramètres de requête
pageentierFacultatifPage number.
Exemple :
1sortchaîneFacultatifCreator search sorting. Values: FANS sorts by follower count descending, DEFAULT uses Pugongying intelligent ranking. Available Values: - `DEFAULT`: Platform default intelligent ranking - `FANS`: Sort by follower count descending One of: DEFAULT, FANS.
Exemple :
FANSgenderchaîneFacultatifKOL's gender. Available Values: - `ALL`: All genders - `MALE`: Male - `FEMALE`: Female One of: ALL, MALE, FEMALE.
Exemple :
ALLfansAgechaîneFacultatifTarget fans age group. Available Values: - `ALL`: All ages - `LT_18`: Under 18 - `AGE_18_24`: 18 to 24 - `AGE_25_34`: 25 to 34 - `AGE_35_44`: 35 to 44 - `GT_44`: Above 44 One of: ALL, LT_18, AGE_18_24, AGE_25_34, AGE_35_44, GT_44.
Exemple :
ALLkeywordchaîneFacultatifSearch keyword.
Exemple :
coffeeindustrychaîneFacultatifPugongying industry preset for industry assistant style creator recommendations. Available Values: - `BEAUTY_PERSONAL_CARE_BEAUTY`: Beauty and personal care - beauty - `BEAUTY_PERSONAL_CARE_SKINCARE`: Beauty and personal care - skincare - `BEAUTY_PERSONAL_CARE_PERSONAL_CARE`: Beauty and personal car One of: BEAUTY_PERSONAL_CARE_BEAUTY, BEAUTY_PERSONAL_CARE_SKINCARE, BEAUTY_PERSONAL_CARE_PERSONAL_CARE, BEAUTY_PERSONAL_CARE_FRAGRANCE, FOOD_BEVERAGE_SNACKS, FOOD_BEVERAGE_DRINKS, FOOD_BEVERAGE_HEALTH_FOOD, FOOD_BEVERAGE_DAIRY, FOOD_BEVERAGE_ALCOHOL, FOOD_BEVERAGE_GRAINS_OIL, FOOD_BEVERAGE_CROSS_BORDER_FOOD, FOOD_BEVERAGE_FRESH_FOOD.
locationchaîneFacultatifCreator profile location filter. Pass Pugongying location labels separated by English or Chinese commas. Country, China province or region, city-level paths, and district/county-level paths are supported. China province or region short labels are normalized to the full Pugongying value. Only paths p
Exemple :
浙江 宁波 慈溪市noteTypechaîneFacultatifNote type filter. Values: ALL=all note types, PHOTO_TEXT=mainly photo-text notes, VIDEO=mainly video notes. Available Values: - `ALL`: All note types - `PHOTO_TEXT`: Mainly photo-text notes - `VIDEO`: Mainly video notes One of: ALL, PHOTO_TEXT, VIDEO.
Exemple :
ALLfansNumUpbooléenFacultatifWhether to exclude bloggers whose fan count is dropping.
notePricechaîneFacultatifPhoto-text cooperation quote range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound.
tradeTypechaîneFacultatifRecent cooperation industry filter from Pugongying.
Exemple :
3c及电器 食品饮料 服装配饰 餐饮 互联网avgAgmv90dchaîneFacultatifAverage live sales amount range. Pass two comma-separated numeric bounds.
contentTagchaîneFacultatifContent category filter. Pass first-level or second-level category labels from Pugongying, separated by commas. Available values: - 美妆: 整体妆容, 唇妆, 眼妆, 美甲, 底妆, 美妆合集, 香水, 美妆其他 - 护肤: 面部保养, 面部清洁, 护肤合集, 护肤其他 - 个人护理: 头发产品, 身体护理, 口腔护理, 护理其他 - 母婴: 母婴日常, 早教, 婴童用品, 婴童洗护, 婴童食品, 婴童时尚, 孕期穿搭, 孕产经验, 产后恢复, 育儿经验, 宝宝才
Exemple :
美食fansGenderchaîneFacultatifTarget fans gender. Available Values: - `ALL`: All genders - `MALE_HIGH`: Mainly Male - `FE_MALE_HIGH`: Mainly Female One of: ALL, MALE_HIGH, FE_MALE_HIGH.
Exemple :
ALLsearchTypechaîneFacultatifSearch criteria type. Available Values: - `NICKNAME`: Search by nickname - `NOTE`: Search by note content One of: NICKNAME, NOTE.
Exemple :
NICKNAMEvideoPricechaîneFacultatifVideo cooperation quote range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound.
featureTagschaîneFacultatifGood-at content tag filter. Pass label values separated by commas.
kliveCnt30dchaîneFacultatifLive count in the last 30 days range. Pass two comma-separated numeric bounds.
mCpuvNum30dchaîneFacultatifCooperation note outer-store median range. Pass two comma-separated numeric bounds.
similarWordchaîneFacultatifSimilar creator keyword shown by Pugongying. `similarUserId` and `similarWord` must be provided together.
fansLocationchaîneFacultatifFollower audience location filter. Pass Pugongying follower-region labels separated by English or Chinese commas. Country, China province, and city-level paths are supported; district/county-level paths are not accepted. Only paths present in the Pugongying follower-region tree are accepted. Use cit
marketTargetchaîneFacultatifMarketing target filter. Pass one Pugongying marketing target value. Available values: - estimateAllCpm: Exposure - exposure performance - cost - mAccumImpNum: Exposure - exposure performance - scale - readCost: Exposure - read performance - cost - mValidRawReadFeedNum: Exposure - read performance -
personalTagschaîneFacultatifBlogger persona tag filter. Pass one or more Pugongying persona labels separated by English or Chinese commas. Available values: - 妈妈 - 萌娃 - 爸爸 - 奶奶 - 情侣 - 夫妻 - 家庭 - 闺蜜 - 兄弟 - 备孕中 - 孕期中 - 12岁以上 - 传统行业 - 互联网 - 教育科研 - 金融法律 - 企业创业 - 时尚美妆 - 食品饮料 - 文化传媒 - 医疗健康 - 艺术设计 - 影视娱乐 - 运动健身 - 专业服务 - 工程师 - 销售 - HR
readMidNor30chaîneFacultatifDaily note read median range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound.
audienceGroupchaîneFacultatifAudience target filter. Pass Pugongying audience group IDs (`dmpGroupId`) separated by English or Chinese commas. These IDs are dynamic and account-specific, so there is no fixed global value list. Use the audience group name shown in Pugongying Audience Management to identify what each ID means.
interMidNor30chaîneFacultatifDaily note interaction median range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound.
readMidCoop30chaîneFacultatifCooperation note read median range. Pass two comma-separated numeric bounds.
similarUserIdchaîneFacultatifSimilar creator user ID. `similarUserId` and `similarWord` must be provided together.
interMidCoop30chaîneFacultatifCooperation note interaction median range. Pass two comma-separated numeric bounds.
estimateCpuv30dchaîneFacultatifEstimated outer-store visit unit price range. Pass two comma-separated numeric bounds.
fansNumberLowerentierFacultatifMinimum number of fans.
fansNumberUpperentierFacultatifMaximum number of fans.
avgLiveViewerNumchaîneFacultatifAverage live viewer count range. Pass two comma-separated numeric bounds.
estimateVideoCpmchaîneFacultatifEstimated video CPM range. Pass two comma-separated numeric bounds.
excludeLowActivebooléenFacultatifWhether to exclude low-activity bloggers.
fansChildAgeInfochaîneFacultatifMother-and-baby audience stage filter. Pass Pugongying labels or numeric codes separated by English or Chinese commas. Available values: - 1: 备孕 - 2: 0-6月 - 3: 7-12月 - 4: 1-3岁 - 5: 4-6岁 - 6: 7-12岁 - 7: 孕早期 - 8: 孕晚期
progressOrderCntchaîneFacultatifCurrent cooperation order count range. Pass two comma-separated numeric bounds.
top20CrowdsLabelchaîneFacultatifTop-20 audience filter. Pass top-level or child audience labels separated by commas; child labels are converted to Pugongying request values.
contentSceneLabelchaîneFacultatifContent scene label filter. Pass full Pugongying note category scene label paths separated by English or Chinese commas. Available values: - 汽车 理性决策 选车攻略 政策 - 汽车 理性决策 选车攻略 购车顾虑 - 汽车 理性决策 选车攻略 配置 - 汽车 理性决策 选车攻略 能源类型优势对比 - 汽车 理性决策 选车攻略 攻略 - 汽车 理性决策 新车测评 - 汽车 理性决策 探店试驾 - 汽车 理性决策 车主心得 - 汽车 用车场景 远行近游 近郊探
contentThemeLabelchaîneFacultatifContent theme filter. Pass Pugongying value IDs or label values separated by commas; labels are converted to value IDs.
estimatePictureCpmchaîneFacultatifEstimated photo-text CPM range. Pass two comma-separated numeric bounds.
tradeReportBrandIdschaîneFacultatifRecent cooperation brand IDs, separated by English or Chinese commas.
estimatePicReadPricechaîneFacultatifEstimated photo-text read unit price range. Pass two comma-separated numeric bounds.
thousandLikePercent30chaîneFacultatifThousand-like note ratio range. Pass fractional ratios such as 0.4,null or percentage values such as 40,null.
estimateVideoReadPricechaîneFacultatifEstimated video read unit price range. Pass two comma-separated numeric bounds.
inviteReply48hNumRatiochaîneFacultatif48-hour invite reply ratio range. Pass fractional ratios such as 0.9,0.95 or percentage values such as 90,95.
accumCoopImpMedinNum30dchaîneFacultatifCooperation note exposure median range. Pass two comma-separated numeric bounds.
estimateVideoEngageCostchaîneFacultatifEstimated video engagement unit price range. Pass two comma-separated numeric bounds.
accumCommonImpMedinNum30dchaîneFacultatifDaily note exposure median range. Pass two comma-separated numeric bounds; use -1 or null for an open upper bound.
estimatePictureEngageCostchaîneFacultatifEstimated photo-text engagement unit price range. Pass two comma-separated numeric bounds.
excludeTradeReportBrandIdsbooléenFacultatifWhether to exclude creators who cooperated with the selected recent cooperation brands.
industrySpecificCrowdsMotorDomchaîneFacultatifIndustry-specific portrait filter. Pass Pugongying portrait value IDs or label values separated by commas.
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-pgysolar-cooperator-blogger-v2-v1?page=1&sort=FANS&gender=ALL&fansAge=ALL&keyword=coffee&location=%E6%B5%99%E6%B1%9F+%E5%AE%81%E6%B3%A2+%E6%85%88%E6%BA%AA%E5%B8%82¬eType=ALL&tradeType=3c%E5%8F%8A%E7%94%B5%E5%99%A8+%E9%A3%9F%E5%93%81%E9%A5%AE%E6%96%99+%E6%9C%8D%E8%A3%85%E9%85%8D%E9%A5%B0+%E9%A4%90%E9%A5%AE+%E4%BA%92%E8%81%94%E7%BD%91&contentTag=%E7%BE%8E%E9%A3%9F&fansGender=ALL&searchType=NICKNAME' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-pgysolar-cooperator-blogger-v2-v1?page=1&sort=FANS&gender=ALL&fansAge=ALL&keyword=coffee&location=%E6%B5%99%E6%B1%9F+%E5%AE%81%E6%B3%A2+%E6%85%88%E6%BA%AA%E5%B8%82¬eType=ALL&tradeType=3c%E5%8F%8A%E7%94%B5%E5%99%A8+%E9%A3%9F%E5%93%81%E9%A5%AE%E6%96%99+%E6%9C%8D%E8%A3%85%E9%85%8D%E9%A5%B0+%E9%A4%90%E9%A5%AE+%E4%BA%92%E8%81%94%E7%BD%91&contentTag=%E7%BE%8E%E9%A3%9F&fansGender=ALL&searchType=NICKNAME",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-pgysolar-cooperator-blogger-v2-v1?page=1&sort=FANS&gender=ALL&fansAge=ALL&keyword=coffee&location=%E6%B5%99%E6%B1%9F+%E5%AE%81%E6%B3%A2+%E6%85%88%E6%BA%AA%E5%B8%82¬eType=ALL&tradeType=3c%E5%8F%8A%E7%94%B5%E5%99%A8+%E9%A3%9F%E5%93%81%E9%A5%AE%E6%96%99+%E6%9C%8D%E8%A3%85%E9%85%8D%E9%A5%B0+%E9%A4%90%E9%A5%AE+%E4%BA%92%E8%81%94%E7%BD%91&contentTag=%E7%BE%8E%E9%A3%9F&fansGender=ALL&searchType=NICKNAME", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.0738/success, frais de service inclus.