getFriends

Description

Get the friends of a given user. This call is not paginated by default, but because users can have hundreds of friends it is advisable. You can also get the followers of a user.

URL Endpoint

https://api.mobypicture.com/

Requires Authentication

No

HTTP Method

GET

Parameters

  • action

    getFriends

  • key

    Your developer key, which you can apply for here.

  • username

    Mobypicture username to get the friends for

Optional:

  • page

    Page to return for pagination. Starts at 1 (not 0).

  • amount

    Amount to return for pagination.

  • pretty_json

    To output human readable JSON. XML is already human readable

  • format

    The desired output format. Possible values are json and xml. If no format is given, JSON will be returned.

Rate Limited

Not yet.

Response

JSON

{
  "friends":[
    {
      "id":"334869",
      "username":"Fredoichi",
      "name":"Fredo Houben",
      "firstname":"Fredo",
      "lastname":"Houben",
      "bio":"A modern day Ronin who lives by the code of creativity. A Visual Designer and Animator, Game and Mac Geek, and a Dad. Also designs and creat",
      "website":"http:\/\/www.fredoichi.com",
      "location":"Utrecht | the Netherlands",
      "url":"http:\/\/www.mobypicture.com\/user\/Fredoichi",
      "url_avatar":"http:\/\/mobypicture.com\/images\/avatar\/534ea1ac9cd8a6dd225720ea1a1779ad_60px.jpg",
      "url_avatar_small":"http:\/\/mobypicture.com\/images\/avatar\/534ea1ac9cd8a6dd225720ea1a1779ad_24px.jpg",
      "post_count":"2",
      "friends_count":"6",
      "followers_count":"2"
    },
    {
      "id":"46161",
      "username":"hasseltkoffie",
      "name":"Steven vH",
      "firstname":"Steven",
      "lastname":"vH",
      "bio":"",
      "website":"",
      "location":"",
      "url":"http:\/\/www.mobypicture.com\/user\/hasseltkoffie",
      "url_avatar":"http:\/\/mobypicture.com\/images\/avatar\/053300022676e2ec1985016822477217_60px.jpg",
      "url_avatar_small":"http:\/\/mobypicture.com\/images\/avatar\/053300022676e2ec1985016822477217_24px.jpg",
      "post_count":"193",
      "friends_count":"7",
      "followers_count":"3"
    }],
  "duration":0.448066,
  "result":"0",
  "message":""
}

XML


      334869
      Fredoichi
      Fredo Houben
      Fredo
      Houben
      A modern day Ronin who lives by the code of creativity. A Visual Designer and Animator, Game and Mac Geek, and a Dad. Also designs and creat
      http://www.fredoichi.com
      Utrecht | the Netherlands
      http://www.mobypicture.com/user/Fredoichi
      http://mobypicture.com/images/avatar/534ea1ac9cd8a6dd225720ea1a1779ad_60px.jpg
      http://mobypicture.com/images/avatar/534ea1ac9cd8a6dd225720ea1a1779ad_24px.jpg
      2
      6
      2

      46161
      hasseltkoffie
      Steven vH
      Steven
      vH

      http://www.mobypicture.com/user/hasseltkoffie
      http://mobypicture.com/images/avatar/053300022676e2ec1985016822477217_60px.jpg
      http://mobypicture.com/images/avatar/053300022676e2ec1985016822477217_24px.jpg
      193
      7
      3

This page is last updated on December 22, 2014 by bram

Comment Form

About Mobypicture Developers

Build your own applications on top of Mobypicture, like over 600 others have done before you using our extensive API.

You can find find out more about the usage of the Mobypicture API in the API Documentation. To use the API you have to get a developer key. This also allows you to promote your Mobypicture enabled app on the Mobypicture website.

Get a Mobypicture developer key

RSS Mobypicture product news

  • Drawing or colouring? January 8, 2019
    Some of us prefer drawing over coloring, but need a clear plan.Some people just start drawing the first line on paper. They have a vague idea about what they want to create.A tree or dinosaur.This weekend I went to a dinosaur workshop with my son (4).He likes dinosaurs, hey, everybody likes dinosaurs, but he loves […]
  • Ten books I read in 2018 December 31, 2018
    1. Enlightenment Now Steven Pinker Found it very difficult to read. And I didn’t finish it. Pinker tries to be very eloquent in every single sentence. Couldn’t finish more than one chapter at the time. There are quite some interesting pleas in there for liberalism, but it didn't stick with me. I think that the […]
  • Last newsletter of the year December 29, 2018
    Kinder World went live, we vetted hundreds of charities with the help of our amazing summer interns, launched our donation widget and already started collecting donations. I'm looking forward to 2019 and what it will bring us. In the meantime, instead of the classic newsletter I thought I would share some of my favourite storied […]