Safe Browsing API usage

Skip to first unread message

Yevhenii Korniienko

unread,
May 6, 2026, 5:36:17 AMMay 6
to Google Safe Browsing API
Hello everyone!
Straight to the point: I was trying to implement Google Safe Browsing url check for my anti-phishing project using corresponding API but I have reached a dead end at this point. The problem is that I can`t properly decode gRPC response so I can process it in my script. Everything started from just an attempt to decode v5alpha1 responses to urls:search requests with locally compiled _pb2 files from .proto files from official github page. But I kept getting the same error "google.protobuf.message.DecodeError: Error parsing message with type 'google.security.safebrowsing.v5alpha1.SearchHashesResponse'". So I have decided to try hash:search requests and to my surprise everything worked fine but only for testing hash that is provided as example in the documentation. When I created a new function to hash my urls to acceptable 4-byte format I started getting only empty responses which could signal towards two possible outcomes: either my algorithm is incorrect and obviously API cant find anything for this hash or there is no info about this url in general. But when I try these urls from PhishTank in this site "https://transparencyreport.google.com/safe-browsing/search" it correctly flags my urls as malicious. So the issue is probably in my algorithm.
And here I am stuck with malfunctioning decoder and broken algorithm.
So the question is, did anybody encounter this "google.protobuf.message.DecodeError: Error parsing message with type 'google.security.safebrowsing.v5.SearchHashesResponse'" error or is there somewhere an example of hashing algorithm to prepare urls for hash:search requests?

mustafa bulut

unread,
May 18, 2026, 5:32:31 AM (12 days ago) May 18
to Google Safe Browsing API
Hello Yevhenii,

We can collaborate. How many minutes does it take you to provide a red alert screen? Can you provide this service? We will send you the phishing websites; you only need to provide the red alert screen. Could you please provide a price per brand or per unit? Can you provide red alert screens for all phishing websites, and how many minutes does it take? You can reach me through my contact information.

Telegram @Antiphishingservice
Whatsap  +66 95 346 8716

6 Mayıs 2026 Çarşamba tarihinde saat 12:36:17 UTC+3 itibarıyla Yevhenii Korniienko şunları yazdı:
Reply all
Reply to author
Forward
0 new messages