number of URLs in the list

52 views
Skip to first unread message

cosaturn

unread,
Jan 6, 2012, 11:32:17 PM1/6/12
to Google Safe Browsing API
Hello everyone,

Is it possible to count the number of URLs in the list?

Patrick Kelley

unread,
Jan 10, 2012, 1:49:10 PM1/10/12
to google-safe-...@googlegroups.com, Google Safe Browsing API
This was very easy in the v1 API. It's not as straight forward in v2.

You could estimate the number by counting the number of prefixes and hostkey entries and subtracting those that are also in a sub chunks.

I'm not sure how accurate the count would be. You would have to post each prefix to Google and count the number of full hashes returned to get a more accurate count. This would undoubtedly be considered abuse of the API however.

Sent from my iPhone

On Jan 6, 2012, at 9:32 PM, cosaturn <cosa...@gmail.com> wrote:

> Hello everyone,
>
> Is it possible to count the number of URLs in the list?
>

> --
> You received this message because you are subscribed to the Google Groups "Google Safe Browsing API" group.
> To post to this group, send email to google-safe-...@googlegroups.com.
> To unsubscribe from this group, send email to google-safe-browsi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-safe-browsing-api?hl=en.
>

cosaturn

unread,
Jan 12, 2012, 3:51:49 AM1/12/12
to Google Safe Browsing API
Thank you Patrick!

On Jan 11, 2:49 am, Patrick Kelley <peanutbutterkrac...@gmail.com>
wrote:
> This was very easy in the v1 API.  It's not as straight forward in v2.
>
> You could estimate the number by counting the number of prefixes and hostkey entries and subtracting those that are also in a sub chunks.
>
> I'm not sure how accurate the count would be. You would have to post each prefix to Google and count the number of full hashes returned to get a more accurate count.  This would undoubtedly be considered abuse of the API however.
>
> Sent from my iPhone
>
Reply all
Reply to author
Forward
0 new messages