Skip to content

Instantly share code, notes, and snippets.

@adnasa adnasa/
Last active Mar 6, 2016

What would you like to do?
Cleaned up eye doc

#EyeEm API

Introduction | API Documentation | Basics | OAuth | Request Headers | Pagination | Images and Image Resolution | Contact


The EyeEm Public API is read-only by default, and covers the complete EyeEm functionality. We do offer write access on a case-by-case basis. We use the API ourselves for our mobile apps, and are actively developing and improving it. The API is currently in version 2.2.0. We are working on v3 and expect to release that soon.

You can register an app by going to Your apps on EyeEm.

##API Documentation




Our API is RESTful, which means that requests are defined using the HTTP verbs GET, PUT, DELETE and POST.

To play around with the api calls, hop over to APIGee:

All API calls are SSL encrypted, and the API responses are in JSON. The base API url is

  • content encoding: you SHOULD be able to handle gzip and set the Accept-Encoding: gzip HTTP header
  • content types:
    • requests: application/x-www-form-urlencoded or application/json
    • responses: application/json or image/*
  • string encoding: you MUST use utf-8 everywhere
  • date and time encoding:
  • error handling:
    • error codes: HTTP status codes
    • error payload: {"message":"...some human readable error message..."}
  • Here's the order and type of error codes returned by the API.

If you have any issues or any suggestions, please do not hesitate to get in touch.

A basic request using curl can look like this:

$ curl

  "user": {
    "id": "1013",
    "fullname": "ramz",
    "nickname": "ramz",
    "thumbUrl": "",
    "description": "EyeEm Ramz. EyeEm Happy! Srsly. Choo choo!!",
    "photoUrl": "",
    "totalPhotos": 1040,
    "totalFollowers": 282,
    "totalFriends": 477,
    "totalLikedAlbums": 43


To authenticated requests, we use OAuth2, and we try to comply to the [latest draft] ( Access Tokens do not expire, at the moment, however, that may also change, and we may start sending refresh_token and an expires parameter with the access_token.

For the time being, you may pass a client_id parameter, or an X-Client-Id header instead of an access_token to most public GET. That is subject to change.

After your registered app is approved, you can use your client_id and client_secret to generate access tokens. Here's the OAuth2 authentication process:

1) Authorization code:

First, point the browser to The user is prompted to allow/deny access to your app. If they allow access, EyeEm will redirect to the provided url with an authorization code otherwise, the user is redirected with an error message

2) Access token:

From your backend call curl -X POST ""

The answer will look like:


For now, EyeEm API access_tokens do not expire, that may change in the future.

3) Making Authenticated Request:

To make authenticated requests you provide your access token as credentials. You should send it as a header: Authorization: Bearer 2b9b0ef6065e60f3cc81646f3a7622af68295afb however, for the time being, it's also possible to send it as a URL query param: $ curl

That's all you need to authenticate with EyeEm.

##Request Headers

In addition to your access token, the EyeEm API accepts the following headers (not required)

  • X-Client-Id: Your app's client_id can be provided instead of an access_token. This is valid for any public GET calls, but is subject to change, and therefore not recommended.
  • X-Api-Version: the current API version is 2.2.0, the default is 2.0.0. As indicated on the specific endpoints, the parameters and responses vary between API versions. It is recommended to always use the latest API version
  • X-hourOfDay: Integer between 0 and 24. For venue and location related requests.
  • Accept-Language: Currently, the following languages are supported ('en','de','ru','ar','es','fr','ja','pt','id','zh','nl','pl','th','tr','uk','vi'). The default is 'en'.
  • X-clientDevice: client device name
  • X-clientFirmware: client firmware
  • X-buildVersion: client app build version


Some endpoints in the api return arrays of photos, users, or albums. Those endpoints always contain four fields: offset,limit,total and items. items is an array of the requested object, whereas the remaining parameters can be used to paginate the list.

##Images and Image Resolutions

You can request EyeEm photos in various sizes and formats. The default API endpoints return a thumbUrl and (optionally) a photoUrl Both urls have the format and return different size photos that you can simply plug into your app.

In case you want to display photos in a different resolution you can use the same filename and change the two middle parts of the url like so:

  •{pixels}/filename will return the image scaled to have a max height of {pixels}
  •{width}/{height}/filename will return the image scaled to fit into {width} and {height}
  •{pixels}/filename will return the image cropped into a square with length {pixels}


For feedback, questions, complaints and props, you can get in touch with us at or @eyeemapi on Twitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.