Bing Videos
Overview
Use this skill to turn a natural-language Bing video search request into Dataify Bing Videos API fields, show the full request-parameter table for confirmation, call the API through scripts/bing_videos.py only after the user confirms, and return the API response directly without summarizing, parsing, reformatting, or post-processing it.
The source API document is summarized in references/api.md. Read it when field behavior, allowed values, or response shape is unclear.
Defaults
Use defaults only when they come from parameter descriptions, not from request examples.
engine: defaultbing_videos.json: default1.first: default1.no_cache: defaultfalse.q: defaultpizzafrom the field description. Prefer the user's requested query whenever provided.mkt,cc,setlang,length,date,resolution,source_site,price: no default.
Treat source-document sample values such as en-US, us, short, lt1440, 360p, dailymotion.com, free, or no_cache=true as examples only. pizza is used only because the q field description states it as the default.
Workflow
- Identify the user's video search query and map optional requirements to API fields:
q: search keywords. Defaultpizzawhen the user provides no query.json: output format. Default1; use2for JSON plus HTML,3for HTML.mkt: display language and market, such asen-USorzh-CN.cc: two-letter country or region code, such asus,cn,jp,uk.setlang: two-letter search language, such asen,zh, orja.first: organic result offset. Default1.length: video duration filter:short,medium, orlong.date: freshness filter:lt1440,lt10080,lt43200, orlt525600.resolution: resolution filter:lowerthan_360p,360p,480p,720p, or1080p.source_site: source filter, such asvimeo.com,dailymotion.com, orcnn.com.price:freeorpaid.no_cache: cache behavior. Defaultfalse; usetrueonly when requested.
- Prefer explicit user-provided field values over inferred values. Never fill fields from API example YAML values.
- Before every live API call, run a dry run with
--table, show the resulting Markdown table to the user, and ask whether they want to modify parameters. The table must include the complete field list exceptAuthorization, with only these columns: 参数名, 当前值, 默认值, 说明.
python3 scripts/bing_videos.py --prompt "pizza" --dry-run --table
- If the user asks to modify parameters, apply their changes and show the full table again.
- Call the live API only after the user confirms the displayed parameters.
- Ensure authentication before a live call:
- Read
DATAIFY_API_TOKENfrom the current environment. - If the user provides a token during the task, pass it with
--tokenor setDATAIFY_API_TOKENfor the command before invoking the script. - The script adds a
Bearerprefix when the token does not already include one. - If no token is available, ask the user to input a Dataify API token or register at Dataify Dashboard.
- Read
- Return the live script output directly to the user. Do not summarize video results, extract fields, reformat JSON, parse embedded JSON strings, or process returned HTML unless the user separately asks for processing.
Script Usage
Preview full parameters before confirmation:
python3 scripts/bing_videos.py \
--prompt "用必应视频搜索 OpenAI 发布会,过去一周,免费,1080p,返回 JSON 和 HTML" \
--dry-run \
--table
Run the live call only after confirmation:
python3 scripts/bing_videos.py \
--prompt "用必应视频搜索 OpenAI 发布会,过去一周,免费,1080p,返回 JSON 和 HTML"
Useful flags:
--q,--json,--mkt,--cc,--setlang,--first,--length,--date,--resolution,--source-site,--price,--no-cache--field key=valuefor any supported API field--tokento provide a token for the current run--body-format form|json, defaultform--dry-runto print parsed payload JSON and skip network/auth checks--tablewith--dry-runto print the full confirmation table
Scan to join WeChat group