Skip to main content

OpenAPI-driven Python SDK for Just One API

Project description

PyPI version License

English | 简体中文

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


Download files

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

Source Distribution

justoneapi-2.0.0.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

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

justoneapi-2.0.0-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: justoneapi-2.0.0.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for justoneapi-2.0.0.tar.gz
Algorithm Hash digest
SHA256 4b620f9c2f6d800bc66351c16ef25ac63d5be63b9a6612a81c7325cbd0ef5c0e
MD5 56b17a4e46fce7ff05ac562556dbe3c5
BLAKE2b-256 7ea3e4edf7492ea4d26187f64d2499b0bd1ce2ee7acc1b16891aa277376311d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for justoneapi-2.0.0.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-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: justoneapi-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for justoneapi-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39ea7f54281cc2b999b1e5bbe56050f5638dbd29d3b8c4fa17009f06267b033a
MD5 019674a6e0b45a2c823593f5a53fedfb
BLAKE2b-256 46ee810c5e77b7d2e5946bd554ece3df96674b4a1bfcce22aa64f68ab25d43ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for justoneapi-2.0.0-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page