Paula C
Paula C

Reputation: 194

Error: "Values must match the following regular expression"

I'm playing with the Youtube Analytics API Explorer and I have no problem until I try to put several metrics in the "Metrics" field.

They ask especifically to enter data in this format

A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes.

So I try with this:

views, likes, shares

But then I get this message:

"Invalid value 'shares,+ comments+'. Values must match the following regular expression: '[0-9a-zA-Z,]+'"

What am I doing wrong? :'(

Upvotes: 1

Views: 1720

Answers (1)

dave
dave

Reputation: 64695

You cannot have spaces between the items. Look at their example:

likes,dislikes

So you need to do:

views,likes,shares

Upvotes: 2

Related Questions