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

  • We're not competing in the World Cup.... June 27, 2018
    On Tuesday’s "America's Got Talent"-show, Glennis Grace went on stage to perform a cover of the late legend, Whitney Houston's “Run to You”.
  • Time for Kinder World May 29, 2018
    Ever since Tag The Love as a platform technology matured, I started sponsoring charitable organisations. The first platform we gave away was the one for the annual fundraiser Serious Request organised by the popular 3FM radio station.
  • On a roll. Kinder future secured. Financing round completed. People added to the team. April 4, 2018
    In December I blogged about the fact that we are raising funds to speed up the rollout of our dreams and ambitions to change the charitable sector ecosystem. The first round closed on March 15th and we aligned our vision with six impact investors, all in this for the same ideals. There still is room […]