API Documentation

Information

Your API KEY is available on your dashboard


Local upload


POST https://upload.embedgram.com/api/uploadapi

Parameter Type Value
file Required File
api_token Required Api_token

* Extensions .avi .mkv .flv they always convert.
* Extension .mp4 it it converting in some cases.

curl -X POST https://upload.embedgram.com/api/uploadapi
-H "Content-Type: application/json"
-H "Accept: application/json"
-F "api_token=API_TOKEN"
-F "login=LOGIN"
-F "file=@/path/to/file.mp4"

Success response (200):

{
    "success": true,
    "link": "//embedgram.com/v/61n8n24dwe6sd",
    "short": "61n8n24dwe6sd"
}

Error response (404):

{
    "error": error_message"
}

Remote upload


POST https://embedgram.com/api/upload/remote

Parameter Type Value
url Required Direct url to video
name Required Name of file
api_token Required Api token

* Extensions .avi .mkv .flv they always convert.
* Extension .mp4 it it converting in some cases.

curl -X POST https://embedgram.com/api/upload/remote
-H "Content-Type: application/json"
-H "Accept: application/json"
-F "api_token=API_TOKEN"
-F "name=NAME"
-F "url=URL"

Success response (200):

{
    "success": true,
    "data": "//embedgram.com/v/61n8n24dwe6sd"
}

Error response (404):

{
    "error": error_message"
}

Embedgram clone


POST https://embedgram.com/api/upload/embedgram

Parameter Type Value
hash Required *Hash of video
api_token Required Api token

* Example from url: https://embedgram.com/v/61n8n24dwe6sd hash will be 61n8n24dwe6sd

curl -X POST https://embedgram.com/api/upload/embedgram
-H "Content-Type: application/json"
-H "Accept: application/json"
-F "api_token=API_TOKEN"
-F "hash=HASH"

Success response (200):

{
    "success": true,
    "data": "//embedgram.com/v/61n8n24dwe6sd"
}

Error response (404):

{
    "error": error_message"
}

UPLOAD CAPTIONS


POST https://upload.embedgram.com/api/subtitles

Parameter Type Value
video_id Required video id
api_token Required api token you can check in my account
subtitles Required path to your caption file
curl -X POST https://upload.embedgram.com/api/subtitles
-H "Content-Type: application/json"
-H "Accept: application/json"
-F "api_token=API_TOKEN"
-F "video_id=VIDEO_ID"
-F "file=@/path/to/english.vtt"

Success response (200):

      {"sucess":"Subtitles added!"}

Error response (404):

{
    "error": error_message"
}

Search video by name


POST https://embedgram.com/api/movies

Parameter Type Value
hash Required short_hash of video
title Required Name&Of&Video
curl -X POST https://embedgram.com/api/movies
-H "Content-Type: application/json"
-H "Accept: application/json"
-F "api_token=API_TOKEN"
-F "title=name&of&video"

Success response (200):

        {
            "short_hash": "26n13648n8r43",
            "hash": "487454875d003d71af15d0dda22e30e683e75b0f10a7fcae22b1dc1c70f2f204e79a5d0cb0d41363abf52547f0f12433a19365b3423b3cd8ffd4140878dfac",
            "name": "example1.mp4",
            "status": "ready",
            "views": 0,
            "premium_views": 0,
            "created_at": "2021-11-26T19:32:56.000000Z"
        }

Error response (404):

{
    "error": error_message"
}

Check video status


POST https://embedgram.com/api/movies

Parameter Type Value
hash Required short_hash of video
api_token Required Api token
curl -X POST https://embedgram.com/api/movies
-H "Content-Type: application/json"
-H "Accept: application/json"
-F "api_token=API_TOKEN"
-F "short_hash=HASH"

Success response (200):

        {
            "short_hash": "26n13648n8r43",
            "hash": "487454875d003d71af15d0dda22e30e683e75b0f10a7fcae22b1dc1c70f2f204e79a5d0cb0d41363abf52547f0f12433a19365b3423b3cd8ffd4140878dfac",
            "name": "example1.mp4",
            "status": "ready",
            "views": 0,
            "premium_views": 0,
            "created_at": "2021-11-26T19:32:56.000000Z"
        }

Error response (404):

{
    "error": error_message"
}