목차

Getting All Reviews From the Official Google Maps API

공식 Google Places API 제한 the number of reviews you can fetch from it to 5 reviews only. Despite many developers 질문 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

와 함께 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

가져오기의 기본 예 20 기본 정렬에 따른 리뷰(가장 관련성이 높은 리뷰).

				
					# 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 종류 parameter might be one of the following: “가장 관련 있는” (default), “최신,” “최고 등급,” and “최저 등급.”

				
					# 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"

				
			

여기에 덧붙여 리뷰한계 parameter, you can specify cutoff등급. 매개변수는 다음을 지정합니다. 최고 for “lowest_rating” or the 최저한의 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 끊다 매개변수는 과거의 특정 날짜까지 최신 리뷰만 가져오는 데 도움이 됩니다. 데이터베이스에 모든 리뷰가 있고 마지막 업데이트 이후에 추가된 리뷰만 가져오려는 경우에 유용할 수 있습니다.

				
					# 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 건너 뛰기 API가 결과를 반환하기 시작하는 위치를 제어하는 매개변수입니다.

				
					# 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"
				
			

가져오기 많은 한 번의 요청으로 검토하는 데 시간이 걸릴 수 있습니다. 웹서버의 타임아웃 오류를 방지하기 위해 다음을 사용하는 것을 권장합니다. 비동기 요청. 이렇게 하면 Outscraper에 요청을 제출하고 나중에 검색할 수 있습니다(일반적으로 1-3분, depending on the number of reviews) with the 요청 결과 엔드포인트.

A good practice is sending async requests and checking the results at 15-sec intervals. Check out this 파이썬 구현 필요하다면.

				
					# 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"
				
			

비디오 튜토리얼

자주하는 질문

가장 자주 묻는 질문과 답변

Although, Google limits the amount of reviews you can fetch with it’s official API, you can use Google 지도 검토 API provided by Outscraper to get all the reviews from any places.

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에서 데이터를 추출하는 데는 장단점이 있습니다. 스크레이퍼를 직접 개발할 수 있지만, 확장 시 브라우저 에뮬레이션을 처리하기 위해 막대한 양의 CPU가 탑재된 서버를 사용해야 하므로 비용이 많이 들 수 있습니다. 또한 크롤러를 유지 관리하고 Google 사이트 변경 시 업데이트하는 담당자가 있어야 합니다.

사용하여 Outscraper 플랫폼API또는 SDK Outscraper는 기업과 개인이 프록시, 브라우저 에뮬레이션, 개발 투자 없이도 Google에서 리뷰 스크래핑을 시작할 수 있는 가장 쉬운 솔루션을 제공합니다.

카테고리: API

0 댓글

답글 남기기

아바타 자리 표시자