Get YouTube Views Data For Use In Genesis

This tutorial provides the code which enables you to display YouTube views per video in WordPress or any Genesis child theme using custom fields like this :

To do this, you’ll need to use Google Developers API Manager for Credentials.

The API supports several types of API keys. If the key type that you need does not already exist, create an API key by clicking Add credentials > API key and selecting the appropriate key type which is browser keys.

Create and use a browser key if your application runs on a client, such as a web browser.

In this case, we’ll create a browser key.

  1. Add Credentials
  2. Create a New Project
  3. Create Credentials

Copy your API key and swap out the xxxxxxxxxxxx with your API key in the code below :

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.