YELP api For Wordpress.
Budget: $10 – $30 USD
Hi i want to build a WP plugin that uses YELP APi for displaying local businesses that dont have a website.
The issue i am having is this:
When i use the API to and search fro business in "Stockholm, Sweden for ex i get a list of businesses. In that response there is "URL" but that is not to the business URL it goes to the Business URL in YELP.
So for ex: Initial search https://www.yelp.com/search?find_desc=stockholm%2C+sweden&find_loc=Stockholm%2C+Stockholms+l%C3%A4n
First hit in list is "Österlånggatan 17"
The URl in that response goes to https://www.yelp.com/biz/%C3%B6sterl%C3%A5nggatan-17-stockholm?osq=stockholm%2C+sweden
The profile page for the business on yelp.
But on that page there is
<a href="/biz_redir?url=http%3A%2F%2Fwww.osterlanggatan17.se&cachebuster=1680692706&website_link_type=website&src_bizid=gMncUz1Mvh87smR0YnQFcw&s=498ebff0f7a9c649b2da1f2e5163bc1807072749e4198fbdbb52aa42f3c06d2a" class="css-1um3nx" target="_blank" rel="noopener nofollow" role="link">http://www.osterlanggatan17.se</a>
And that is what i want to check.
So now we see that Österlånggatan 17 has a website. So i dont want to echo that. I just want to display business from a city that have no websites.
I have some sample code that kind of makes it work but there is some issues in the code. So i need someone to look at my code and get it to work.
The issue i am having is this:
When i use the API to and search fro business in "Stockholm, Sweden for ex i get a list of businesses. In that response there is "URL" but that is not to the business URL it goes to the Business URL in YELP.
So for ex: Initial search https://www.yelp.com/search?find_desc=stockholm%2C+sweden&find_loc=Stockholm%2C+Stockholms+l%C3%A4n
First hit in list is "Österlånggatan 17"
The URl in that response goes to https://www.yelp.com/biz/%C3%B6sterl%C3%A5nggatan-17-stockholm?osq=stockholm%2C+sweden
The profile page for the business on yelp.
But on that page there is
<a href="/biz_redir?url=http%3A%2F%2Fwww.osterlanggatan17.se&cachebuster=1680692706&website_link_type=website&src_bizid=gMncUz1Mvh87smR0YnQFcw&s=498ebff0f7a9c649b2da1f2e5163bc1807072749e4198fbdbb52aa42f3c06d2a" class="css-1um3nx" target="_blank" rel="noopener nofollow" role="link">http://www.osterlanggatan17.se</a>
And that is what i want to check.
So now we see that Österlånggatan 17 has a website. So i dont want to echo that. I just want to display business from a city that have no websites.
I have some sample code that kind of makes it work but there is some issues in the code. So i need someone to look at my code and get it to work.