Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions justoneapi/generated/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Code(Enum):
field_0 = "0"
field_100 = "100"
field_101 = "101"
field_202 = "202"
field_300 = "300"
field_301 = "301"
field_302 = "302"
Expand Down
3 changes: 3 additions & 0 deletions justoneapi/generated/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from justoneapi.generated.resources.bilibili import BilibiliResource
from justoneapi.generated.resources.douban import DoubanResource
from justoneapi.generated.resources.douyin import DouyinResource
from justoneapi.generated.resources.douyin_ec import DouyinEcResource
from justoneapi.generated.resources.douyin_xingtu import DouyinXingtuResource
from justoneapi.generated.resources.facebook import FacebookResource
from justoneapi.generated.resources.imdb import ImdbResource
Expand Down Expand Up @@ -33,6 +34,7 @@
"bilibili": BilibiliResource,
"douban": DoubanResource,
"douyin": DouyinResource,
"douyin_ec": DouyinEcResource,
"douyin_xingtu": DouyinXingtuResource,
"facebook": FacebookResource,
"imdb": ImdbResource,
Expand Down Expand Up @@ -62,6 +64,7 @@
"BilibiliResource",
"DoubanResource",
"DouyinResource",
"DouyinEcResource",
"DouyinXingtuResource",
"FacebookResource",
"ImdbResource",
Expand Down
30 changes: 30 additions & 0 deletions justoneapi/generated/resources/douyin_ec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from __future__ import annotations

from typing import Any

from justoneapi._resource import BaseResource
from justoneapi._response import ApiResponse


class DouyinEcResource(BaseResource):
"""Generated resource for Douyin E-commerce."""

def get_item_detail_v1(
self,
*,
item_id: str,
) -> ApiResponse[Any]:
"""
Item Details

Get Douyin E-commerce item details, including price, title, and stock, for product monitoring and competitive analysis.

Args:
item_id: The unique ID of the item on Douyin E-commerce.
"""
return self._get(
"/api/douyin-ec/get-item-detail/v1",
{
"itemId": item_id,
},
)
2 changes: 1 addition & 1 deletion justoneapi/generated/resources/kuaishou.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_video_comments_v1(
- Gathering engagement data for specific videos

Args:
video_id: The unique ID of the Kuaishou video, e.g. `3xbknvct79h46h9`
video_id: The unique ID of the Kuaishou video, e.g. `3xbknvct79h46h9` or refer_photo_id `177012131237`
pcursor: Pagination cursor for subsequent pages.
"""
return self._get(
Expand Down
23 changes: 23 additions & 0 deletions justoneapi/generated/resources/weibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,29 @@ def get_user_published_posts_v1(
},
)

def get_user_video_list_v1(
self,
*,
uid: str,
cursor: str | None = None,
) -> ApiResponse[Any]:
"""
User Video List

Get Weibo user Video list data (waterfall), including pagination cursor for next page.

Args:
uid: Weibo User ID (UID).
cursor: Pagination cursor returned by the previous response.
"""
return self._get(
"/api/weibo/get-user-video-list/v1",
{
"uid": uid,
"cursor": cursor,
},
)

def tv_component_v1(
self,
*,
Expand Down
98 changes: 90 additions & 8 deletions openapi/public-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"0",
"100",
"101",
"202",
"300",
"301",
"302",
Expand Down Expand Up @@ -8905,6 +8906,45 @@
"x-order": "21001200"
}
},
"/api/douyin-ec/get-item-detail/v1": {
"get": {
"description": "Get Douyin E-commerce item details, including price, title, and stock, for product monitoring and competitive analysis.",
"operationId": "getItemDetailV1",
"parameters": [
{
"description": "Access token for this API service.",
"in": "query",
"name": "token",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "The unique ID of the item on Douyin E-commerce.",
"in": "query",
"name": "itemId",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"default": {
"content": {
"application/json": {}
},
"description": "default response"
}
},
"summary": "Item Details",
"tags": [
"Douyin E-commerce"
],
"x-order": "14502000"
}
},
"/api/douyin-xingtu/get-author-commerce-seed-base-info/v1": {
"get": {
"description": "Get Douyin Creator Marketplace (Xingtu) author Commerce Seeding Base Info data, including baseline metrics, commercial signals, and seeding indicators, for product seeding analysis, creator vetting, and campaign planning.",
Expand Down Expand Up @@ -37293,7 +37333,7 @@
}
},
{
"description": "The unique ID of the Kuaishou video, e.g. `3xbknvct79h46h9`",
"description": "The unique ID of the Kuaishou video, e.g. `3xbknvct79h46h9` or refer_photo_id `177012131237`",
"in": "query",
"name": "videoId",
"required": true,
Expand Down Expand Up @@ -57944,6 +57984,54 @@
"x-order": "17001500"
}
},
"/api/weibo/get-user-video-list/v1": {
"get": {
"description": "Get Weibo user Video list data (waterfall), including pagination cursor for next page.",
"operationId": "getUserVideoListV1",
"parameters": [
{
"description": "API access token.",
"in": "query",
"name": "token",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Weibo User ID (UID).",
"in": "query",
"name": "uid",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Pagination cursor returned by the previous response.",
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"default": {
"content": {
"application/json": {}
},
"description": "default response"
}
},
"summary": "User Video List",
"tags": [
"Weibo"
],
"x-order": "17001510"
}
},
"/api/weibo/get-weibo-detail/v1": {
"get": {
"description": "Get Weibo post Details data, including media, author metadata, and engagement counts, for post analysis, archiving, and campaign monitoring.",
Expand Down Expand Up @@ -68054,7 +68142,6 @@
},
"/api/xiaohongshu/search-note/v3": {
"get": {
"deprecated": true,
"description": "Get Xiaohongshu (RedNote) note Search data, including snippets, authors, and media, for topic discovery.",
"operationId": "getSearchNoteV3",
"parameters": [
Expand Down Expand Up @@ -68123,12 +68210,7 @@
"responses": {
"default": {
"content": {
"application/json": {
"example": {
"code": 0,
"data": {}
}
}
"application/json": {}
},
"description": "default response"
}
Expand Down
99 changes: 91 additions & 8 deletions openapi/public-api.normalized.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"0",
"100",
"101",
"202",
"300",
"301",
"302",
Expand Down Expand Up @@ -8936,6 +8937,45 @@
"x-sdk-resource": "douban"
}
},
"/api/douyin-ec/get-item-detail/v1": {
"get": {
"description": "Get Douyin E-commerce item details, including price, title, and stock, for product monitoring and competitive analysis.",
"operationId": "getItemDetailV1",
"parameters": [
{
"description": "The unique ID of the item on Douyin E-commerce.",
"in": "query",
"name": "itemId",
"required": true,
"schema": {
"type": "string"
},
"x-sdk-python-name": "item_id"
}
],
"responses": {
"default": {
"content": {
"application/json": {}
},
"description": "default response"
}
},
"security": [
{
"tokenAuth": []
}
],
"summary": "Item Details",
"tags": [
"Douyin E-commerce"
],
"x-order": "14502000",
"x-sdk-class-name": "DouyinEcResource",
"x-sdk-method-name": "get_item_detail_v1",
"x-sdk-resource": "douyin_ec"
}
},
"/api/douyin-xingtu/get-author-commerce-seed-base-info/v1": {
"get": {
"description": "Get Douyin Creator Marketplace (Xingtu) author Commerce Seeding Base Info data, including baseline metrics, commercial signals, and seeding indicators, for product seeding analysis, creator vetting, and campaign planning.",
Expand Down Expand Up @@ -37434,7 +37474,7 @@
"operationId": "getVideoCommentsV1",
"parameters": [
{
"description": "The unique ID of the Kuaishou video, e.g. `3xbknvct79h46h9`",
"description": "The unique ID of the Kuaishou video, e.g. `3xbknvct79h46h9` or refer_photo_id `177012131237`",
"in": "query",
"name": "videoId",
"required": true,
Expand Down Expand Up @@ -58143,6 +58183,55 @@
"x-sdk-resource": "weibo"
}
},
"/api/weibo/get-user-video-list/v1": {
"get": {
"description": "Get Weibo user Video list data (waterfall), including pagination cursor for next page.",
"operationId": "getUserVideoListV1",
"parameters": [
{
"description": "Weibo User ID (UID).",
"in": "query",
"name": "uid",
"required": true,
"schema": {
"type": "string"
},
"x-sdk-python-name": "uid"
},
{
"description": "Pagination cursor returned by the previous response.",
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"type": "string"
},
"x-sdk-python-name": "cursor"
}
],
"responses": {
"default": {
"content": {
"application/json": {}
},
"description": "default response"
}
},
"security": [
{
"tokenAuth": []
}
],
"summary": "User Video List",
"tags": [
"Weibo"
],
"x-order": "17001510",
"x-sdk-class-name": "WeiboResource",
"x-sdk-method-name": "get_user_video_list_v1",
"x-sdk-resource": "weibo"
}
},
"/api/weibo/get-weibo-detail/v1": {
"get": {
"description": "Get Weibo post Details data, including media, author metadata, and engagement counts, for post analysis, archiving, and campaign monitoring.",
Expand Down Expand Up @@ -68326,7 +68415,6 @@
},
"/api/xiaohongshu/search-note/v3": {
"get": {
"deprecated": true,
"description": "Get Xiaohongshu (RedNote) note Search data, including snippets, authors, and media, for topic discovery.",
"operationId": "getSearchNoteV3",
"parameters": [
Expand Down Expand Up @@ -68390,12 +68478,7 @@
"responses": {
"default": {
"content": {
"application/json": {
"example": {
"code": 0,
"data": {}
}
}
"application/json": {}
},
"description": "default response"
}
Expand Down