Skip to content

How To Get Pinterest Board ID

This 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?

The 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 pinterest.com. It 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.

Published inComputers & InternetInternet

25 Comments

  1. Tuhin Suvra Biswas 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.

    • Is it not working? I just checked it with a couple of different boards and it worked like it should.

    • I, too, cannot get the Board ID.

      Any suggestions?

      Frank

  2. Crispin Thomas Crispin Thomas

    Would it be possible to get hold of the Script to Auto Post to Pinterest?

  3. Arka Bhowmik 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 ?

  4. @Arka – It’s just pulling the source and doing a regex match.

  5. Ralph Metel Ralph Metel

    Great tool thx! Save me some headaches! ;)

  6. Ralph Metel Ralph Metel

    Great tool thx! Saved me some headaches! ;)

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

    • Just tried and that URI worked fine. It pulled an ID.

  7. 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

  8. Cherie Cherie

    Post not successful at Pinterest. What can I do?

  9. Rich Rich

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

    • No clue about insta viral.

  10. jasonsmith1959 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.

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

  11. NoWnZeN NoWnZeN

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

  12. Does this pull board ID’s for secret boards?

  13. Brooke Knight 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 (nutt.net) stating it cannot be supported. Something isn’t right here….HELP

Leave a Reply

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