Installing is easy!
  1. Click Allow
  2. Click Install Now
  3. After downloading, Restart Firefox

Glue API

The Glue API allows you to create your own applications that utilize the Objects, People, and Interactions on Glue in new and exciting ways! Got questions? Head on over to our Developer Forum

Terms of Service

By using the Glue API, you agree to abide by these terms of service.

  • You agree to limit the number of queries per day to 5000.
  • You agree to use the API in compliance with AdaptiveBlue's Privacy Policy.
  • You agree to abide by the terms of service of the other APIs used by the Glue API.
  • You agree not to copy/store/replicate/cache the API responses for more than 24 hours.
  • You agree not to replace AdaptiveBlue affiliate ids in the links within API responses.
  • You agree that AdaptiveBlue reserves the right to change the API at any time.
  • You agree that AdaptiveBlue may disable access to the API at any time and for any reason.
  • You agree that the API is provided to you "AS IS" and without any warranty or condition, implied or statutory.
  • You agree that AdaptiveBlue is not liable for any damages resulting from the use of the API.

Please use the API in accordance with the documentation below.

Authentication

All API calls (besides /user/login) require an authenticaiton token. A token can be requested by calling /user/login, it should then be passed along with every other request as token={token}. Calls that act on behalf of a user, such as /user/follow, use the token user as the source. Tokens do not expire.

API Paths

All API methods are accessible under http://api.getglue.com/v2. For example, /user/profile would be accessible at http://api.getglue.com/v2/user/profile

Response Format

The full XML response format is as follows:

<adaptiveblue>
    <request>
        <method>/user/profile</method>
        <params>
            <paramName1>paramValue1</paramName1>
            <paramName2>paramValue2</paramName2>
            ...
        </params>
    </request>
    <response>
        (Response XML)
        <timestamp>yyyy-mm-ddThh:mm:ssZ</timestamp>
    </response>
</adaptiveblue>

All responses in the following documentation are substituted for (Response XML). Timestamps are returned in UTC and are ISO 8601 formatted.

In the case of an expected error, <response> is replaced by:

<error>
    <code>###</code>
    <name>ShortName</name>
    <message>Human readable message</message>
</error>

For example:

<error>
    <code>101</code>
    <name>MissingParameter</name>
    <message>userId is missing</message>
</error>

Additionally, the applicable HTTP status code will be sent with each error document. In the case of an unexpected internal error, an HTTP 500 status code will be sent with a blank document. For a complete list of expected errors and return codes, please see the error documentation.

Paging

All methods that return interactions can be paged through.

To enable paging, pass page=1 and numItems={pageSize} with your first request. Along with the rest of your response you will also recieve paging information that can be used in subsequent requests:

<pagingInfo>
    <nextToken>2009-10-16T02:46:37Z</nextToken>
    <total>175</total>
    <numItems>20</numItems>
    <page>2</page>
</pagingInfo>

To request the next page, pass page=2 and numItems={pageSize} and nextToken={nextToken from pagingInfo}. Continue this way until numItems * page is >= total which indicates you have reached the last page. Requesting further pages will return an empty set of interactions.

User Methods

/user/login

Parameters:

  • userId - Glue username
  • password - Glue password
  • version - Glue version (currently 4.5)

Response:

Request an authentication token, used in other API calls

<ping>
    <userId>glueman</userId>
    <serverTime>1257207570817</serverTime>
    −
    <token>glue token</token>
</ping>

Example: http://api.getglue.com/v2/user/login?userId=glueman&password=myPass

/user/profile

Parameters:

  • userId - Glue username

Response:

The user's profile (display name, interaction counts, description, stats, stickers, services [other networks, blogs]). All values will be returned, even if empty or 0, with the exception of service ids which will only be returned if set.

<profile>
    <private>false</private>
    <hideVisits>false</hideVisits>
    <displayName>Glue Man</displayName>
    <description>A man made of glue</description>
    <friends>89</friends>
    <followers>90</followers>
    <stats>
            <visitedProfiles>44</visitedProfiles>
            <nonFriendProfiles>44</nonFriendProfiles>
            <visited>29</visited>
            <liked>10</liked>
            <commented>1</commented>
            <disliked>3</disliked>
            <guru>5</guru>
    </stats>
    <favorites>
            <books>1</books>
            <electronics>0</electronics>
            <movie_stars>2</movie_stars>
            <movies>5</movies>
            <music>3</music>
            <recording_artists>0</recording_artists>
            <restaurants>0</restaurants>
            <tv_shows>0</tv_shows>
            <topics>0</topics>
            <video_games>0</video_games>
            <wines>0</wines>
    </favorites>
    <postToTwitter>false</postToTwitter>
    <postToFacebook>true</postToFacebook>
    <username>glueman</username>
    <stickers>
            <sticker>
                    <name>Bootcamp</name>
            </sticker>
            <sticker>
                    <name>Curious George</name>
                    <level>10</level>
                    <count>44</count>
            </sticker>
    </stickers>
    <unlockedStream>true</unlockedStream>
</profile>

Example: http://api.getglue.com/v2/user/profile?userId=mtab&token=token

/user/friends

Parameters:

  • userId - Glue username

Response:

The user's friends. Note that usernames are case sensitive.

<friends>
    <userId>Joe</userId>
    <userId>Jack</userId>
    <userId>jill</userId>
    <userId>Mike</userId>
    <userId>tom</userId>
    <userId>Bob</userId>
    ...
</friends>

Example: http://api.getglue.com/v2/user/friends?userId=mtab&token=token

/user/followers

Parameters:

  • userId - Glue username

Response:

The user's followers. Note that usernames are case sensitive.

<followers>
    <userId>Joe</userId>
    <userId>Jack</userId>
    <userId>jill</userId>
    <userId>Mike</userId>
    <userId>tom</userId>
    <userId>Bob</userId>
    ...
</followers>

Example: http://api.getglue.com/v2/user/followers?userId=mtab&token=token

/user/isFriend

Parameters:

  • userId - Glue username friendUserId - Glue username

Response:

true if userId is friends with friendUserId, otherwise false. If the user is protected and friend request is still pending, "pending" will be returned.

Example: http://api.getglue.com/v2/user/isFriend?userId=mtab&friendUserId=netpro2k&token=token

/user/follow

This method will be performed as the authenticated user.

Parameters:

  • followUserId - Glue username of the person to follow

Response:

On success:

<success/>

If awaiting protected user's approval:

<pending/>

Example: http://api.getglue.com/v2/user/follow?followUserId=mtab&token=token

/user/unfollow

This method will be performed as the authenticated user.

Parameters:

  • unfollowUserId - Glue username of the person to unfollow

Response:

<success/>

Example: http://api.getglue.com/v2/user/unfollow?unfollowUserId=mtab&token=token

/user/addVisit

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • source - the source of the interaction, must be a URL (can be the homepage of your application)
  • app - the name of your application

Response:

The interaction that has been created/modified.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Looked</action>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>http://www.imdb.com/title/tt0099785</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/addVisit?objectId=http://www.amazon.com/dp/B001P9KR8U/&source=http://exampleglueapp.com/&app=ExampleApp&token=token
http://api.getglue.com/v2/user/addVisit?objectId=movies/slumdog_millionaire/danny_boyle&source=http://exampleglueapp.com/&app=ExampleApp&token=token

/user/addLike

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • source - the source of the interaction, must be a URL (can be the homepage of your application)
  • app - the name of your application
  • comment - (optional) the twocents comment (Limit 140 characters)

Response:

The interaction that has been modified.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Liked</action>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>http://www.imdb.com/title/tt0099785</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/addLike?objectId=http://www.amazon.com/dp/B001P9KR8U/&source=http://exampleglueapp.com/&app=ExampleApp&token=token
http://api.getglue.com/v2/user/addLike?objectId=movies/slumdog_millionaire/danny_boyle&source=http://exampleglueapp.com/&app=ExampleApp&token=token

/user/addDislike

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • source - the source of the interaction, can be the URL of your application's homepage
  • app - the name of your application
  • comment - (optional) the twocents comment (Limit 140 characters)

Response:

The interaction that has been modified.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Disliked</action>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>http://www.imdb.com/title/tt0099785</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/addLike?objectId=http://www.amazon.com/dp/B001P9KR8U/&source=http://exampleglueapp.com/&app=ExampleApp&token=token
http://api.getglue.com/v2/user/addLike?objectId=movies/slumdog_millionaire/danny_boyle&source=http://exampleglueapp.com/&app=ExampleApp&token=token

/user/addFavorite

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • source - the source of the interaction, can be the URL of your application's homepage
  • app - the name of your application
  • comment - (optional) the twocents comment (Limit 140 characters)

Response:

The interaction that has been modified.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Favorited</action>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>http://www.imdb.com/title/tt0099785</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/addFavorited?objectId=http://www.amazon.com/dp/B001P9KR8U/&source=http://exampleglueapp.com/&app=ExampleApp&token=token
http://api.getglue.com/v2/user/addFavorited?objectId=movies/slumdog_millionaire/danny_boyle&source=http://exampleglueapp.com/&app=ExampleApp&token=token

/user/addCheckin

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • source - the source of the interaction, can be the URL of your application's homepage
  • app - the name of your application
  • comment - (optional) the twocents comment (Limit 140 characters)

Response:

The interaction that has been modified.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Checkin</action>
    <comment>This movie was great!</comment>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>http://www.imdb.com/title/tt0099785</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/addCheckin?objectId=http://www.amazon.com/dp/B001P9KR8U/&source=http://exampleglueapp.com/&app=ExampleApp&comment=This was a great movie!&token=token
http://api.getglue.com/v2/user/addCheckin?objectId=movies/slumdog_millionaire/danny_boyle&source=http://exampleglueapp.com/&app=ExampleApp&comment=This was a great movie!&token=token

/user/askFriends

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • source - the source of the interaction, can be the URL of your application's homepage
  • app - the name of your application
  • comment - the twocents comment (Limit 140 characters)

Response:

The interaction that has been modified.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Commented</action>
    <comment>This movie was great!</comment>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>http://www.imdb.com/title/tt0099785</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/askFriends?objectId=http://www.amazon.com/dp/B001P9KR8U/&source=http://exampleglueapp.com/&app=ExampleApp&comment=This was a great movie!&token=token
http://api.getglue.com/v2/user/askFriends?objectId=movies/slumdog_millionaire/danny_boyle&source=http://exampleglueapp.com/&app=ExampleApp&comment=This was a great movie!&token=token

/user/removeInteraction

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey

Response:

<success/>

/user/addReply

This method will be performed as the authenticated user.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • app - the name of your application
  • replyTo - Glue username of the person you wish to reply to
  • reply - the reply (Limit 140 characters)
  • timestamp - (optional) if replying to a Checkin, timestamp of Checkin must be passed in

Response:

The interaction that has been created.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Reply</action>
    <comment>This movie was great!</comment>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>Joe</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/addReply?objectId=http://www.amazon.com/dp/B001P9KR8U/&source=http://exampleglueapp.com/&app=ExampleApp&replyTo=mtab&reply=Yeah, it was really good!&token=token
http://api.getglue.com/v2/user/addReply?objectId=movies/slumdog_millionaire/danny_boyle&source=http://exampleglueapp.com/&app=ExampleApp&replyTo=mtab&reply=Yeah, it was really good!&token=token

/user/removeReply

This method will be performed as the authenticated user. Note that timestamps are required, due to the fact that multiple replies on the same object are allowed.

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • timestamp - the timestamp of the reply you wish to remove

Response:

<success/>

Examples:
http://api.getglue.com/v2/user/removeReply?objectId=http://www.amazon.com/dp/B001P9KR8U/&timestamp=2009-05-19T21:47:49Z&token=token
http://api.getglue.com/v2/user/removeReply?objectId=movies/slumdog_millionaire/danny_boyle&timestamp=2009-05-19T21:47:49Z&token=token

/user/objects

Parameters:

  • userId - Glue username
  • category - One of the categories supported by Glue or all. Defaults to all.

Response:

The most recent interactions of a user within the given category. (See paging for details on how to request aditional items)

<interactions>
    <interaction>
        <title>Home Alone</title>
        <userId>mtab</userId>
        <displayName>Mark Tabry</displayName>
        <action>Liked</action>
        <objectKey>movies/home_alone/chris_columbus</objectKey>
        <source>http://www.imdb.com/title/tt0099785</source>
        <timestamp>2009-04-20T19:29:05Z</timestamp>
    </interaction>
    ...
</interactions>

Example: http://api.getglue.com/v2/user/objects?userId=mtab&token=token

/user/object

Parameters:

  • userId - Glue username
  • objectId - either the URL of a recognized page or Glue objectKey

Response:

The interaction for the specific userId/objectId combination.

<interaction>
    <title>Home Alone</title>
    <userId>mtab</userId>
    <displayName>Mark Tabry</displayName>
    <action>Liked</action>
    <objectKey>movies/home_alone/chris_columbus</objectKey>
    <source>http://www.imdb.com/title/tt0099785x</source>
    <timestamp>2009-04-20T19:29:05Z</timestamp>
</interaction>

Examples:
http://api.getglue.com/v2/user/object?userId=mtab&objectId=http://www.amazon.com/dp/B001P9KR8U/&token=token
http://api.getglue.com/v2/user/object?userId=mtab&objectId=movies/slumdog_millionaire/danny_boyle&token=token

/user/stream

This method will be performed as the authenticated user.

Parameters:

  • streamType -(optional, default is all) single letter stream type, one of the following: s (suggestions), f (friends), r (replies), p (popular)
  • category - One of the categories supported by Glue or all. Defaults to all.

Response:

The last 20 items from the users stream, filtered by streamType and category (See paging for details on how to request aditional items)

<interactions>
    <interaction>
        <title>Home Alone</title>
        <userId>mtab</userId>
        <displayName>Mark Tabry</displayName>
        <action>Liked</action>
        <objectKey>movies/home_alone/chris_columbus</objectKey>
        <source>http://www.imdb.com/title/tt0099785</source>
        <timestamp>2009-04-20T19:29:05Z</timestamp>
    </interaction>
    <interaction>
        <title>12 Angry Men</title>
        <userId>mtab</userId>
        <displayName>Mark Tabry</displayName>
        <action>Reply</action>
        <comment>
            Yes. It rocked for me, not sure if it will be the same
            in translation. Cultural references and slang were big.
        </comment>
        <objectKey>movies/12_angry_men/sidney_lumet</objectKey>
        <source>http://getglue.com/users/alex</source>
        <timestamp>2009-03-22T03:40:28Z</timestamp>
    </interaction>
    ...
</interactions>

Example:
http://api.getglue.com/v2/user/stream?category=all&token=token (gets last 20 items in stream)
http://api.getglue.com/v2/user/stream?category=movies&streamType=s&token=token (gets last 20 movie suggestions)

/user/guru

Parameters:

  • userId - Glue username

Response:

The last 20 items that this user became the Guru of (See paging for details on how to request aditional items)

<interactions>
    <interaction>
        <title>Home Alone</title>
        <userId>mtab</userId>
        <displayName>Mark Tabry</displayName>
        <action>LikedComment</action>
        <comment>Ahhhhhh!</comment>
        <objectKey>movies/home_alone/chris_columbus</objectKey>
        <source>http://www.imdb.com/title/tt0099785</source>
        <timestamp>2009-04-20T19:29:05Z</timestamp>
        <funny>3</funny>
    </interaction>
    ...
</interactions>

Example: http://api.getglue.com/v2/user/guru?userId=mtab&token=token

/user/thingsInCommon

Parameters:

  • userId - Glue username otherUserId - Glue username

Response:

The things userId and otherUserId have in common

<objects count="7">
    <music count="3">
            <album>
                    <modelName>music</modelName>
                    <key>music/21st_century_breakdown/green_day</key>
                    <title>21st Century Breakdown</title>
            </album>
            <album>
                    <modelName>music</modelName>
                    <key>music/black_holes_revelations/muse</key>
                    <title>Black Holes and Revelations</title>
            </album>
            <album>
                    <modelName>music</modelName>
                    <key>music/day_age/the_killers</key>
                    <title>Day &amp; Age</title>
            </album>
    </music>
    <topics count="1">
            <topic>
                    <modelName>topics</modelName>
                    <key>topics/p/paris</key>
                    <title>Paris</title>
            </topic>
    </topics>
    <tv_shows count="2">
            <show>
                    <modelName>tv_shows</modelName>
                    <key>tv_shows/weeds</key>
                    <title>Weeds</title>
            </show>
            <show>
                    <modelName>tv_shows</modelName>
                    <key>tv_shows/futurama_benders_game</key>
                    <title>Futurama: Bender's Game</title>
            </show>
    </tv_shows>
    <books count="1">
            <book>
                    <modelName>books</modelName>
                    <key>books/easy_latin_crossword_puzzles/wallace</key>
                    <title>Easy Latin Crossword Puzzles</title>
            </book>
    </books>
</objects>

Example: http://api.getglue.com/v2/user/thingsInCommon?otherUserId=mtab&friendUserId=netpro2k&token=token

Object Methods

/object/get

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey

Response:

An object's full details.

<show>
    <itemName>show</itemName>
    <title>Weeds</title>
    <visited>38</visited>
    <liked>14</liked>
    <commented>2</commented>
    <link>http://www.netflix.com/Movie/Weeds_Season_4</link>
    <image>http://cdn-7.nflximg.com/us/boxshots/large.jpg</image>
    <url>http://www.netflix.com/Movie/Weeds_Season_4</url>
    <sdb>Netflix</sdb>
    <rank>20</rank>
    <rankChange>12</rankChange>
    <preview>http://www.youtube.com/v/tUZcdiflm_c</preview>
    <shortDescription>{short description}</shortDescription>
    <description>{full description}</description>
    <year>2008</year>
    <starring>
        <starring_item>Mary-Louise Parker</starring_item>
        <starring_item>Elizabeth Perkins</starring_item>
        <starring_item>Albert Brooks</starring_item>
    </starring>
    <similar>
        <similar_item>tv_shows/mad_men</similar_item>
        <similar_item>tv_shows/dead_like_me</similar_item>
        <similar_item>tv_shows/niptuck</similar_item>
    </similar>
    <type>tv_shows</type>
    <objectKey>tv_shows/weeds</objectKey>
</show>

Examples:
http://api.getglue.com/v2/object/get?objectId=http://www.amazon.com/dp/B001P9KR8U/&token=token
http://api.getglue.com/v2/object/get?objectId=movies/slumdog_millionaire/danny_boyle&token=token

/object/users

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • action - (optional) return only one section. Options are: lastCheckedIn, checkedIn, commented, liked, visited
  • total,page,numItems - (optional) if pagingInfo section is available within an action, these variables can be passed in (should specify action as well)

Response:

Guru record and interactions associated with the object, grouped by type (checkin, comment, like, visit)

<totalActivity>
    <stats>
        <friends>
            <visited>0</visited>
            <liked>0</liked>
        </friends>
        <all>
            <visited>6176</visited>
            <liked>3900</liked>
        </all>
    </stats>
    <guru>
        <interaction>
            <userId>brianandnicole_noriega</userId>
            <displayName>Nicole Brian Davis Noriega</displayName>
            <action>Favorited</action>
            <comment>BEST show in TV HiSToRy!!!!!!!!!!!</comment>
            <source>iPhone</source>
            <timestamp>2010-07-02T13:27:10Z</timestamp>
            <numReplies>3</numReplies>
            <objectKey>tv_shows/weeds</objectKey>
            <fan>2010-07-02T01:47:43Z</fan>
            <superfan>2010-06-27T13:14:00Z</superfan>
            <useful>2</useful>
            <agree>10</agree>
            <numReplies>3</numReplies>
        </interaction>
    </guru>
    <checkinActivity total="10">
        <interaction>
            <userId>yogabbagaby</userId>
            <displayName>Gaby</displayName>
            <action>Checkin</action>
            <source>iPhone</source>
            <timestamp>2010-07-09T18:19:40Z</timestamp>
            <objectKey>tv_shows/weeds</objectKey>
            <numReplies>1</numReplies>
        </interaction>
        ...
    </checkinActivity>
    <commentActivity total="154">
        <pagingInfo>
            <total>10</total>
            <numItems>10</numItems>
            <page>2</page>
        </pagingInfo>
        <interaction>
            <userId>shelbirae</userId>
            <action>Unwanted</action>
            <comment>Weeds is awesome!</comment>
            <source>iPhone</source>
            <timestamp>2010-07-09T15:07:45Z</timestamp>
            <numReplies>1</numReplies>
            <objectKey>tv_shows/weeds</objectKey>
            <numReplies>2</numReplies>
        </interaction>
        ...
    </commentActivity>
    <likeActivity total="3758">
        <interaction>
            <userId>joshua_tauzin</userId>
            <displayName>Joshua Tauzin</displayName>
            <action>Liked</action>
            <source>iPhone</source>
            <timestamp>2010-07-09T17:55:14Z</timestamp>
            <objectKey>tv_shows/weeds</objectKey>
        </interaction>
        ...
    </likeActivity>
    <visitActivity total="1759">
        <interaction>
            <userId>ducktastic</userId>
            <displayName>Derrick Sanskrit KC</displayName>
            <action>Looked</action>
            <source>http://getglue.com/tv_shows/weeds?source=search</source>
            <timestamp>2010-07-09T17:18:07Z</timestamp>
            <objectKey>tv_shows/weeds</objectKey>
        </interaction>
        ...
    </visitActivity>
</totalActivity>

Examples:
http://api.getglue.com/v2/object/users?objectId=http://www.amazon.com/dp/B001P9KR8U/&token=token
http://api.getglue.com/v2/object/users?objectId=movies/slumdog_millionaire/danny_boyle&token=token

/object/links

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey

Response:

A list of links associated with the object.

<links>
    <link>http://movies.yahoo.com/movie/1809956055/info</link>
    <link>http://www.amazon.com/Slumdog-Millionaire/dp/B001UEBHYS</link>
    <link>http://www.blockbuster.com/catalog/movieDetails/370506</link>
    <link>http://www.rottentomatoes.com/m/1198041</link>
    ...
</links>

Examples:
http://api.getglue.com/v2/object/links?objectId=http://www.amazon.com/dp/B001P9KR8U/&token=token
http://api.getglue.com/v2/object/links?objectId=movies/slumdog_millionaire/danny_boyle&token=token

/object/replies

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey
  • userId - Glue username of the user who started the reply thread

Response:

Replys (as interactions) to the given user's interaction on the given object

<interactions>
    <interaction>
        <objectKey>movies/iron_man/jon_favreau</objectKey>
        <title>Iron Man</title>
        <userId>miwitza</userId>
        <displayName>Sandra Kravitz</displayName>
        <action>Reply</action>
        <comment>hope that sequel will be great, too. would Jeff be in that one, too? :)</comment>
        <source>ClemmRusty</source>
        <timestamp>2010-02-16T17:07:40Z</timestamp>
        <useful>2</useful>
    </interaction>
    ...
</interactions>

Examples:
http://api.getglue.com/v2/object/replies?userId=mtab&objectId=http://www.amazon.com/dp/B001P9KR8U/&token=token
http://api.getglue.com/v2/object/replies?userId=mtab&objectId=movies/slumdog_millionaire/danny_boyle&token=token

/object/similar

Parameters:

  • objectId - either the URL of a recognized page or Glue objectKey

Response:

A list of similar objects

<similar>
    <glue>
        <items>
            <item>
            <key>movies/harry_potter_order_of_phoenix/david_yates</key>
            <url>http://www.netflix.com/Movie/70058027</url>
            <title>Harry Potter and the Order of the Phoenix</title>
            <image>http://cdn-7.nflximg.com/us/boxshots/large/70058027.jpg</image>
            <modelName>movies</modelName>
            </item>
            ...
        </items>
    </glue>
</similar>

Examples:
http://api.getglue.com/v2/object/links?objectId=http://www.amazon.com/dp/B001P9KR8U/&token=token
http://api.getglue.com/v2/object/links?objectId=movies/slumdog_millionaire/danny_boyle&token=token

Network-wide Methods

/glue/categories

Response:

Alphabetized list of all supported categories with human-readable name and record types.

<categories>
	<category>
		<name>Books</name>
		<modelName>books</modelName>
	</category>
	<category>
		<name>Electronics</name>
		<modelName>electronics</modelName>
	</category>
	<category>
		<name>Movie Stars</name>
		<modelName>movie_stars</modelName>
	</category>
	...
</categories>

Example: http://api.getglue.com/v2/glue/categories&token=token

/glue/popular

Parameters:

  • category - One of the categories supported by Glue, or all.

Response:

The 100 most popular objects in the given category. (See paging for details on how to request aditional items)

<interactions>
    <interaction>
        <rank>1</rank>
        <rankChange>3</rankChange>
        <title>Raiders of the Lost Ark</title>
        <image>http://images.barnesandnoble.com/images/26280000/26281568.JPG</image>
        <objectKey>movies/raiders_of_lost_ark/steven_spielberg</objectKey>
        <link>http://video.barnesandnoble.com/DVD/97361328249/?cds2Pid=16639</link>
        <activity>34</activity>
    </interaction>
    <interaction>
        <rank>2</rank>
        <rankChange>-1</rankChange>
        <title>The Dark Knight</title>
        <image>http://cdn-3.nflximg.com/us/boxshots/large/70079583.jpg</image>
        <objectKey>movies/dark_knight/christopher_nolan</objectKey>
        <link>http://www.netflix.com/Movie/The_Dark_Knight/70079583</link>
        <activity>9</activity>
    </interaction>
	...
</interactions>

Example: http://api.getglue.com/v2/glue/popular?category=books&token=token

/glue/topUsers

Parameters:

  • category - One of the categories supported by Glue, or all.

Response:

The 50 most active users in the given category.

<users>
    <user>
        <rank>1</rank>
        <userId>Joe</userId>
        <activity>34</activity>
    </user>
    <user>
        <rank>2</rank>
        <userId>Bill</userId>
        <activity>27</activity>
    </user>
    ...
<users>

Example: http://api.getglue.com/v2/glue/topUsers?category=books&token=token

/glue/findObjects

Parameters:

  • q - search query

Response:

Objects that matched your search query

<matches count="9">
    <books count="4">
        <book>
            <key>books/batman_dark_knight_returns/frank_miller</key>
            <title>Batman: The Dark Knight Returns</title>
        </book>
        ...
    </books>
    <movies count="4">
        <movie>
            <key>movies/batman_tales_of_dark_knight/boy_kirklan</key>
            <title>Batman: Tales of the Dark Knight</title>
        </movie>
        ...
    </movies>
    <music count="1">
        <album>
            <key>music/dark_knight/hans_zimmer</key>
            <title>The Dark Knight</title>
        </album>
    </music>
</matches>

Example: http://api.getglue.com/v2/glue/findObjects?q=dark knight&token=token

/glue/findUsers

Parameters:

  • userId - partial username or email to search for

Response:

The usernames that match your search query

<users>
    <user>
        <userId>Joe</userId>
    </user>
    <user>
        <userId>Bill</userId>
    </user>
    ...
<users>

Example: http://api.getglue.com/v2/glue/findUsers?userId=joe&token=token