Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Google+ business page ID based on vanity URL

Tags:

google-plus

We are looking to implement rel=publisher to verify our website against our Google+ page.

However, according to the Rich Snippets tool, this only appears to work with a numeric page ID: e.g. https://plus.google.com/103037366582313115962/

However, we have a vanity URL https://plus.google.com/+TheGuardian

How can I find out our numeric page ID based on a Vanity URL?

like image 536
Gids Avatar asked Feb 26 '13 10:02

Gids


2 Answers

OK, worked this out:

  • Go to https://plus.google.com/ as a Google+ user.
  • Search for your page using the search box
  • Copy the link location of the search result for your page. e.g. https://plus.google.com/u/1/113000071431138202574

...The last fragment of the URL is your Google+ page id

like image 157
Gids Avatar answered Oct 12 '22 00:10

Gids


In order to get the 21 digit ID from a vanity URL, you need to utilize people.get API!

Just enter the vanity URL portion with the plus sign (for example +Name) as the userId here and scroll down to the 'Response' section to get your id.

like image 45
Nadeem Khan Avatar answered Oct 12 '22 00:10

Nadeem Khan