Thursday 21 May 2020

How To Know Your Blogger Blog Id

If you use Blogger, you must be knowing this. Each and every blog on Blogger has a unique ID. Based on this ID, Blogger stores related data in the database. If you have worked with blogger API then you must be already knowing about it.

But today I'm going to share some other methods.

# Method 1

If the blog belongs to you, simply sign in into blogger.com and there you see the blog id in the URL.

Blogger Blog URL

You can see that above URL is https://www.blogger.com/blogger.g?blogID=5641540552649250996#allposts  in which blog ID is "5641540552649250996".

Pretty easy, isn't it?

# Method 2

This method works for all the sites and also excellent if you want to find out the id of the blog which doesn't belong to you.
 
To find out the ID -
  1. Go to their blog. (for eg. css-magz.blogspot.com)
  2. Right click and click on 'view source' (alternatively you can use ctrl + U on chrome)
  3. Now in the source code, look for blogID (Use ctrl + F)
  4. Go to the last part of the source code where you will see something like shown below.
Blogger Source Code showing blog id
In the above image you can clearly see the blog ID.

If I search that blogId in the whole source, I can see I got 7 results. That means no need to be dependent on the last part of the source, you can get it between as meta tags too. Like -
<meta content='4998624666711400504' itemprop='blogId'/>

# Method 3

Last method is using Blogger API, about which I've already written here.

This method becomes useful when you need to call the API for some function demanded by any program which uses Blogger API. You can make such applications Using Blogger API v3(which is the latest currently).

Conclusion

That's it! This is how you can know blog ID of any blog hosted on Blogger.

 If you know some other methods, do let me know in the comments below. I would love to know some other methods :)

3 comments:

Comment something useful and creative :)