eternalsocial.dev
YouTube

Get YouTube video information

POST
/api/youtube/video

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from /auth/login or API key from /keys

In: header

Request Body

application/json

videoUrl*string
Formaturi
webhookUrl?string

Webhook URL to receive results. If provided, request returns immediately.

Formaturi

Response Body

application/json

application/json

application/json

curl -X POST "http://localhost:3222/api/youtube/video" \  -H "Content-Type: application/json" \  -d '{    "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"  }'
{
  "success": true,
  "requestId": "string",
  "data": {
    "kind": "string",
    "etag": "string",
    "id": "string",
    "snippet": {
      "publishedAt": "string",
      "channelId": "string",
      "title": "string",
      "description": "string",
      "thumbnails": {
        "default": {
          "url": "string",
          "width": 0,
          "height": 0
        },
        "medium": {
          "url": "string",
          "width": 0,
          "height": 0
        },
        "high": {
          "url": "string",
          "width": 0,
          "height": 0
        },
        "standard": {
          "url": "string",
          "width": 0,
          "height": 0
        },
        "maxres": {
          "url": "string",
          "width": 0,
          "height": 0
        }
      },
      "channelTitle": "string",
      "tags": [
        "string"
      ],
      "categoryId": "string",
      "liveBroadcastContent": "string",
      "defaultLanguage": "string",
      "localized": {
        "title": "string",
        "description": "string"
      },
      "defaultAudioLanguage": "string"
    },
    "contentDetails": {
      "duration": "string",
      "dimension": "string",
      "definition": "string",
      "caption": "string",
      "licensedContent": true,
      "regionRestriction": {
        "allowed": [
          "string"
        ],
        "blocked": [
          "string"
        ]
      },
      "contentRating": {
        "property1": null,
        "property2": null
      },
      "projection": "string",
      "hasCustomThumbnail": true
    },
    "status": {
      "uploadStatus": "string",
      "failureReason": "string",
      "rejectionReason": "string",
      "privacyStatus": "string",
      "publishAt": "string",
      "license": "string",
      "embeddable": true,
      "publicStatsViewable": true,
      "madeForKids": true,
      "selfDeclaredMadeForKids": true
    },
    "statistics": {
      "viewCount": "string",
      "likeCount": "string",
      "dislikeCount": "string",
      "favoriteCount": "string",
      "commentCount": "string"
    }
  },
  "itemCount": 0,
  "creditsCharged": 0
}
{
  "success": true,
  "requestId": "string",
  "status": "processing",
  "message": "string"
}
{
  "success": false,
  "error": "string",
  "requestId": "string"
}