Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7790003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:27:31+00:00 2026-06-01T21:27:31+00:00

I’m using the api @ api.foursquare.com/v2/users/USER_ID/checkins referenced here developer.foursquare.com/docs/users/checkins I am creating the request

  • 0

I’m using the api @ api.foursquare.com/v2/users/USER_ID/checkins referenced here developer.foursquare.com/docs/users/checkins
I am creating the request using vb.net but that’s probably irrelevant. The issue I am having is that the response I receive seems to ignore the beforeTimeStamp value.

For example I have created a request url of this; (oauth_token masked – but is correct and works)
https://api.foursquare.com/v2/users/self/checkins?oauth_token=####&v=20120214&limit=250&offset=0&afterTimestamp=1332720000&beforeTimestamp=1333238400
1332720000 is the Epoch date 26-03-2012 and 1333238400 is 01-04-2012
I would expect this to return all the checkins between those dates. However it always returns all checkins up to the most recent one, i.e. today 11/04/2012. I spent last night searching for answers to this and I am no further forward.

I could go ahead and write a paging method to move around the history log until I have just the ones I need. This would create multiple requests though.
I even wrote a simple function to strip out checkins that were out of range once I had the objects back. However this seems wasteful, especially as the application I am writing has the potential to go back years in a users history. This would mean returning way more data than required, creating an unneccesary overhead.
After all the searching I was just about resigned to doing one of the 2 workarounds above when I stumbled on the Foursquare API console at https://apigee.com/
If you have read this far, this is the main thrust of this question (unless anyone knows what I am doing wrong…)
If I create a request using the apigee.com interface with the settings above, the response body only contains the checkins I need, i.e. the ones between the specified dates! If I use my app, it returns them all!
My URL /v2/users/self/checkins?oauth_token=####&v=20120214&limit=250&offset=0&afterTimestamp=1332720000&beforeTimestamp=1333238400
Apigee’s URL (in the request box after execution)
/v2/users/self/checkins?oauth_token=####&v=20120214&limit=250&offset=0&afterTimestamp=1332720000&beforeTimeStamp=1333238400

Spot the difference? Neither can I! Anyone have any ideas?
Many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:27:32+00:00Added an answer on June 1, 2026 at 9:27 pm

    I think you have a typo in your URL. beforeTimeStamp should be beforeTimestamp. That’s why your second URL is not working. It further seems you mixed up Apigee’s URL and your URL in your post.

    Retrieving yesterday’s checkins works for me as expected:

    https://api.foursquare.com/v2/users/self/checkins?oauth_token=###&v=20120321&afterTimestamp=1334120400&beforeTimestamp=1334206799

    Also no problem with the API version from 20120214. Also your URLs are working for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.