YouTube generator

☝️ Note: This generator is only available in the Pro version.

In this article

Tutorial

☝️ Note: Google changes its design and API creation process every couple of month, so it might won't be exactly the same, as in this documentation, but the process will be very similar.

Step 1

Go to this page: https://console.developers.google.com/apis/

Step 2

Click on Create project

If you already had projects, you can create a new one from the project selector.

Step 3

Give a Name to your project, select a 'Parent resource' if needed and click on Create.

Step 4

Make sure, that your current project is selected at the top.

Step 5

Go to the Enabled APIs & services menupoint and press Enable APIs & services.

Step 6

Look for the YouTube Data API v3 then select it.

Enable it.

Step 7

Go to Credentials and click on Create credentials. Select OAuth client ID.

Step 8

Go to the Clients menupoint click on Configure consent screen.

Step 9

Press Get started.

Step 10

This will bring you to the Overview menupoint, where you should enter an App name and a User support email. Press Next.

Step 11

Select External user type for Audience, and press Next.

Step 12

Enter an email address for Google to contact you about your API if anything happens to it.

Step 13

Agree Google's policy, then press Continue, lastly press Create.

Step 14

Go to the Branding menupoint and enter your website's top level domain into the Authorized Domain. Then click Save.

What's a top level domain? It's your website's domain address without https, www or subdomain. So if your website is https://www.example.com then your top level domain is example.com and that is what you need to enter.

Step 15

Go to the Audience menupoint. By default, this API can only access the Youtube data of your own email address. If you want to access another email address' data, at Test users press Add users and enter the other email address.

On the same page, press Publish app.

Confirm the publishing.

Step 17

Go to the Clients menupoint, and press Create client.

Step 18

Choose Web application and give it a Name.

Step 19

Go to the Smart Slider's backend, Global SettingsGenerators YouTube, and copy the Callback url.

Step 20

Write your website's address under Authorized JavaScript origins, and paste the Callback url under the Authorized redirect URIs, and click on Create.

Step 21

Copy the Client ID and Client secret.

Step 22

Go back to the Smart Slider's backend, Global Settings → Generators → YouTube and paste them there. Then click on Request token. (Make sure that you don't have any empty space characters in the end or beginning of them.)

⚠️ Warning: Some browsers block popups. If nothing happens when you click on the Request token button, make sure that the popups are enabled in your browser.

Step 23

You will see a warning, that the app wasn't verified by Google. For this API it is completely unnecessary to go through a verification, as you created it, so press Special.

And choose Go to: your website (not secure).

(Once again, you created this API, so it is completely secure.)

Step 24

Allow your API to have all requested accesses to your YouTube account.

Step 25

You will receive a Token, and you should save the settings.

Step 26

Now the api is done, create a new dynamic slide

To get started, go to any Slider Settings page and add a new dynamic slide. Choose YouTube   .

Step 27

Configuring the generator

Set up your generator. Choose the settings you want. Popular options you probably want to configure: category where your content will be pulled from, the number of slides you want to have, the ordering of the content.

You can also click on the View Records button to see the data you'll be creating your slide with.

When you're done, click on Add   .

Step 28

Editing the dynamic slide

After you saved your generator, you'll be redirected to the Slide Editor to set up the look of your slide. You can create your content by using variables.

Not sure what are the variables or how to use them? Learn how to work with variables.

Configuration

You can use these options to set what you want your generator to show.

Filter

By search

Search term

The word you would like to search for in the videos.

By playlist

Channel id - optional

Leave this empty, if you want to get the playlist of your own Youtube user.

If you want to get a different channel's playlist, go to the channel, for example:

https://www.youtube.com/c/NEXTEND

right click somewhere on its page → choose "View page source" → with Ctrl + F search for the word "channelId", and you should be able to find the ID within the code:

If you insert the ID within our option, the Playlist should automatically refresh:

Playlist

Choose one from your playlists from where you want to show the videos.

Privacy status

You can select which privacy status videos you would like to get.

The privacy status filtering happens after the API request, so the set Slides number could decrease. If that bothers you, set a bigger Slides number, and rather use Max Count to set the exact number of slides you want.

Generator Settings

Learn about the Generator Settings      at the Generator Settings documentation.

Variables

These are the available variables you can use to build your dynamic slide content in the Slide Editor.

Not sure what are the variables or how to use them? Learn how to work with variables.

By search, By playlist
  • video_id - The id of the video.
  • video_url - The url of the video.
  • title - The title of the video.
  • description - The description of the video.
  • thumbnail - The default size thumbnail image of the video.
  • thumbnail_medium - The medium size thumbnail image of the video.
  • thumbnail_high - The high size thumbnail image of the video.
  • channel_title - The title of the the video's channel.
  • channel_url - The url of the the video's channel.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.