İçindekiler

Getting All Reviews From the Official Google Maps API

Resmi Google places API'si sınırlar the number of reviews you can fetch from it to 5 reviews only. Despite many developers sormak for pagination and sorting parameters since 2015, the limitation still exists. Fortunately, there are some tools you can use from your code to get ratings & reviews in the right way.

The Ultimate Way of Fetching Reviews

ile Outscraper’s API, you can fetch any amount of reviews from any business. You can sort the reviews and paginate over the pages. It’s possible to ignore empty reviews by using the “ignoreEmpty” parameter, and there are many advanced parameters like cutoff, cutoffRating, etc.

Reviews API Examples

Getirmenin temel örneği 20 varsayılan sıralamaya göre incelemeler (en alakalı incelemeler).

				
					# fetch 20 most relevant reviews
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID&reviewsLimit=20&async=false" -H  "X-API-KEY: API_KEY"
				
			

NS sırala parameter might be one of the following: “most_relevant” (default), “en yeni,” “highest_rating,” and “lowest_rating.”

				
					# fetch reviews with highest rating first
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID&reviewsLimit=20&sort=highest_rating&async=false" -H  "X-API-KEY: API_KEY"

# fetch reviews with lowest rating first
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID&reviewsLimit=20&sort=lowest_rating&async=false" -H  "X-API-KEY: API_KEY"

				
			

Ek olarak yorumlarSınır parameter, you can specify cutoffRating. Parametre aşağıdakileri belirtir maksimum for “lowest_rating” or the minimum for “highest_rating” ratings for reviews.

				
					# fetch reviews with 5 and 4 stars ratings only
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID&reviewsLimit=1000&sort=highest_rating&cutoffRating=4&async=false" -H  "X-API-KEY: API_KEY"


				
			

NS kesme parametresi, geçmişte belirli bir tarihe kadar yalnızca en yeni yorumları getirmenize yardımcı olacaktır. Veritabanınızda tüm incelemeler olduğunda ve yalnızca son güncellemenizden bu yana eklenen incelemeleri almak istediğinizde yararlı olabilir.

				
					# fetch reviews till the specific date (cutoff)
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID&reviewsLimit=250&sort=newest&cutoff=1629269269&async=false" -H  "X-API-KEY: API_KEY"
				
			

You can use built-in pagination to fetch many pages of reviews. Use the atlamak API'nin sonuçları döndürmeye başladığı yeri kontrol etmek için parametre.

				
					# page 1, sorted by newest
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID&reviewsLimit=20&sort=newest&async=false" -H  "X-API-KEY: API_KEY"

# page 2, sorted by newest
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID&reviewsLimit=20&sort=newest&skip=20async=false" -H  "X-API-KEY: API_KEY"
				
			

Getirme birçok tek bir istekte incelemeler zaman alabilir. Web sunucusunun zaman aşımı hatası vermesini önlemek için async talepler. Bu şekilde taleplerinizi Outscraper'ye gönderecek ve daha sonra alacaksınız (genellikle 1-3 dakika, depending on the number of reviews) with the İstek Sonuçları uç noktası.

A good practice is sending async requests and checking the results at 15-sec intervals. Check out this Python uygulaması Gerekirse.

				
					# step 1: submit the task and get request id
curl -X GET "https://api.app.outscraper.com/maps/reviews-v2?query=PLACE_ID_1&reviewsLimit=2000&sort=newest&async=true" -H  "X-API-KEY: API_KEY"

# step 2: retrieve the task results later (usually within 1-3 minutes, depends on the amount of reviews)
curl -X GET "https://api.app.outscraper.com/requests/REQUEST_ID"
				
			

Video Eğitimi

SSS

SIKÇA SORULAN SORULAR

Her ne kadar Google, resmi API'si ile getirebileceğiniz inceleme sayısını sınırlasa da Google Haritalar Yorum & Beğeni API'si herhangi bir yerden tüm incelemeleri almak için Outscraper tarafından sağlanmıştır.

Google Places API can be used for Google reviews. But there is only 5 review limit. If you want to download reviews without any limits, you can use an alternative service. Outscraper Google Maps Reviews API is one of these alternative services.

If the reviews you want to get don’t belong to your own Google Maps profile, you won’t be able to get all the reviews. You can get up to 5 reviews from other businesses. But with Outscraper Google Maps Reviews API, you can collect unlimited reviews without this limit.

Google'dan tarayıcılarla veri çekmenin artıları ve eksileri vardır. Kazıyıcıyı kendiniz geliştirebilseniz de, ölçeklendirme sırasında, tarayıcı emülasyonlarını işlemek için büyük miktarda CPU'ya sahip sunucuların kullanılması büyük masraflara yol açabilir. Ayrıca, tarayıcının bakımını yapan ve Google site değişiklikleri sırasında güncelleyen bir kişi olmalıdır.

Kullanarak Outscraper PlatformOutscraper Google Haritalar Yorumları APIveya SDK'lar Outscraper, işletmelerin ve bireylerin proxy'lerle, tarayıcı emülasyonuyla uğraşmadan ve geliştirmeye yatırım yapmadan Google'dan Yorumları Kazımaya başlamaları için en kolay çözümü sunar.


0 Yorum

Bir cevap yazın

Avatar yer tutucu