OpenAPI-driven Python SDK for Just One API
Project description
Just One API - Python SDK
Official Python SDK for accessing Just One API - a unified data service platform that provides structured data from social media, e-commerce, and content platforms.
Supported platforms include Taobao & Tmall, Xiaohongshu, Xiaohongshu Pugongying, Douyin, Douyin Xingtu, Kuaishou, Weibo, Bilibili, JD, WeChat, Douban, TikTok, TikTok Shop, Youku, Instagram, YouTube, Reddit, Toutiao, Zhihu, Amazon, Facebook, X (Twitter), Beike, IMDb, and more. To explore the full API catalog, visit the official website.
Installation
pip install justoneapi
Quick Start
from justoneapi import JustOneAPIClient
client = JustOneAPIClient(token="your_token")
# Example: Douyin video search
response = client.douyin.search_video_v4(keyword="deepseek")
print(response.success) # True only when code == 0
print(response.code) # Business code returned by the API
print(response.message) # Server message
print(response.data) # Actual payload
Response Shape
Every API method returns an ApiResponse instance with these fields:
| Field | Type | Description |
|---|---|---|
success |
bool |
True only when code == 0. |
code |
Any |
Raw business code returned by the API. |
message |
str |
Server message. |
data |
Any |
Response payload from the API. |
raw_json |
dict |
Full response payload before SDK normalization. |
Error Handling
By default, business failures do not raise exceptions. You can check response.success, response.code, and response.message.
If you prefer exceptions for non-zero business codes:
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)
Authentication
All API requests require a valid API token.
Register here:
Documentation
Full API documentation:
The documentation includes:
- Request parameters
- Response fields
- Error codes
- Platform-specific examples
Official Website
Contact
If you have questions, feedback, or partnership inquiries:
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file justoneapi-2.0.2.tar.gz.
File metadata
- Download URL: justoneapi-2.0.2.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdfe38ed8d9e04670fd79dfbbab4b146b2fa756784f811c986473b1efba13266
|
|
| MD5 |
833d4a8931be2064ef2d6a98e2338d15
|
|
| BLAKE2b-256 |
ab2a0fafebfa787c81eff94c30e5a96af3c308724a04c4bd9fc221a68852ed66
|
Provenance
The following attestation bundles were made for justoneapi-2.0.2.tar.gz:
Publisher:
release.yml on justoneapi/justoneapi-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
justoneapi-2.0.2.tar.gz -
Subject digest:
fdfe38ed8d9e04670fd79dfbbab4b146b2fa756784f811c986473b1efba13266 - Sigstore transparency entry: 1242935187
- Sigstore integration time:
-
Permalink:
justoneapi/justoneapi-python@a1611c4a5d0647d4a406c9e33f1c4b2b4b2b9bc1 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/justoneapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1611c4a5d0647d4a406c9e33f1c4b2b4b2b9bc1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file justoneapi-2.0.2-py3-none-any.whl.
File metadata
- Download URL: justoneapi-2.0.2-py3-none-any.whl
- Upload date:
- Size: 54.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b225dcdc531fb1cc8788bff5fa35eeca0ce72209afeaa2f7ad23dbe89bb3fc5
|
|
| MD5 |
bafc9191f3a6b3cc8b2f0e9d709bcdb0
|
|
| BLAKE2b-256 |
416434a8702135399b50e57f7e2bcc14efc83b6fd0d034085542093b1bdc811c
|
Provenance
The following attestation bundles were made for justoneapi-2.0.2-py3-none-any.whl:
Publisher:
release.yml on justoneapi/justoneapi-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
justoneapi-2.0.2-py3-none-any.whl -
Subject digest:
2b225dcdc531fb1cc8788bff5fa35eeca0ce72209afeaa2f7ad23dbe89bb3fc5 - Sigstore transparency entry: 1242935194
- Sigstore integration time:
-
Permalink:
justoneapi/justoneapi-python@a1611c4a5d0647d4a406c9e33f1c4b2b4b2b9bc1 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/justoneapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1611c4a5d0647d4a406c9e33f1c4b2b4b2b9bc1 -
Trigger Event:
push
-
Statement type: