메인 콘텐츠로 건너뛰기
POST
Search YouTube

인증

Authorization
string
header
필수

Your API key, sent as Authorization: Bearer <key>.

헤더

Prefer
string

wait=<seconds> holds the request at most that long, up to 290. wait=0 answers with the task id at once and queues the task when every concurrency slot is taken.

예시:

"wait=120"

본문

application/json
query
string
필수

The search term, for youtube search, recent and suggestions, tiktok search, and linkedin jobs_search, which takes at most 200 characters.

Required string length: 1 - 500
limit
integer
기본값:10

How many items to return, 1 to 50; 10 by default.

필수 범위: 1 <= x <= 50
order
enum<string>

youtube search takes relevance, viewCount, date or rating; youtube comments and post_comments take relevance or time.

사용 가능한 옵션:
relevance,
viewCount,
date,
rating,
time
uploadDate
enum<string>

youtube search and recent: YouTube's upload date filter. Not with publishedAfter.

사용 가능한 옵션:
hour,
today,
week,
month,
year
publishedAfter
string

An ISO 8601 date or time. youtube search and recent return videos published after it; instagram and threads search and posts return posts published at or after it.

type
enum<string>

What to search for. youtube search: video (default), all, shorts, channel, playlist or movie. instagram search: post or reel, both when absent. threads search: post (default), tag or profile.

사용 가능한 옵션:
video,
all,
shorts,
channel,
playlist,
movie,
post,
reel,
tag,
profile
videoDuration
enum<string>

youtube search: under 3 minutes, 3 to 20 minutes, or over 20 minutes.

사용 가능한 옵션:
short,
medium,
long
features

youtube search: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location or purchased, as an array or a comma-separated string.

exactSpelling
boolean

youtube search: search the query as written, without spelling correction.

pageToken
string

youtube search, comments, channel_videos, channel_posts, playlist, post_comments, hashtag and sound_shorts: the nextPageToken of the previous page, sent with the same request fields.

regionCode
string

youtube: the YouTube region, such as US, KR or JP. tiktok trending: the two-letter code of the region whose trending videos to read, US by default.

languageCode
string

youtube search, recent and suggestions: the YouTube interface language, such as en, ko or ja.

include
object

Optional output flags. markdown, rawResponse, searchQueries, ads and shopping are ignored by engines that do not support them. citationLinks is PERPLEXITY only and requires markdown: true. analysis on an unsupported engine is rejected with 422 VALIDATION_ERROR, html with 422 EVIDENCE_UNSUPPORTED, and screenshot: true with 400 VALIDATION_ERROR on every engine. See the engine guide for the support table.

idempotencyKey
string

Optional. A repeat of the key within at least 30 days answers with the task that holds it, so a caller that hung up can ask again.

priority
integer
기본값:1

Compatibility field; does not guarantee execution order. Values outside 1–10 are clamped, not rejected.

필수 범위: 1 <= x <= 10
webhook
object

Optional. Omit to collect the result by polling instead.

응답

The task ended: the body GET /v1/async/task/{id} returns, with the result in response or the reason in error.

success
boolean
필수
task
object
필수
credits
object
필수

Credits, with up to two decimals (for example 1.25). The submit response always shows 0: nothing is charged yet, and the task's price is held from your balance when it starts. Polling shows 0 until the task is terminal, then the settled charge: the task's price for COMPLETED, 0 for FAILED. A task webhook reports the same charge in creditsCharged; on a FAILED task it reports the task's price in creditsToCharge and 0 in creditsCharged. CITATION_ANALYSIS, GOOGLE_PLACES and GOOGLE_NEWS are charged by usage, up to the hold placed when the task starts.

response
object

The engine-specific result. Absent until the task is terminal. See the Engines guide for per-engine shapes. NAVER_AI_TAB preserves the original text, markdown, sources and cards when Naver returns HTTP success, a valid stream ending in done, and nonempty answer text with unknown_error. It includes upstreamError and returns immediately without retrying or rephrasing, even with retryQuery. COMPLETED means collection finished; the answer may still be incomplete. Empty, cut-off or malformed streams still fail. Policy refusals complete with a policy_declined notice. rawContent is returned only with include.rawResponse. With include.citationAnalysis, answer results also carry citationAnalysis (see Include). CITATION_ANALYSIS returns CitationAnalysisResult; see the Citation Analysis guide. PROMPT_RESEARCH returns PromptResearchResult; see the Prompt Research guide. GEO_SCORE returns GeoScoreResult; see the GEO Score guide. Answer engines with include.analysis add analysis (AnswerAnalysis).

error
string

Present when task.status is FAILED. A plain string, not the {code, message, timestamp} object used by request-level errors.