• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

YouTube

Status
Not open for further replies.
👉 Scenario I - If your uploading video size is less than 1GB
  • In this case, Add an action step to Upload a Video on YouTube. Use the YouTube: Upload Video action to upload the video.
  • After uploading the video, Use the Delay by Pabbly action step for 8 minutes. This is the amount of delay after which we will re-check the video upload status.
  • To check the video upload status, use the Youtube: Get Video Upload Status action after the delay step to fetch the final response.
  • If the processing is done, you will immediately get the Uploaded video URL in the response that you can use in further steps.
  • Please note, in case the video is not completely uploaded due to any reason. The "Get Video Upload Status" action will also re-push the video uploading again from the last uploaded location onwards.
  • One Upload video action will upload up to 400 MB file in general. In this case, you will have to use "Get Video Upload Status" to re-push the video file from that point onwards.
  • You can use the "Get Video Upload Status" action multiple times with delay to upload a video file up to 1 GB in size check the second scenario explained below.
1669034329925.png


👉 Scenario II - If your uploading video size is greater than 1GB
In this case, you need to create two workflows.

Workflow 1. (Upload Video)

  • Add an action step to upload a video on Youtube.
  • On pressing Save & Send Test Request, the video upload will start. In response, you will receive a RequestId of the upload in the key "Res1 RequestId" and Status in "Res2 Status".
  • Now, we need to record the RequestId (55783333444f) and Status (Initiated) in a Google Sheet, so add another action Google Sheets: Add New Row just below the YouTube: Upload Video action step of your workflow as shown below:

Upload Video Template:

1669033399894.png


Workflow 2. (Check Video Upload Status)

We will now look at the steps through which we will establish a link between Google Sheets and YouTube. This will help us to fetch the data from Google Sheets and check the Video Upload Status every 8 mins.

  • Add a trigger step Schedule by Pabbly at every 8 mins.
  • Add an action Google Sheets: Lookup Spreadsheet Row step and search the lookup value of Request Status i.e. Initiated
  • In the response, you'll get the Request ID.
  • Now add the action step Iterator by Pabbly
  • In the Next step add the action YouTube: Get Video Upload Status.
    (Please note, the "Get Video Upload Status" action will also re-push the video uploading again from the last uploaded location onwards.)
  • Map the Request ID from the above step and check the request status.
  • If the Status is Completed you need to use the filter in the next action step to update the upload status in Google Sheet by adding the action step Google Sheet: Update Row. Else, it will keep uploading the file for the next executions of this workflow every 8 mins.
Refer to the workflow as shown below:
Check Upload Status Template


1670655160091.png



Note: File URL should always send the Content-Length and Content Range header with the Content-Length. Otherwise the YouTube action will only allow you to upload files up to 50 MB in size, and you will receive the warning message "Unknown file size. Upload limit 49.898MB" in the response.


This is a sample video URL that will work for part by part download because it includes both the headers. Content-Length and Content-Range.

AC32B769-C7F3-4D1F-B366-D44ED25187B2 (1).png


For large video uploads, Content-Range headers are also required in the headers of the file.

👉 If Content-Range header is available when we make a GET request in Postman with "Range" header, our API will be able to upload large files.
 

Attachments

  • 1668598131076.png
    1668598131076.png
    214.2 KB · Views: 163
  • 1668598337119.png
    1668598337119.png
    165.4 KB · Views: 127
  • 1668599355403.png
    1668599355403.png
    149.5 KB · Views: 124
  • image (12).png
    image (12).png
    181.3 KB · Views: 139
  • 1669013016257.png
    1669013016257.png
    294.6 KB · Views: 134
  • 1669013274455.png
    1669013274455.png
    355.7 KB · Views: 145
  • 1669016879148.png
    1669016879148.png
    293.5 KB · Views: 139
  • 1669033248595.png
    1669033248595.png
    360.2 KB · Views: 197
  • 1669445909371.png
    1669445909371.png
    72 KB · Views: 263

Chetali

Administrator
Staff member
Error: API call to youtube.videos.insert failed with error: The <code>snippet.categoryId</code> property specifies an invalid category ID.

When you see this error in "Upload Video (Beta)", it means the category ID you used isn't supported by YouTube's API. YouTube has many categories, but only a few are accessible. The API provides a list of categories along with their IDs and parameters, indicating whether they're accessible in a specific region.

E.g. Categories for USA:

1709362250005.png


Error Message for Unsupported Category ID:
If you encounter this error, it means the category ID you provided is not supported:

API call to youtube.videos.insert failed with error: The <code>snippet.categoryId</code> property specifies an invalid category ID. Use the <code><a href="/youtube/v3/docs/videoCategories/list">videoCategories.list</a></code> method to retrieve supported categories.


1709362017764.png

Note:
Only category IDs with the assignable value set to true will work. You can verify whether categories are assignable by using the "List Video Categories" action.

1709362549076.png
 

Attachments

  • 1709362154006.png
    1709362154006.png
    31.6 KB · Views: 62
Last edited:
Status
Not open for further replies.
Top