Finady Inc. Channels API
The channels API from Finady Inc., for channels.
The channels API from Finady Inc., for channels.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/yukkurigen-com:yukkurigen-com-channels-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: YukkuriGen AI-operated Channels API
version: 1.1.0
description: AI(Claude / Cursor / スクリプト)から YukkuriGen を操作し、台本から MP4 を生成する REST API。音声の合成からレンダーまでサーバ側で行います。MCP でも同じ機能を提供します(POST /api/mcp)。
servers:
- url: https://app.yukkurigen.com
security:
- bearerAuth: []
tags:
- name: Channels
paths:
/api/v1/channels:
get:
summary: 使えるチャンネルの一覧
operationId: get_api_v1_channels
tags:
- Channels
security:
- apiKey: []
- bearerAuth: []
responses:
'200':
description: 一覧
content:
application/json:
schema:
type: object
properties:
channels:
type: array
items:
type: object
properties:
id:
type: string
description: channelId にそのまま渡せる
name:
type: string
theme:
type: string
targetAudience:
type: string
templateId:
type:
- string
- 'null'
required:
- id
- name
note:
type: string
required:
- channels
'401':
description: 未認証
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: '権限不足(projects:read / code: insufficient_scope)'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: 取得失敗
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/channels/{channelId}/analytics/videos:
get:
summary: YouTube に上げた動画の実績を動画ごとに取得する(再生回数の多い順。消費なし)
operationId: get_api_v1_channels_channelId_analytics_videos
tags:
- Channels
security:
- apiKey: []
- bearerAuth: []
parameters:
- name: channelId
in: path
required: true
schema:
type: string
- name: days
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 730
default: 90
description: 集計する日数(昨日まで)
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 200
default: 50
description: 返す本数
responses:
'200':
description: 動画ごとの実績
content:
application/json:
schema:
type: object
properties:
channelId:
type: string
range:
type: object
properties:
startDate:
type: string
endDate:
type: string
videos:
type: array
items:
type: object
properties:
videoId:
type: string
title:
type:
- string
- 'null'
publishedAt:
type:
- string
- 'null'
durationSec:
type:
- integer
- 'null'
views:
type: number
watchTimeMinutes:
type: number
averageViewDurationSec:
type: number
averageViewPercentage:
type: number
likes:
type: number
comments:
type: number
shares:
type: number
subscribersGained:
type: number
projectId:
type:
- string
- 'null'
description: この動画を作った YukkuriGen のプロジェクト
note:
type: string
'400':
description: 'チャンネルが YouTube と連携されていない(code: youtube_not_connected)'
'401':
description: '未認証(code: unauthenticated)。YouTube 側の連携切れは code: invalid_grant / youtube_unauthorized'
'403':
description: '権限不足(projects:read / code: insufficient_scope)、または YouTube のアナリティクス権限が無い(code: insufficient_permissions。連携し直す)'
'404':
description: 'チャンネルが見つからない(code: not_found)'
'429':
description: 'YouTube API の上限(code: quota_exceeded)'
/api/v1/channels/{channelId}/analytics/videos/{videoId}/retention:
get:
summary: 1本の動画の視聴維持率の推移を取得する(消費なし)
operationId: get_api_v1_channels_channelId_analytics_videos_videoId_retention
tags:
- Channels
security:
- apiKey: []
- bearerAuth: []
parameters:
- name: channelId
in: path
required: true
schema:
type: string
- name: videoId
in: path
required: true
schema:
type: string
- name: days
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 730
default: 365
description: 集計する日数(昨日まで)
responses:
'200':
description: 視聴維持率の推移と要約
content:
application/json:
schema:
type: object
properties:
channelId:
type: string
videoId:
type: string
title:
type:
- string
- 'null'
durationSec:
type:
- integer
- 'null'
range:
type: object
properties:
startDate:
type: string
endDate:
type: string
summary:
type:
- object
- 'null'
properties:
at10:
type:
- number
- 'null'
at25:
type:
- number
- 'null'
at50:
type:
- number
- 'null'
at75:
type:
- number
- 'null'
atEnd:
type:
- number
- 'null'
steepestDrops:
type: array
items:
type: object
properties:
fromRatio:
type: number
toRatio:
type: number
fromSec:
type:
- integer
- 'null'
toSec:
type:
- integer
- 'null'
drop:
type: number
points:
type: array
items:
type: object
properties:
ratio:
type: number
sec:
type:
- integer
- 'null'
audienceWatchRatio:
type: number
relativeRetentionPerformance:
type:
- number
- 'null'
'400':
description: 'videoId の形式が正しくない(code: validation_error)、またはチャンネルが YouTube と連携されていない(code: youtube_not_connected)'
'401':
description: '未認証(code: unauthenticated)。YouTube 側の連携切れは code: invalid_grant / youtube_unauthorized'
'403':
description: '権限不足(projects:read / code: insufficient_scope)、または YouTube のアナリティクス権限が無い(code: insufficient_permissions。連携し直す)'
'404':
description: 'チャンネルが見つからない(code: not_found)'
'429':
description: 'YouTube API の上限(code: quota_exceeded)'
/api/v1/channels/{channelId}/pdca:
get:
summary: チャンネルに紐づくプロジェクト一覧を取得する(PDCA画面用)
operationId: get_api_v1_channels_channelId_pdca
tags:
- Channels
security:
- apiKey: []
- bearerAuth: []
parameters:
- name: channelId
in: path
required: true
schema:
type: string
responses:
'200':
description: プロジェクト一覧
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
'401':
description: '未認証(code: unauthenticated)'
'403':
description: '権限不足(projects:read / code: insufficient_scope)'
'404':
description: 'チャンネルが見つからない(code: not_found)'
components:
schemas:
PurchaseSuggestion:
type: object
description: 402 のときに「これを買えば続けられる」を1つだけ示す(purchase)。無料プランの MP4 の plan_required だけは、少額の代わり(alternative・いちばん小さいクレジットパック)も添える。
properties:
priceKey:
type: string
description: checkout-link にそのまま渡す値
label:
type: string
amountJpy:
type: integer
credits:
type: integer
reason:
type: string
Error:
type: object
properties:
error:
type: string
code:
type: string
enum:
- unauthenticated
- signup_required
- invalid_credentials
- insufficient_scope
- forbidden
- plan_required
- insufficient_credits
- rate_limited
- validation_error
- not_found
- template_not_found
- line_not_found
- duplicate_index
- unknown_speaker
- missing_audio
- cast_mismatch
- unsupported_field
- price_unavailable
- progress_unavailable
- render_start_failed
- render_in_progress
- idempotency_key_reused
- local_render_not_allowed
- local_render_start_failed
- local_render_complete_failed
- not_uploaded
- invalid_upload
- render_id_in_use
- internal_error
- in_flight
- unavailable
- jobs_unavailable
- ai_script_unavailable
- ai_script_daily_cap
- ai_script_user_daily_limit
- too_many_concurrent_renders
- callback_unavailable
- generate_failed
- quota_exceeded
- dictionary_full
- tts_quota_exceeded
- already_subscribed
- render_not_paid
- render_not_ready
- youtube_not_connected
- template_in_use
- subscription_cancel_failed
description: エラー種別。render_in_progress はレンダーが進行中のためプロジェクトを削除できない(DELETE /projects/{projectId} の 409)。template_in_use はテンプレートがプロジェクトまたはチャンネルから参照されているため削除できない(DELETE /templates/{templateId} の 409)。progress_unavailable は進捗が読めなかっただけで、レンダー自体は継続している可能性がある(打ち切らないこと)。template_not_found は templateId が存在しない/他人のもの——課金は起きていないので、list_templates を引き直して投げ直す。tts_quota_exceeded は音声生成の月の文字数を使い切った(429。待っても resetAt まで戻らない——rate_limited と違い投げ直さない)。subscription_cancel_failed は退会時の Stripe 購読解約に失敗した(503)。しばらく時間をおいてから再試行してください。
limit:
type: integer
description: tts_quota_exceeded のとき、今月の音声生成の文字数の上限。無料プランで購入なし 10,000・クレジットパックの残高がある/API連携ライセンスを持つ人は 500,000・スタンダード 500,000・プロ 2,000,000・エンタープライズ 5,000,000(暴走止め)。
used:
type: integer
description: tts_quota_exceeded のとき、今月これまでに使った文字数。
resetAt:
type: string
format: date-time
description: tts_quota_exceeded のとき、使用量が 0 に戻る日時。生きている購読者は次の請求日、それ以外は日本時間の月初。
purchaseUrl:
type: string
format: uri
retryAfter:
type: integer
description: 429 のとき。再試行までの秒数(Retry-After ヘッダと同値)。
validSpeakers:
type: array
items:
type: string
description: 未知の speaker / キャラid を送ったとき。使用可能なキャラid の一覧。
purchase:
$ref: '#/components/schemas/PurchaseSuggestion'
description: 402 のとき、これを買えば足りるという1件。
shortfall:
type: integer
description: 402 のとき、足りないクレジット数。
alternative:
$ref: '#/components/schemas/PurchaseSuggestion'
description: MP4 の 402 plan_required(無料プラン)のときだけ。月額(purchase)の代わりに少額で始める道として、いちばん小さいクレジットパック(買い切り・期限なし)。無料プランのままでも、買ったクレジットが残っている間は MP4 を書き出せる。
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key: Authorization: Bearer yg_live_... (発行: /settings/api-keys)'
apiKey:
type: http
scheme: bearer
description: 'A YukkuriGen API key issued at /api/v1/api-keys, sent as Authorization: Bearer <key>. Scoped; each operation documents its 403.'