title: Youtube Data API v3 search query with Freebase topics id and date
body: <p>I am trying to use the YouTube Data API to search video by using Freebase topics.
  It works for a simple search with one topic but it doesn't work for a search with 2 parameters : a topic id and a "publishedAfter" date.</p>
  
  <p>For example, to search for videos about Richard Branson (Freebase id = /m/0n839), the youtube data api site :
  <a href="https://developers.google.com/youtube/v3/docs/search/list#try-it" rel="nofollow">https://developers.google.com/youtube/v3/docs/search/list#try-it</a>
  with the parameters :</p>
  
  <p>part : snippet</p>
  
  <p>topicId : /m/0n839</p>
  
  <p>show a result of 2165 videos</p>
  
  <p>But when you try to search videos about id = /m/0n839 with </p>
  
  <p>part : snippet</p>
  
  <p>topicId : /m/0n839</p>
  
  <p>publishedAfter : 2013-05-21T21:47:38Z</p>
  
  <p>the response indicates 147 videos but only 3 videos are contained in the response.
  In the response, you can see that the 3 video ids are J6PY5vxLU8Y, SCkFwpW3kiE, CBvDp0i8Iok.</p>
  
  <pre><code>{
   "kind": "youtube#searchListResponse",
   "etag": "\"g-RLCMLrfPIk8n3AxYYPPliWWoo/_-rYO0M0nvpPO6QN7DPFGEYa9ho\"",
   "pageInfo": {
       "totalResults": 147,
       "resultsPerPage": 5
       },
   "nextPageToken": "CAUQAA",
   "items": [
       {
       "kind": "youtube#searchResult",
       "etag": "\"g-RLCMLrfPIk8n3AxYYPPliWWoo/3nxQ-ejnv0qekcbyq09HD2RQt_w\"",
       "id": {
           "kind": "youtube#video",
           "videoId": "J6PY5vxLU8Y"
       },
       "snippet": {
           "publishedAt": "2013-05-22T09:58:34.000Z",
           "channelId": "UCimPiDCqxvfqwVJltL4YzHg",
           "title": "Bono, Richard Branson, and Olivia Wilde Joined Matt Damon's Strike!",
           "description": "Support the strike: http://strikewithme.org/ Millions of celebrities have joined Matt Damon's \"Toilet Strike\" protesting the lack of access to safe water and...",
           "thumbnails": {
               "default": {
                   "url": "https://i.ytimg.com/vi/J6PY5vxLU8Y/default.jpg"
                   },
               "medium": {
                   "url": "https://i.ytimg.com/vi/J6PY5vxLU8Y/mqdefault.jpg"
                   },
               "high": {
                   "url": "https://i.ytimg.com/vi/J6PY5vxLU8Y/hqdefault.jpg"
                   }
               },
           "channelTitle": "water"
      }
  },
  {
   "kind": "youtube#searchResult",
   "etag": "\"g-RLCMLrfPIk8n3AxYYPPliWWoo/gNslTbFkShGLlUBcXgHw7q9tuJc\"",
   "id": {
       "kind": "youtube#video",
       "videoId": "SCkFwpW3kiE"
       },
   "snippet": {
       "publishedAt": "2013-05-23T16:27:31.000Z",
       "channelId": "UCeF4WiRKOA4XzphWYzR9aVw",
       "title": "Sir Richard Branson dresses as an air stewardess after losing bet",
       "description": "(Reuters) - A man was arrested at the Cannes film festival on Friday after firing a starting pistol during a live TV broadcast on the palm-lined waterfront, ...",
       "thumbnails": {
           "default": {
               "url": "https://i.ytimg.com/vi/SCkFwpW3kiE/default.jpg"
               },
           "medium": {
               "url": "https://i.ytimg.com/vi/SCkFwpW3kiE/mqdefault.jpg"
               },
           "high": {
               "url": "https://i.ytimg.com/vi/SCkFwpW3kiE/hqdefault.jpg"
               }
           },
       "channelTitle": "TheDailyPolitics247"
       }
  },
  {
   "kind": "youtube#searchResult",
   "etag": "\"g-RLCMLrfPIk8n3AxYYPPliWWoo/-_OEOHhzgCBTLr7x5UoDk2kHlJM\"",
   "id": {
       "kind": "youtube#video",
       "videoId": "CBvDp0i8Iok"
       },
   "snippet": {
       "publishedAt": "2013-05-25T22:38:00.000Z",
       "channelId": "UC2j75rAKcfjBAhW7WmNY4Qg",
       "title": "Virgin Galactic Spaceship Passes Big Test (Y)",
       "description": "A spaceship bankrolled by British tycoon Sir Richard Branson made its first engine-powered flight Monday. The test flight moves Virgin Galactic toward its go...",
       "thumbnails": {
       "default": {
           "url": "https://i.ytimg.com/vi/CBvDp0i8Iok/default.jpg"
           },
       "medium": {
           "url": "https://i.ytimg.com/vi/CBvDp0i8Iok/mqdefault.jpg"
           },
       "high": {
           "url": "https://i.ytimg.com/vi/CBvDp0i8Iok/hqdefault.jpg"
       }
   },
  "channelTitle": "NewActionNews"
  }
  }
  ]
  }
  </code></pre>
  
  <p>If you search for the next videos with nextPageToken : "CAUQAA", the response contains the same video ids (J6PY5vxLU8Y, SCkFwpW3kiE, CBvDp0i8Iok):</p>
  
  <pre><code>{
   "kind": "youtube#searchListResponse",
   "etag": "\"g-RLCMLrfPIk8n3AxYYPPliWWoo/xMtmG2pQsuo_TFF8AtaaPea-cNc\"",
   "pageInfo": {
       "totalResults": 144,
       "resultsPerPage": 5
       },
   "nextPageToken": "CAoQAA",
   "prevPageToken": "CAUQAQ",
   "items": [
       {
        "kind": "youtube#searchResult",
        "etag": "\"g-RLCMLrfPIk8n3AxYYPPliWWoo/3nxQ-ejnv0qekcbyq09HD2RQt_w\"",
        "id": {
         "kind": "youtube#video",
         "videoId": "J6PY5vxLU8Y"
         },
        "snippet": {
        "publishedAt": "2013-05-22T09:58:34.000Z",
        "channelId": "UCimPiDCqxvfqwVJltL4YzHg",
        "title": "Bono, Richard Branson, and Olivia Wilde Joined Matt Damon's Strike!",
        "description": "Support the strike: http://strikewithme.org/ Millions of celebrities have joined Matt Damon's \"Toilet Strike\" protesting the lack of access to safe water and...",
        "thumbnails": {
            "default": {
              "url": "https://i.ytimg.com/vi/J6PY5vxLU8Y/default.jpg"
              },
            "medium": {
              "url": "https://i.ytimg.com/vi/J6PY5vxLU8Y/mqdefault.jpg"
              },
            "high": {
              "url": "https://i.ytimg.com/vi/J6PY5vxLU8Y/hqdefault.jpg"
              }
            },
        "channelTitle": "water"
      }
  },
  {
   "kind": "youtube#searchResult",
   "etag": "\"g-RLCMLrfPIk8n3AxYYPPliWWoo/cEIRgKqwt1aa9hcWMNtGTiCJImc\"",
   "id": {
      "kind": "youtube#video",
      "videoId": "h7hJ3FDGWY8"
      },
   "snippet": {
      "publishedAt": "2013-05-22T10:01:25.000Z",
      "channelId": "UCqcE1T9zcUQyX3hHH4EM7sQ",
      "title": "Sir Richard Branson in Dubai",
      "description": "The man behind the Virgin brand stopped by Kris Fade's show last week - broadcasting from the Burj Khalifa, the world's tallest building.",
      "thumbnails": {
        "default": {
          "url": "https://i.ytimg.com/vi/h7hJ3FDGWY8/default.jpg"
          },
        "medium": {
          "url": "https://i.ytimg.com/vi/h7hJ3FDGWY8/mqdefault.jpg"
          },
        "high": {
          "url": "https://i.ytimg.com/vi/h7hJ3FDGWY8/hqdefault.jpg"
          }
        },
      "channelTitle": "Kimberleyleonard"
     }
   }
  ]
  </code></pre>
  
  <p>}</p>
  
  <p>Did I do something wrong ?</p>