Import media from a URL
import_asset_urlImport media from a direct HTTPS URL. Supply the filename including extension. Returns an Asset ID. A placeable asset comes with its facts, a READY line and the use line. If the result says NOT PLACEABLE YET, call wait_for_asset with the Asset ID, as its NEXT line says, before you use it. A data file (.json, .geojson, .topojson, .csv, .tsv or .svg, up to 2 MB) comes in too, for a component to read with : a public dataset by its raw link, such as world country shapes from https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json. So does a font file (.ttf, .otf, .woff or .woff2, up to 10 MB): the result names its family for the font attribute and fontFamily (guide/fonts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| fileName | Yes | ||
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| endSeconds | Yes | Video range end in source seconds. Both bounds are required for a range; the rest is discarded. Imported video starts at zero. Cannot combine with keepOriginal. | |
| startSeconds | Yes | Video range start in source seconds. Use null with endSeconds null for the whole file. |