Skip to main content

Just One API Logo

PyPI version License

简体中文 | English

Just One API - Python SDK

官方 Python SDK,用于访问 Just One API

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

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

系统概览

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

Just One API 文档中心界面

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

Just One API 控制台概览

安装

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)     # 实际业务数据

返回结构

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

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

错误处理

默认情况下,业务失败不会抛异常,你可以通过 response.successresponse.coderesponse.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

Temu

Shopee

豆瓣电影

TikTok

TikTok Shop

优酷

Instagram

YouTube

Reddit

今日头条

知乎

亚马逊

Facebook

Twitter

领英

贝壳

IMDb

LLM

许可证

本项目基于 MIT License 发布。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

justoneapi-3.0.65.tar.gz (94.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

justoneapi-3.0.65-py3-none-any.whl (97.4 kB view details)

Uploaded Python 3

File details

Details for the file justoneapi-3.0.65.tar.gz.

File metadata

  • Download URL: justoneapi-3.0.65.tar.gz
  • Upload date:
  • Size: 94.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for justoneapi-3.0.65.tar.gz
Algorithm Hash digest
SHA256 4ca15520fb5dd6cfb30a02d1184c371d489882d5c67510baa85dd21da3b25abf
MD5 f976cbe1d9cd857145365fac1c0b999c
BLAKE2b-256 e2f82d7c9e90b551e56e8d2f6292c1873f27b425c067948778493453118a88ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for justoneapi-3.0.65.tar.gz:

Publisher: release.yml on justoneapi/justoneapi-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file justoneapi-3.0.65-py3-none-any.whl.

File metadata

  • Download URL: justoneapi-3.0.65-py3-none-any.whl
  • Upload date:
  • Size: 97.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for justoneapi-3.0.65-py3-none-any.whl
Algorithm Hash digest
SHA256 d0f00ef7088bcd8eeea59617b2e8f34304c918a9efdc999929e9b8134903c7e6
MD5 d28667f3a8af91ff8aa3ad5b41c5aef8
BLAKE2b-256 148b956a72a977427c141635863d5e774760990234fc9f83111736b5a46943fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for justoneapi-3.0.65-py3-none-any.whl:

Publisher: release.yml on justoneapi/justoneapi-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

3.0.73

2 files

3.0.72

2 files

3.0.71

2 files

3.0.70

2 files

3.0.69

2 files

3.0.68

2 files

3.0.67

2 files

3.0.66

2 files

This release

3.0.65 This release

2 files

3.0.64

2 files

3.0.63

2 files

3.0.62

2 files

3.0.61

2 files

3.0.60

2 files

3.0.59

2 files

3.0.58

2 files

3.0.57

2 files

3.0.56

2 files

3.0.55

2 files

3.0.54

2 files

3.0.53

2 files

3.0.52

2 files

3.0.51

2 files

3.0.50

2 files

3.0.49

2 files

3.0.48

2 files

3.0.47

2 files

3.0.46

2 files

3.0.45

2 files

3.0.44

2 files

3.0.43

2 files

3.0.42

2 files

3.0.41

2 files

3.0.40

2 files

3.0.39

2 files

3.0.38

2 files

3.0.37

2 files

3.0.36

2 files

3.0.35

2 files

3.0.34

2 files

3.0.33

2 files

3.0.32

2 files

3.0.31

2 files

3.0.30

2 files

3.0.29

2 files

3.0.28

2 files

3.0.27

2 files

3.0.26

2 files

3.0.25

2 files

3.0.24

2 files

3.0.23

2 files

3.0.22

2 files

3.0.21

2 files

3.0.20

2 files

3.0.19

2 files

3.0.18

2 files

3.0.17

2 files

3.0.16

2 files

3.0.15

2 files

3.0.14

2 files

3.0.13

2 files

3.0.12

2 files

3.0.11

2 files

3.0.10

2 files

3.0.9

2 files

3.0.8

2 files

3.0.7

2 files

3.0.6

2 files

3.0.5

2 files

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.16.1

2 files

1.16.0

2 files

1.15.2

2 files

1.15.1

2 files

1.15.0

2 files

1.14.0

2 files

1.13.0

2 files

1.12.0

2 files

1.11.0

2 files

1.10.0

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

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