Youtube v3

免费增值
通过 ytdlfree | 已更新 23 days ago | Data
人气

9.9 / 10

延迟

384ms

服务等级

100%

Health Check

93%

返回所有讨论

YouTube Search endpoint returns illegal response

Rapid account: Mtaji
mtaji
2 months ago

Hi.

It appears that the Search endpoint is currently returning an incorrect response.
I am currently noticing the following

  1. The value of nextPageToken is different than before and the string length is obviously longer than before.
  2. The number of responses is always 20, even if I specify a value for the request parameter maxResults
  3. The response data snippet.publishedAt and sunippet.publishedTime are NULL.

A sample request to reproduce, for example

example request

curl -X GET \
	-H 'X-RapidAPI-Host: youtube-v31.p.rapidapi.com' \
	-H 'X-RapidAPI-Key: <my-api-key>' \
"https://youtube-v31.p.rapidapi.com/search?q=splatoon&part=id%2Csnippet&regionCode=JP&maxResults=50&order=relevance&type=video&safeSearch=strict&relevanceLanguage=ja"

example response

{
  "kind": "youtube#searchListResponse",
  "nextPageToken": "EqMDEghzcGxhdG9vbhqWA0VnSVFBVWdVZ2dFTGFIUXhVVXB0UkU5UE5VR0NBUXRvV0ZSS2FUZERiR3B4T0lJQkMzVjVWbk5PTlVOdlZWcGpnZ0VMVDJGZmIzaFZXWGRIU0hlQ0FRc3hjRU5wUVVJMFIwVnlOSUlCQ3pWTU1XUmtUV2REWmtGamdnRUxiWFZRT0hWUmVtWkhNMnVDQVF0SlpuVnZkamR0Vm5OSmM0SUJDMGxGTFZWMmFrcFROa1ZyZ2dFTFJYSXRNRTFpUm5Ka1JrV0NBUXRQTUhCNlZVWlBRa2hIUllJQkMxTmhSblV0U1dwa09GVjNnZ0VMZHpKT2NsTnpkRk5tTVRDQ0FRdHVka3QzVEZsdmFucHZTWUlCQzBKZmVqUjNOQzB0WmpaVmdnRUxlV05zY1dwS2RETnFOSGVDQVFzNVRXOTZkV1o0VkhKaU9JSUJDM293VFZwb0xXTlZUbWxCZ2dFTGVITndWMHRuYkdGclZVR0NBUXRCTmxCclFsUlZZV0YzUmJJQkJnb0VDQmNRQXVvQkJBZ0NFREUlM0QYgeDoGCILc2VhcmNoLWZlZWQ%3D",
  "pageInfo": {
    "totalResults": "17798595",
    "resultsPerPage": 20
  },
  "items": [
    {
      "kind": "youtube#searchResult",
      "id": {
        "kind": "youtube#video",
        "videoId": "ht1QJmDOO5A"
      },
      "snippet": {
        "publishedAt": null,
        "channelId": "UCQpM2gEorPnwhWvEwEDvTVQ",
        "title": "Out of ink | Splatoon Animation",
        "description": "VeeMo! When you out of ink on the opponents base (Sorry for loud noise sound effect on ink, during limited sound effect) Every ...",
        "thumbnails": {
          "default": {
            "url": "https://i.ytimg.com/vi/ht1QJmDOO5A/default.jpg",
            "width": 120,
            "height": 90
          },
          "medium": {
            "url": "https://i.ytimg.com/vi/ht1QJmDOO5A/mqdefault.jpg",
            "width": 320,
            "height": 180
          },
          "high": {
            "url": "https://i.ytimg.com/vi/ht1QJmDOO5A/hqdefault.jpg",
            "width": 480,
            "height": 360
          },
          "standard": {
            "url": "https://i.ytimg.com/vi/ht1QJmDOO5A/sddefault.jpg",
            "width": 640,
            "height": 480
          },
          "maxres": {
            "url": "https://i.ytimg.com/vi/ht1QJmDOO5A/maxresdefault.jpg",
            "width": 1280,
            "height": 720
          }
        },
        "channelTitle": "Ecylvion",
        "liveBroadcastContent": "none",
        "publishTime": null
      }
    },
...

Please check it.

Rapid account: Ytdlfree
ytdlfree Commented 2 months ago

Fixed.

Rapid account: Chhayadas
chhayadas Commented 2 months ago

Noticing the same case of illegal response

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论