Skip to content

Latest commit

 

History

History
697 lines (565 loc) · 167 KB

README.en.md

File metadata and controls

697 lines (565 loc) · 167 KB

JustOneAPI Logo

PyPI version License

English | 简体中文

JustOneAPI - Python SDK

Official Python SDK for accessing JustOneAPI - 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.

Platform Overview

The documentation center helps you browse endpoint health, versioned API paths, request parameters, and platform-specific usage notes.

JustOneAPI documentation overview

The console provides API token management, balance visibility, request logs, usage trends, and spending analytics.

JustOneAPI console pricing overview

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

WeChat Official Account article search:

response = client.weixin.search_article_v1(
    keyword="artificial intelligence",
    publish_time_type="SEVEN_DAYS",
    sort_type="LATEST",
    current_page=1,
)

# V2 supports article category filters
response = client.weixin.search_article_v2(
    keyword="artificial intelligence", sub_search_type="HOT"
)

keyword is required. The SDK sends the POST form and Token automatically. For continuation pagination, pass back the previous response's offset and cookies_buffer as described in the endpoint documentation, and set current_page.

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:

Service Overview

The API list below is generated from OpenAPI and shows the current public API categories, endpoint names, and versions. See the online API documentation for full request and response details.

Social Media

Taobao and Tmall

Xiaohongshu (RedNote)

Xiaohongshu E-commerce (RedNote)

Xiaohongshu Creator Marketplace (Pugongying)

Douyin (TikTok China)

Douyin E-commerce

Douyin Live

Douyin Index

Douyin Creator Marketplace (Xingtu)

Kuaishou

WeChat Official Accounts

WeChat Channels

QQ Huxuan Creator Marketplace

Weibo

Bilibili

Dewu (Poizon)

JD.com

Xianyu (GooFish)

1688

AliExpress

Temu

Shopee

Douban Movie

TikTok

TikTok Shop

YOUKU

Instagram

YouTube

Reddit

Toutiao

Zhihu

Amazon

Facebook

Twitter

LinkedIn

Beike

IMDb

LLM

ZCOOL

Vipshop

License

This project is licensed under the MIT License.