Pinterest LogoThis little script comes from me needing to find the ID number for a Pinterest board so that a script I wrote could automatically add new pins.

But it looks like while it used to be pretty easy to find the board ID, it’s gotten a bit less transparent. But it’s still really not hard to find if you’re willing to dig through a bit of HTML. Being a bit on the lazy side though, I’d rather write a quick little script to find it for me so that next time I can just punch in the board URL and get the ID automatically.

And, so here is a tool to do just that. Enter the URL to the board you’re interested in and it will go and grab the page HTML and pick out the board ID for you.

What URL do I use?

Easiest thing is to go to the board you’re interested in and copy the URL from your browser address bar. Then copy it into the field above and press the button.

It also works when entering the address of your account page – the one with all of your boards listed – but will only return the ID of the first board. If getting all of the IDs is something that would be useful, let me know in the comments. It’s probably something that could be added.

How does this work?

The board ID is buried in some JavaScript code on the Pinterest page. This script just pulls the Pinterest page and does a bit of regex searching to find the ID.

It’s giving me an error

What to do depends on what the error is.

First, this does check to make sure that the URL is on Doesn’t really make sense to check for a Pinterest board ID on other sites.

If you’re entering a correct address and it’s still telling you that it can’t find the board ID, let me know in the comments. Maybe Pinterest changed something. This was working when I posted the page, but things change.

What about WordPress?

If you’re using WordPress I just finished a plugin that will automatically create pins on your Pinterest board when a post is published. You can find the Pinterest Auto Post WordPress plugin at

25 Responses to “How To Get Pinterest Board ID”

  1. Tuhin Suvra Biswas

    I badly need the script to get the board id of a pinterest account can you please help me with the script.

  2. Arka Bhowmik

    I found that you have used an AJAX call to generate the Board ID. Can you give me the PHP function so that I can include it in my project ?

    • Ryan

      Weird, looks like a couple of quotes got stripped out of a JavaScript file. Just checked with your link and it pulled an ID.

  3. John

    The above website link is where I used to have my Pinterest Feed/Page. Now it says, “Please recheck your ID.”

    This is what USED to work: [alpine-phototile-for-pinterest src=”board” uid=”johnnaccarato” board=”senior-fashion-style-guide” imgl=”none” dl=”1″ dlstyle=”medium” style=”cascade” col=”5″ size=”192″ num=”10″ max=”100″]

    I replaced the board= name to: 36802990643908431 which is what was generated when I used to gizmo. I still receive the same error.

    Thanks for any help. John

  4. Rich

    I have tried this multiple times to connect pinterest to insta viral but it does not work, any suggestions?

  5. jasonsmith1959

    hi ryan. neat little script, works for me. i would however, like to see how to pull a boardID for each board in my account if that is possible. this would be very useful to mass post into specific themed boards. thanks ryan.

    • Ryan

      Not sure how to do that. Seems Pinterest has been pretty stingy about opening up a public API for that sort of thing.

  6. NoWnZeN

    Ryan, great resource page and thanks for sharing script! Personally, it worked perfectly for me.

  7. Brooke Knight

    I go to the board on my profile page and copy the URL pasting it in the designated box and it won’t come up…..a small box appears ( stating it cannot be supported. Something isn’t right here….HELP



  1.  How to stop wasting time and automate your Pinterest (Part 2) - Omega Assistants
  2.  Pinterest Board ID Nasıl Bulunur? - İki Blog

Leave a Reply

Your email address will not be published. Required fields are marked *