Requirements
- Install jq: http://stedolan.github.com/jq/download/
- I've tested this on a Mac, but it should work on any *nix that has bash and curl.
Get an Instagram access token
- The easiest way to get on may be making a request via the API console: http://instagram.com/developer/api-console/
- Under 'Authentication', choose OAuth 2 and follow the instructions.
- Choose any request and hit the red 'Send' button.
- Under 'Request' on the left, you should be able to find your access token, if you look closely. It looks a little like this: 123456789.1a2b3c4.1234567890abcdef1234567890abcdef
Get your instagram user ID
- Use this tool: http://jelled.com/instagram/lookup-user-id
Download your pictures
Now you're all set. Open your Terminal.app and paste in this, all on one line, replacing YOUR_ACCESS_TOKEN with your Instagram access token, and YOUR_USER_ID with your number Instagram user ID:
for url in `curl -s 'https://api.instagram.com/v1/users/YOUR_USER_ID/media/recent?count=500&access_token=YOUR_ACCESS_TOKEN' | jq '.data[] | {url: .images.standard_resolution.url}.url' | sed 's/"//g' `; do curl -O $url; done
The pictures will end up in your home directory.