php-pinterest-bot
php-pinterest-bot copied to clipboard
API changed on Pinner Search!
Hey guys,
Today, I noticed that Pinterest has some changes on their API. When I am trying to search pinner on pinterest I was get the error below:
[ [ "messages" => [ "Sorry! Our search is a little overwhelmed right now. Please try again later. You can <a href='/categories'>explore Pinterest by category</a>.", ], "theme" => "default", ], false, [], false, ]
When I follow the footprints of pinterest endpoints, I discovered that they changed the searchScope parameter for the searching pinners as users
instead of people
. I sent PR waiting an approve from @seregazhuk
+1 This issue must be fixed!
Array ( [messages] => Array ( [0] => To search Pinterest, please sign up or log in. )
[theme] => default
)
I've created a pull request about it. Waiting for approval. But, you have different error than I faced. Your issue may something different. Do you use limit and offset functions? If yes, Could you provide them?
I've tried your changes unfortunately it didn't worked for me. my usage:
foreach ($bot->pins->search($kelimerows['kelime'])->take(1)->skip($kelimerows['skip_id'])->get() as $pin)
could you please check $kelimerows['skip_id'] value
it's interval like 5
Have you ever tried with different ip? Nowadays, pinterest has some minor changes on their API
No but my code works sometimes I've made 30 requests 1 succeeded but I never know when it works or how.
If you sure, you have a valid query parameter on search and pages exists. It might possibly a issue about ip. Possibbly, Pinterest could show you an alert for it.
I'll check it with proxy
Yes, my issue is ip thank you. Proxy fixed my problem