Get AI SEO for FREE.

Learn More!

How to Get YouTube API Key?

Rank Math PRO allows you to automatically fetch data from YouTube videos to use in Video Schema and Video Sitemap. The data is fetched using YouTube’s Public API, which works well for most users.

However, if you notice any discrepancies such as incorrect title, description, or no thumbnails, we recommend generating a YouTube Data API key for more accurate results.

Note: YouTube’s Data API is free but has a daily quota. You can fetch data of up to 100 videos per day, which should be sufficient for most users.

In this tutorial, we will walk you through the steps to get an API key for yourself and use it with Rank Math.

1 Configure Rank Math’s Video Sitemap PRO

To use this advanced feature, you must first ensure that Rank Math’s Video Sitemap module is enabled from WordPress Dashboard → Rank Math SEO → Dashboard → Modules.

Video Sitemap

Now, when you head over to Rank Math SEO → Sitemap Settings → Video Sitemap, you should see the YouTube API Key field.

YouTube API Key

If you don’t see this option, switch to Advanced Mode in Rank Math.

2 Login to Google’s Cloud Console

Visit the Google’s Cloud Console. If you haven’t already created a project, you will need to create a new one. If you already have a project created, then you can proceed to the next step.

To create a new project, click the CREATE PROJECT option that appears on the screen.

Create New Project in Google Cloud Console

Next, enter the project details and click the CREATE button.

Project Details

3 Create API Key

Once, you’ve created a project, click the Credentials tab in the left menu.

Visit Credentials tab

On the Credentials page, click the Create Credentials option, and from the dropdown, choose API Key.

Create Credentials and API Key

Wait for a few moments for the API key to be created. Then, copy the generated API Key.

Copy API Key

Paste it into the YouTube API Key field in the Rank Math Settings, and click the Save Changes button as shown below.

Save Changes

4 Enable the YouTube Data API

Google, by default, doesn’t enable the YouTube Data API for all the projects.

So, we still need to head over to the Enabled APIs & services tab in the Cloud console menu and choose ENABLE APIS AND SERVICES option, as shown below.

Enable APIs & services

From the API Library, search for YouTube Data API v3 and select it.

YouTube Data API v3

Then, ENABLE the YouTube Data API as shown below.

Enable YouTube Data API

Now that you’ve enabled the YouTube Data API, you can start using it within Rank Math PRO.

And that’s it. If you have any questions about Rank Math or facing any issues with the setup, feel free to get in touch with our support team here, and our support team will always be happy to assist you.

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Learn more about the PRO Version

Still need help?

?

Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket

Related Articles