Skip to main content

JustOneAPI Logo

PyPI version License

简体中文 | English

JustOneAPI - Python SDK

官方 Python SDK,用于访问 JustOneAPI。

JustOneAPI 是一个统一的数据服务平台,提供来自社交媒体、电商和内容平台的结构化数据。

支持的平台包括淘宝、天猫、小红书、小红书蒲公英、抖音、抖音星图、快手、微博、哔哩哔哩、京东、微信、豆瓣、TikTok、TikTok Shop、优酷、Instagram、YouTube、Reddit、头条、知乎、亚马逊、Facebook、X(Twitter)、贝壳、IMDb 等接口。想了解更多,可以访问官网。

系统概览

文档中心支持查看接口健康状态、版本化 API 路径、请求参数以及各平台的使用提示。

JustOneAPI 文档中心界面

控制台提供 API 令牌管理、余额展示、接口调用记录、调用量趋势和消费金额分析。

JustOneAPI 控制台定价概览

安装

pip install justoneapi

快速开始

from justoneapi import JustOneAPIClient

client = JustOneAPIClient(token="your_token")

# 示例:搜索抖音视频
response = client.douyin.search_video_v4(keyword="deepseek")

print(response.success)  # 仅当 code == 0 时为 True
print(response.code)     # 服务端返回的业务码
print(response.message)  # 服务端消息
print(response.data)     # 实际业务数据

微信公众号文章搜索示例:

response = client.weixin.search_article_v1(
    keyword="人工智能",
    publish_time_type="SEVEN_DAYS",
    sort_type="LATEST",
    current_page=1,
)

# V2 可按文章类别筛选
response = client.weixin.search_article_v2(keyword="人工智能", sub_search_type="HOT")

keyword 必填。SDK 会自动提交 POST 表单和 Token。连续分页时,按接口文档传回上一页响应中的 offset 和 cookies_buffer,并设置 current_page。

返回结构

每个 API 方法都会返回一个 ApiResponse 对象,包含以下字段:

字段 类型 说明
success bool 仅当 code == 0 时为 True。
code Any 服务端返回的业务码。
message str 服务端消息。
data Any API 返回的业务数据。
raw_json dict SDK 处理前的完整 JSON 响应。

错误处理

默认情况下,业务失败不会抛异常,你可以通过 response.success、response.code 和 response.message 自行判断。

如果你希望业务失败时直接抛异常:

from justoneapi import JustOneAPIClient, BusinessError

client = JustOneAPIClient(
    token="your_token",
    raise_on_business_error=True,
)

try:
    response = client.douyin.search_video_v4(keyword="deepseek")
except BusinessError as exc:
    print(exc.response.code)
    print(exc.response.message)

身份认证

所有 API 请求都需要有效的 API Token。

注册链接:

文档中心

完整接口文档:

文档中包含:

  • 请求参数说明
  • 返回字段说明
  • 错误码说明
  • 各平台调用示例

官方网站

联系我们

如果你有任何问题、反馈或合作需求:

服务概览

完整请求参数和响应说明请以在线接口文档为准。

社交媒体

淘宝和天猫

小红书

小红书电商 (RedNote)

小红书蒲公英

抖音

抖音电商

抖音指数

抖音巨量星图

快手

微信公众号

微信视频号

QQ互选创作者市场

微博

哔哩哔哩

得物(毒)

京东

闲鱼

1688

AliExpress

Temu

Shopee

豆瓣电影

TikTok

TikTok Shop

优酷

Instagram

YouTube

Reddit

今日头条

知乎

亚马逊

Facebook

Twitter

领英

贝壳

IMDb

LLM

ZCOOL

唯品会

许可证

本项目基于 MIT License 发布。

Metadata

Release files for justoneapi 3.0.124

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for justoneapi 3.0.124
File Size Uploaded Provenance Actions
justoneapi-3.0.124.tar.gz 132.5 kB With provenance Details for justoneapi-3.0.124.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for justoneapi 3.0.124
File Interpreter ABI Platform Actions
justoneapi-3.0.124-py3-none-any.whl Python 3 none any Details for justoneapi-3.0.124-py3-none-any.whl

Total release size: 253.6 kB

Release files / justoneapi-3.0.124.tar.gz

Download URL justoneapi-3.0.124.tar.gz
Size 132.5 kB
Tags Source
SHA-256 checksum
How to use checksums
49cf4ebca567b8f4d65dcd2ff258aa98e71cb3aa1e59e781b8430e912f89ad28
BLAKE2b-256 checksum
How to use checksums
35ec17eb4da1a0bec8c939a16724d1a642b614b23cf69e3d0a5512e5959bf343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / justoneapi-3.0.124-py3-none-any.whl

Download URL justoneapi-3.0.124-py3-none-any.whl
Size 121.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e935c47658b0b02d7b9e95864a7656b6adfda701b0d149b8b2b30ac6ba549666
BLAKE2b-256 checksum
How to use checksums
fe7fa9c4c4784d4bd50aa7c1d63678a19260bbe360a5b77325260335340a9562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for justoneapi 3.0.124

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for justoneapi-3.0.124.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.124 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page