I want to create a function in Python that verifies a URL is not malicious. I have discovered the Google Safe Browsing API and have tried two specific versions: v4 and v5. V4 works perfectly, but I believe it will be shut down in 2027. When I try to make a GET request using V5 in Python, I am unable to convert the response to JSON. I keep getting a JSON decode error, which is very frustrating for me.
![]()
I do, however, get a status 200.
![]()
Here is what the function looks like
Does anybody know why this is occurring? Should I try hashes.search instead?
I’m completely stuck and am unsure what to do. Any assistance would be very appreciated!
Thanks
