- API
- Embeds
Embed code
GET
https://send.now/api/video/embed_code?key=1ltghrilhllgrx2b2&file_code=jfru5kl9dhrt&width=1280
| Parameters |
Description |
Example |
Format |
Required |
| key |
API-Key |
1ltghrilhllgrx2b2 |
String |
yes |
| file_code |
File code of one of your videos |
jfru5kl9dhrt |
String |
yes |
| width |
Width of the player in pixels (default 640) |
1280 |
Number |
no |
| height |
Height (default: from the width and the picture of the video) |
720 |
Number |
no |
Response
{
"msg": "OK",
"result": {
"file_code": "jfru5kl9dhrt",
"embeddable": 1,
"mode": "free",
"max_bytes": 262144000,
"width": 1280,
"height": 720,
"embed_url": "https://send.now/embed-jfru5kl9dhrt.html",
"direct_url": "https://send.now/vidembed-jfru5kl9dhrt",
"iframe": "<iframe src=\"https://send.now/embed-jfru5kl9dhrt.html\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" width=\"1280\" height=\"720\" allowfullscreen></iframe>"
},
"status": 200,
"server_time": "2026-11-16 12:19:28"
}
Response: a video that can not be embedded
{
"msg": "OK",
"result": {
"file_code": "jfru5kl9dhrt",
"embeddable": 0,
"why": "protected",
"reason": "This video is protected and cannot be embedded.",
"width": 640,
"height": 360,
"embed_url": "https://send.now/embed-jfru5kl9dhrt.html",
"iframe": "..."
},
"status": 200,
"server_time": "2026-11-16 12:19:28"
}
Embed settings
GET
https://send.now/api/account/embed_settings?key=1ltghrilhllgrx2b2
https://send.now/api/account/embed_settings?key=1ltghrilhllgrx2b2&allowed_domains=example.com,blog.example.org&blocked_countries=RU,CN
| Parameters |
Description |
Example |
Format |
Required |
| key |
API-Key |
1ltghrilhllgrx2b2 |
String |
yes |
| embed |
1 / 0: other websites may embed your videos |
1 |
Number |
no |
| allowed_domains |
Embeds play only on these sites and their sub-domains, comma separated. Empty: on every site |
example.com |
String |
no |
| blocked_countries |
Two letter country codes: embeds never play for viewers there |
RU,CN |
String |
no |
| blocked_ips |
Addresses embeds never play for (1.2.3.4, or 1.2.3.* for a range) |
1.2.3.* |
String |
no |
Response
{
"msg": "OK",
"result": {
"embed": 1,
"allowed_domains": [
"example.com",
"blog.example.org"
],
"blocked_countries": [
"RU",
"CN"
],
"blocked_ips": []
},
"status": 200,
"server_time": "2026-11-16 12:19:28"
}
Notice
|
mode: free plays for everybody (qualities up to max_bytes; bigger ones, in premium_qualities, for Premium viewers), owner_bw is paid by your Direct Link Traffic, viewer plays for Premium viewers only. |
|
why when a video can not be embedded: protected (password, price, Premium only, encryption), denied (embeds are off for your account or plan), limit (bigger than the free embed size and no Direct Link Traffic), unavailable, maintenance, disabled. |
|
The embed code works the same as the one of the Share window. direct_url is there when your plan allows direct embed links. |
|
A list you send replaces the one you had; an empty value clears it. Without parameters the call shows the settings. Nothing changes while your account has the security lock on (403). |
Status code
| 200 |
Everything is OK. Request succeeded |
| 400 |
Bad request (e.g. wrong parameters) |
| 403 |
Permission denied (the feature is off, or not in your plan) |
| 404 |
File not found |
| 429 |
Too many requests |