-
-
Save iwek/7549309 to your computer and use it in GitHub Desktop.
{ | |
"status": "success", | |
"search_nag": {}, | |
"code": 0, | |
"bookmark": "b28xMDB8MDQ0NWZiOTBjNzNiODlkOTQ1ZTk3ZjY0ZTBhYjU0YjM0ZDYyNDg3NjU3ZWQ3OGJmZjI4ZTliZGRmODBlMzJlNQ==", | |
"debug_data": { | |
"query_data": {} | |
}, | |
"message": "ok", | |
"data": [ | |
{ | |
"domain": "duitang.com", | |
"image_square_size_pixels": { | |
"width": 45, | |
"height": 45 | |
}, | |
"image_medium_url": "http://media-cache-ak0.pinimg.com/200x/6b/cc/a2/6bcca24ea9e7ceb1bb67c66b25a2599d.jpg", | |
"like_count": 7, | |
"image_medium_size_points": { | |
"width": 200, | |
"height": 299 | |
}, | |
"images": { | |
"474x": { | |
"url": "http://media-cache-ak0.pinimg.com/474x/6b/cc/a2/6bcca24ea9e7ceb1bb67c66b25a2599d.jpg", | |
"width": 474, | |
"height": 710 | |
}, | |
"1200x": { | |
"url": "http://media-cache-ak0.pinimg.com/1200x/6b/cc/a2/6bcca24ea9e7ceb1bb67c66b25a2599d.jpg", | |
"width": 510, | |
"height": 764 | |
} | |
}, | |
"id": "237564949063570182", | |
"image_large_size_points": { | |
"width": 510, | |
"height": 764 | |
}, | |
"price_currency": "USD", | |
"pinner": { | |
"username": "shappyshaps", | |
"first_name": "Annie", | |
"last_name": "", | |
"gender": "unspecified", | |
"image_medium_url": "http://media-cache-ec0.pinimg.com/avatars/shappyshaps_1337117106_75.jpg", | |
"full_name": "Annie", | |
"image_small_url": "http://media-cache-ec0.pinimg.com/avatars/shappyshaps_1337117106_30.jpg", | |
"type": "user", | |
"id": "237565086502225562", | |
"image_large_url": "http://media-cache-ec0.pinimg.com/avatars/shappyshaps_1337117106_140.jpg" | |
}, | |
"image_square_size_points": { | |
"width": 45, | |
"height": 45 | |
}, | |
"comment_count": 0, | |
"board": { | |
"category": "womens_fashion", | |
"is_collaborative": false, | |
"layout": "default", | |
"name": "Fierceness", | |
"url": "/shappyshaps/fierceness/", | |
"created_at": "Mon, 09 Jan 2012 23:08:20 +0000", | |
"collaborated_by_me": false, | |
"followed_by_me": false, | |
"type": "board", | |
"id": "237565017782761291", | |
"image_thumbnail_url": "http://media-cache-ec0.pinimg.com/upload/237565017782761291_board_thumbnail_2013-05-15-20-06-15_52138_60.jpg" | |
}, | |
"type": "pin", | |
"image_large_url": "http://media-cache-ak0.pinimg.com/1200x/6b/cc/a2/6bcca24ea9e7ceb1bb67c66b25a2599d.jpg", | |
"image_large_size_pixels": { | |
"width": 510, | |
"height": 764 | |
}, | |
"attribution": null, | |
"description": "Red", | |
"price_value": 0, | |
"is_playable": false, | |
"via_pinner": null, | |
"link": "http://www.duitang.com/people/mblog/11125251/detail/", | |
"is_repin": false, | |
"liked_by_me": false, | |
"is_uploaded": false, | |
"image_square_url": "http://media-cache-ak0.pinimg.com/45x45/6b/cc/a2/6bcca24ea9e7ceb1bb67c66b25a2599d.jpg", | |
"repin_count": 41, | |
"tracked_link": "http://www.duitang.com/people/mblog/11125251/detail/", | |
"created_at": "Wed, 25 Jan 2012 06:06:59 +0000", | |
"image_medium_size_pixels": { | |
"width": 200, | |
"height": 299 | |
}, | |
"promoter": null, | |
"dominant_color": "#610112", | |
"is_video": false | |
}, | |
{ | |
... | |
} | |
... | |
} | |
] | |
} |
Is this still working, I need to pull pins for keywords, or do you need any thing else from where I can use this function
I wonder, if there is an api that doesn't require oAuth and access Key. If I just want to search for pins using developer's key and secret? Is it not possible.
PS:
I wrote this scraper in php for extract the pins from the json found in the pinterest search DOM.
https://gist.github.com/kevincobain2000/f204bdac97939fb38725500579ee56f4
It'd be nice to have something official from pinterest.
Is this still working cause I am getting Authorization failed error even though I am using fresh access token.
stdClass Object ( [status] => failure [message] => Authentication failed. [code] => 2 [data] => [error] => stdClass Object ( [message] => None ) )
26 Jan 2018, Not work
Pinterest still use v1 for their public APIs
I make this to crawl images with search query in Pinterest feed. Check it out.
https://gist.github.com/gearazk/b8d658c00761098aecd8d1a09ea5e9d3
how to get accesstoken/api key to make this url fetch pins