title: Instagram tag search - filter for images and tags after a certain time or id
body: <p>I am using the Instagram API to fetch a list of photos tagged with a certain hashtag. I've got a real-time subscription set up so it will notify me whenever new photos have been posted. However, I have to fetch the new results myself.</p>
  
  <p>My problem: When I request the list of recently tagged photos, I get a large list and I don't want to process all of the results in the recent list every time I do this. The api docs say I can pass these optional parameters, but they seem counter-intuitive. They seem to be the opposite of what I would expect:</p>
  
  <pre><code>MIN_ID  Return media before this min_id.
  MAX_ID  Return media after this max_id.
  </code></pre>
  
  <p>If I keep track of the most recent media id I've seen in my recent requests, how do I construct my next request to only return results newer than that id?</p>
  
  <p>I've posted two photos with a test hashtag. When I use the following url (with my real access_token in it), I get back a json response listing both of those photos:</p>
  
  <pre><code>https://api.instagram.com/v1/tags/weirdtest/media/recent?access_token=xxx
  </code></pre>
  
  <p>The two photos have these ids:</p>
  
  <pre><code>221201236060507271_179249322
  221190263853517857_179249322
  </code></pre>
  
  <p>How do I construct a query that returns only the newer of those two photos?</p>