Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Having just checked the YouTube Data API reference documentation, for both JSON and the newer JSON-C formats, they both accept JSON-P, allowing you to specify the callback by the <code>callback</code> GET string parameter. This link will demonstrate that this is true:</p> <p><a href="https://gdata.youtube.com/feeds/api/videos?q=baseball&amp;v=2&amp;alt=jsonc&amp;callback=functionName" rel="nofollow">https://gdata.youtube.com/feeds/api/videos?q=baseball&amp;v=2&amp;alt=jsonc&amp;callback=functionName</a></p> <p>The long JSON object return is wrapped in the function call to <code>functionName</code>, in this case. The next URL is the same call, but in the older (and somewhat deprecated) JSON format:</p> <p><a href="https://gdata.youtube.com/feeds/api/videos?q=baseball&amp;v=2&amp;alt=json&amp;callback=functionName" rel="nofollow">https://gdata.youtube.com/feeds/api/videos?q=baseball&amp;v=2&amp;alt=json&amp;callback=functionName</a></p> <p>The data is a bit different, but same result set, wrapped in another call to <code>functionName</code>. Now, these calls were queries to get the videos that matched the search param ("baseball"). But I'm sure perusing their reference documents (for the <a href="https://developers.google.com/youtube/2.0/developers_guide_jsonc" rel="nofollow">JSON-C</a> and <a href="https://developers.google.com/youtube/2.0/developers_guide_json" rel="nofollow">JSON</a> formats) will yield what you need to make this work properly, as a JSONP call, specifying the callback in the query string.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload