title: Instagram API /tags/{tag-name}/media/recent changed behaviour
body: <p>I worked several times with this endpoint and it seems that since this week when I pass a max_id value an error is thrown, it says:</p>
  
  <pre><code>{
      "meta":  {
          "error_type": "APIInvalidParametersError",
          "code": 400,
          "error_message": "max_id must not be a media id."
      }
  }
  </code></pre>
  
  <p>I have no idea where to find if api has changed behaviour or simply it's broken. <br>Guys, do you have any idea?</p>
  
  <p>Another error that I've found is the order of returned Medias when I query this endpoint. Here's a sample data:</p>
  
  <pre><code>#sample error
  [
      Media: 1220853576116214570_1383882821
      Media: 1220853572180739674_233961632
      Media: 1220853571106323542_44255974
      Media: 1220853327487332588_16383867
      Media: 1220853529276039536_37204591
      Media: 1220853517236612185_1342227858
      Media: 1220853478513480317_596571
      Media: 1220853329006327307_299159508
      Media: 1220853296836482014_1829274963
      Media: 1220853282356978078_1498664215
      Media: 1220853191933038656_528166155
      Media: 1220481246711237359_211289081  #MEDIA INCORRECT ORDER
      Media: 1220853144521663282_3026017167
      Media: 1220853127735637950_619046756
      Media: 1220853103550902683_2074401387
      Media: 1220853106444172011_3020165605
      Media: 1220449359646948005_208916789  #MEDIA INCORRECT ORDER
      Media: 1220853071011680880_596571
      Media: 1220852985861033044_446238634
      Media: 1220852995848611111_3098675456
      Media: 1220852944343050919_1126655937
      Media: 1220852926209616200_327453609
      Media: 1220852902671104371_351483533
      Media: 1220852898165133786_207127275
      Media: 1220852887618705294_1736270372
      Media: 1220852850174855566_1133338201
      Media: 1220852831895483805_30557620
      Media: 1220851564341433250_1460935835
      Media: 1220852721064734213_14247170
      Media: 1220852681564341476_1329013696
      Media: 1220852647186623946_2143587522
      Media: 1220852634988856098_6331807
      Media: 1220852621030972511_530287550
  ]
  </code></pre>
  
  <p><b>Edit</b>: I've just checked that python instagram's client has been deprecated 9 days ago, and there's a lot of stackoverflow questions about api behaviour's from 23-march. A lot of coincidences</p>
  
  <p>
  <li><a href="https://stackoverflow.com/questions/36166770/instagram-v1-tags-tag-name-media-recent-endpoint-doesnt-return-min-tag-id-i">Instagram /v1/tags/{tag-name}/media/recent endpoint doesn&#39;t return min_tag_id in pagination block</a></li>
  <li><a href="https://stackoverflow.com/questions/36328189/error-400-bad-request-while-fetching-json-data-from-instagram-api-via-coldfusio">Error 400: Bad request while fetching json data from instagram api via coldfusion</a></li>
  <li><a href="https://stackoverflow.com/questions/36416427/api-tags-endpoint-error-min-id-is-not-a-valid-cursor-for-this-tag">API Tags endpoint error - min_id is not a valid cursor for this tag</a></li>
  
  <br><br>
  <b>Edit 2:</b> count parameter can't be greater than 33, omitted otherwise. In another words, max records per page number is 33
  <br><br>
  <b>Edit 3:</b> Python client's broken since 1st of June due another undocumented behaviour change
  <br></p>
  
  <pre><code>  File "/usr/local/lib/python2.7/dist-packages/instagram/bind.py", line 194, in _call
      return method.execute()
    File "/usr/local/lib/python2.7/dist-packages/instagram/bind.py", line 186, in execute
      content, next = self._do_api_request(url, method, body, headers)
    File "/usr/local/lib/python2.7/dist-packages/instagram/bind.py", line 148, in _do_api_request
      obj = self.root_class.object_from_dictionary(entry)
    File "/usr/local/lib/python2.7/dist-packages/instagram/models.py", line 88, in object_from_dictionary
      for comment in entry['comments']['data']:
  KeyError: 'data'
  </code></pre>
  
  <p><br>
  <b>Edit 3 solved <a href="https://github.com/filepicker/python-instagram/commit/f8d6a6f2f73e46110175f293bff99f0c654e9473" rel="nofollow noreferrer">here</a></b></p>