Thursday, December 29, 2011

Re: [YouTube-API] Entirely numerical video id?

I haven't ever seen any that are all numerical - but I would be very
surprised if they don't exist.

Assuming ids can take characters in:
0-9, A-Z, a-z, _, -

(i.e. 10 numerical characters, 52 alphabetical characters, and two other
characters giving a base-64 representation)

... then the probability of finding an 11-character video id without
only numerical characters is (10/64)^11 - or 0.000000001.

i.e. One in every thousand million youtube videos would have a purely
numerical id (or one in every American "billion" if you're in the US)

Tim

On Wed, 2011-12-28 at 11:22 -0800, mikecosentino wrote:
> I'm looking into finding an easy way to differentiate between YouTube
> and Vimeo videoIDs.
> It seems that all Vimeo IDs are entirely numerical and YouTube's are a
> mixture of numbers, letters, and punctuation.
>
>
> I can't seem to find any documentation saying whether this is the case
> or if I have just not seen an entirely numerical YouTube ID.
>
>
> Does anyone know whether this is true or not?
> Thank you
>
> --
> You received this message because you are subscribed to the Google
> Groups "YouTube APIs Developer Forum" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/youtube-api-gdata/-/5lX1OST7D0UJ.
> To post to this group, send email to
> youtube-api-gdata@googlegroups.com.
> To unsubscribe from this group, send email to youtube-api-gdata
> +unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/youtube-api-gdata?hl=en.


--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment