You need to get sessionId
and requestId
from HTML code and next request this URL:
f"https://www.healthgrades.com/api3/usearch?where=CA&sessionId={sessionId}&requestId={requestId}&sort.provider=bestmatch&source=init&what=Acupuncture&category=provider&cid&debug=false&debugParams=false&isPsr=false&isFsr=false&isFirstRequest=true&pageNum=1&userLocalTime=23%3A55"
After to you parse JSON response you’ll find ["search"]["totalPages"]
(and ["search"]["totalCount"]
) values.