This Ruby Gem uses Capybara and PhantomJS to create an API for gathering Pinterest pins. The library may run slowly because Capybara must parse the page. This is an unofficial library authored by Mika Kalathil and offered under an MIT license.
For several years millions have shared the places they've been using the Where I've Been website and Facebook application. The site also has an API (our Where I've Been API profile), which allows for much of the same functionality, such as searching countries, marking it visited and adding content such as a story or photo.