Hongguo Short Drama検索API
APIの稼働状況
- 24時間の稼働状況
- 正常
- 良好/正常
- 利用可能
過去24時間
過去30日間
Search Hongguo short dramas by keyword, 10 per page, one row per series with id, title, description, cover_url, episode_count, tags, hot_score, rating, bookmark_count, like_count, is_finished and search_total_count, the number of series the keyword matched. Set exact to true to add review_count and exact like, bookmark and rating counts at the same price. Pass next_page_token back as page_token for the next page; each page counts as one call.
POST https://api.everyinfra.com/api/v1/socialを送信し、platformにhongguo、actionにsearchを指定します。 料金は1,000リクエストあたり$16(1回あたり$0.016)です。失敗した呼び出しと空の結果には課金されません。 同期処理です。時間のかかるジョブでは、ボディに"mode": "async"を追加し、job_idを取得してポーリングしてください。
AIプロンプト
#EveryInfraのHongguo Short Drama 検索エンドポイント(hongguo/search)を使ったデータ収集スクリプトの作成を手伝ってください。
エンドポイントの仕組み:
- リクエスト:ヘッダーにAuthorization: Bearer <API key>を指定して、https://api.everyinfra.com/api/v1/socialにPOSTします。APIキーは環境変数EVERYINFRA_API_KEYから読み込み、ハードコードしないでください。
- リクエストボディでplatformにhongguo、actionにsearchを指定し、パラメータはparamsの中に入れます。
- 必須パラメータ:
- keyword: Search words: a series title, a theme or any keyword, up to 50 characters. On search_suggest it can be just the first characters someone has typed into the search box.
- 任意パラメータ:
- exact: Pass true for exact counts at the same price; false by default. On search it adds review_count and makes like, bookmark and rating counts exact, taking about 5 to 15 seconds longer.
- page_token: Page token for search and toplist. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged.
- レコードのリストを返します。各レコードの主なフィールド: id(Series ID, a digit string, on search, t…)、url(Link to the series page on the Hongguo…)、title、cover_url(Link to the cover image)、description、episode_count(Total number of episodes)、updated_episode_count(Number of episodes released so far (ser…)、accessible_episode_count(Number of episodes anyone can watch on…)、tags、status_tags(Status badges the platform puts on the…)、hot_score(Heat value, which the platform shows in…)、hot_score_label(The heat value as written on the page,…)。フィールドは全部で49個です。一覧はhttps://api.everyinfra.com/api/v1/social/catalog?platform=hongguoを参照してください。.
- リクエストボディの例:
{
"platform": "hongguo",
"action": "search",
"params": {
"keyword": "重生"
}
}
- 料金:1,000リクエストあたり$16。失敗時および結果が空の場合は課金されません。
- 対象が数十〜数百件ある場合は、ボディに"mode": "async"を追加します。すぐにjob_idが返されるので、GET https://api.everyinfra.com/api/v1/jobs/{job_id}をポーリングして結果を取得します。
- 422の場合は、エラーに含まれる推奨パラメータ名と指定可能な値を使ってリクエストを修正します。429または503の場合は、Retry-Afterの指定に従って待ってから再試行します。
コードを書く前に、必要な対象とその件数、必要なフィールド、希望する出力形式を私に質問してください。そのうえで、計画と概算費用を私に確認してください。リクエストパラメータ
#| 名前 | 場所 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|---|
Authorization | header | string | はい | - | Bearerの後にAPIキーを続けます。APIキーはコンソールで作成してください。URLやコードリポジトリには絶対に含めないでください。 |
platform | body | string | はい | hongguo | プラットフォームの識別子です。値は固定です。 |
action | body | string | はい | search | 機能の識別子です。値は固定です。 |
keyword | body.params | string | はい | - | Search words: a series title, a theme or any keyword, up to 50 characters. On search_suggest it can be just the first characters someone has typed into the search box. |
exact | body.params | boolean | いいえ | - | Pass true for exact counts at the same price; false by default. On search it adds review_count and makes like, bookmark and rating counts exact, taking about 5 to 15 seconds longer. On toplist it makes heat, bookmark, like, share and rating counts exact and adds is_finished, about 3 seconds longer. Without it those counts are the platform's rounded figures, marked with *_estimated. |
page_token | body.params | string | いいえ | - | Page token for search and toplist. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Search pages hold 10 series and chart pages 20, up to 5 pages per chart; each page is one call and the last page has no next_page_token. |
コードサンプル
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "hongguo",
"action": "search",
"params": {
"keyword": "重生"
}
}'OpenAPI定義(JSON)サンプルは環境変数EVERYINFRA_API_KEYからAPIキーを読み込みます。コピーしたコードにAPIキーが含まれることはありません。
レスポンス例
#{ "id": "req_…", "platform": "hongguo", "action": "search", "results": [ { "id": …, "url": …, "title": …, "cover_url": …, "description": …, "episode_count": …, "updated_episode_count": …, "accessible_episode_count": …, "tags": …, "status_tags": …, "hot_score": …, "hot_score_label": …, "hot_score_estimated": …, "rating": …, "rating_scale": …, "rating_count": …, "rating_count_label": …, "rating_count_estimated": …, "bookmark_count": …, "bookmark_count_label": …, "bookmark_count_estimated": …, "like_count": …, "like_count_label": …, "like_count_estimated": …, "share_count": …, "share_count_label": …, "share_count_estimated": …, "review_count": …, "is_finished": …, "status_label": …, "is_paid": …, "metric_label": …, "subscribe_count": …, "subscribe_count_label": …, "subscribe_count_estimated": …, "expected_release_label": …, "expected_release_at": …, "reservation_only": …, "cast": …, "license_no": …, "rank_labels": …, "season_id": …, "season_number": …, "created_at": …, "released_at": …, "search_total_count": …, "rank": …, "collected_at": …, "platform": … } ], "next_page_token": …, "pagination": { … }, "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
レスポンスフィールド
#業務データはresultsに含まれます。この表はレコードに含まれうるフィールドの一覧です。プラットフォームに表示されない値を作り出すことはありません。
| フィールド | 意味 |
|---|---|
id | Series ID, a digit string, on search, toplist and series_detail; it can be passed as url to series_detail. |
url | Link to the series page on the Hongguo website. |
title | タイトルです。プラットフォームにタイトルがない場合(テキストのみの投稿など)はnullになります。 |
cover_url | Link to the cover image. |
description | 概要または説明文で、通常はtextより短くなります。 |
episode_count | Total number of episodes; absent for series not yet released. |
updated_episode_count | Number of episodes released so far (series_detail). |
accessible_episode_count | Number of episodes anyone can watch on the Hongguo website (series_detail), usually the first 5. |
tags | タグの配列です。タグがない場合はnullではなく空の配列になります。 |
status_tags | Status badges the platform puts on the card, such as new or exclusive; present only when the series has them. |
hot_score | Heat value, which the platform shows in place of a play count; Hongguo does not publish play counts. |
hot_score_label | The heat value as written on the page, in Chinese number units. |
hot_score_estimated | True when the heat value was converted from the rounded figure the platform shows (19.9 wan becomes 199000); absent when exact returned the exact figure. |
rating | 評価です。スケールはプラットフォームによって異なります。最大値は同じ行のrating_scaleで示されます(通常は5。Booking、Douban、iQIYI、NAVERは10)。プラットフォーム間で比較する前にrating_scaleで換算してください。換算しないと比較結果が逆転することがあります。 |
rating_scale | 同じ行のratingの最大値です。5段階評価では5、10点満点では10になります。行にratingがある場合のみ含まれます。 |
rating_count | Number of people who rated the series. |
rating_count_label | The rating count as written on the page. |
rating_count_estimated | True when the rating count was converted from the rounded figure the platform shows (19.9 wan becomes 199000); absent when exact returned the exact figure. |
bookmark_count | Number of bookmarks. |
bookmark_count_label | The bookmark count as written on the page, in Chinese number units. |
bookmark_count_estimated | True when the bookmark count was converted from the rounded figure the platform shows (19.9 wan becomes 199000); absent when exact returned the exact figure. |
like_count | いいね数です。nullはプラットフォームまたはこの機能が公開していないことを示し、0ではありません。 |
like_count_label | The like count as written on the page, in Chinese number units. |
like_count_estimated | True when the like count was converted from the rounded figure the platform shows (19.9 wan becomes 199000); absent when exact returned the exact figure. |
share_count | シェア数です。nullは非公開を示し、0ではありません。 |
share_count_label | The share count as written on the page. |
share_count_estimated | True when the share count was converted from the rounded figure the platform shows (19.9 wan becomes 199000); absent when exact returned the exact figure. |
review_count | Number of reviews on the whole series, not per-episode comments (series_detail, and search with exact). |
is_finished | Whether the series has finished releasing; absent on toplist without exact. |
status_label | Release status as written on the page, such as all 119 episodes or updated to episode 30. |
is_paid | Whether the series is paid (toplist). |
metric_label | The figure the chart sorts by, as written on the page (toplist), such as the heat or the number of people waiting for the series. |
subscribe_count | Number of reservations (toplist, subscribe chart). |
subscribe_count_label | The reservation count as written on the page. |
subscribe_count_estimated | True when the reservation count was converted from the rounded figure the platform shows (19.9 wan becomes 199000); absent when exact returned the exact figure. |
expected_release_label | Expected release date as written on the page (subscribe chart). |
expected_release_at | Expected release time (ISO 8601, UTC); present only when the platform gives an exact time. |
reservation_only | True when the series is still taking reservations and not yet released (subscribe chart); series_detail returns an empty result for such a series. |
cast | Cast (series_detail): each entry has name (the performer), role (the character played), id (performer ID) and avatar_url; animated and AI dramas usually have an empty list. |
license_no | Registration number of the series, with the platform's bracketed prefix kept as written. |
rank_labels | The chart positions the series holds now (series_detail), such as first on the Hongguo hot chart; an empty list when it is on no chart. |
season_id | ID of the series group the seasons belong to; present only for series split into seasons. |
season_number | Season number; present only for series split into seasons. |
created_at | When the series was created on the platform (ISO 8601, UTC). |
released_at | When the series was released (ISO 8601, UTC). |
search_total_count | How many series the keyword matched (search), the same on every row. |
rank | Position: the place on the chart on toplist, the position in the results on search and search_suggest; from 1. |
collected_at | When this data was collected (ISO 8601, UTC). |
platform | 取得元プラットフォームの識別子で、リクエストのplatformと同じです(例:xiaohongshu、tiktok)。 |
エラーと課金
#- 401
- キーが未指定か無効です。
- 402
- 残高が不足しています。先にチャージしてください。
- 422
- パラメータ名または値が無効です。エラーに含まれる候補を参考に修正してください。課金はされません。
- 429
- 1分あたりのリクエスト上限に達しました。Retry-Afterの指定に従って待ってから再試行してください。
- 503
- 処理を完了できませんでした。保留中の請求額は残高に戻されます。結果が不明な場合は、再試行する前に確認してください。
- 200(空)
- データがありません。課金はされません。