searchPosts

Description

Search for posts on Mobypicture

URL Endpoint

https://api.mobypicture.com/

Requires Authentication

No.

HTTP Method

GET

Parameters

Field name Example value(s) Description
key [DEVELOPERKEY] Your developer key
action 'searchPosts' The action that should be performed. ‘searchPosts’ to search.
format 'xml' Specifies in which format the response should be returned
searchItemsPerPage '10' Amount of posts to show on each page
searchPage '1' The current page
searchTerms 'mobypicture -http' Specifies for which words to search.
searchTermsMode 'all', 'any' or 'boolean' Specifies in which mode to match the query string.
searchUsername 'mathys' Only return postings from the specified username
searchMediaPhoto '0' or '1' Include photo posts in the search (default is ‘1’ – on)
searchMediaVideo '0' or '1' Include video posts in the search (default is ‘1’ – on)
searchMediaAudio '0' or '1' Include audio posts in the search (default is ‘1’ – on)
searchGeoCountry 'NL' Only return postings from the specified country (ISO3166 code2)
searchGeoLocation '52.364752,4.902418' Only return postings from the specified location (also see searchGeoDistance)
searchGeoDistance '5000' Only return postings withing a range of 5000 meters from the specified searchGeoLocation
searchTags 'car,ferrari' Look for one or more tags (comma seperated)
searchTagsMode 'all', 'any' Match all given tags, or any of them.
searchSortBy 'relevant''recent''views'or 'geo'* Sort the results based on this field.
* Only applies if used with a correct GPS location for searchGeoDistance
searchOrder 'asc''desc' Specifies in which direction sorting should be done.

Rate Limited

Yes, 5 calls every 10 seconds are allowed.

Example

Returns all postings from Holland, with the word ‘windmill’ in the title or description, but without the word’dutch':

http://api.mobypicture.com/?action=searchPosts&k=DEVELOPERKEY&format=xml&searchTerms=windmill%20-dutch&searchGeoCountry=NL&searchItemsPerPage=50&searchPage=1

Response

JSON

{
  "total_results":"8",
  "results":[
    {
      "user":{
        "id":"4971",
        "username":"mvisser",
        "name":"Maarten Visser",
        "firstname":"Maarten",
        "lastname":"Visser",
        "bio":"",
        "website":"0",
        "location":"",
        "url":"http:\/\/www.mobypicture.com\/user\/mvisser",
        "url_avatar":"http:\/\/mobypicture.com\/images\/avatar\/d18b1c20d63dcc634a78478156eb47b6_60px.jpg",
        "url_avatar_small":"http:\/\/mobypicture.com\/images\/avatar\/d18b1c20d63dcc634a78478156eb47b6_24px.jpg",
        "post_count":"35",
        "friends_count":"0",
        "followers_count":"1"
      },
      "post":{
        "id":"8583679",
        "title":"windmills at the border",
        "description":" ",
        "location_latlong":"52.0765796,4.5478564",
        "created_on":"2011-01-27 17:59:33",
        "created_on_epoch":1296147573,
        "comments":"0",
        "media":{
          "url_thumbnail":"http:\/\/img.mobypicture.com\/1d8013c58c9e69d2654ba8d4a2b8bf61_thumbnail.jpg",
          "url_square":"http:\/\/img.mobypicture.com\/1d8013c58c9e69d2654ba8d4a2b8bf61_square.jpg",
          "url_full":"http:\/\/img.mobypicture.com\/1d8013c58c9e69d2654ba8d4a2b8bf61_large.jpg",
          "type":"photo",
          "original_width":"2592",
          "original_height":"1952",
          "processing":"0"
        },
        "device":{
          "manufacturer":"HTC",
          "model":"HTC Desire"
        },
        "link":"http:\/\/www.mobypicture.com\/user\/mvisser\/view\/8583679",
        "link_tiny":"http:\/\/moby.to\/52t2nx"
      }
    },
    {
      "user":{
        "id":"15660",
        "username":"dannytoller",
        "name":"Danny Toller",
        "firstname":"Danny",
        "lastname":"Toller",
        "bio":"",
        "website":"http:\/\/www.twitter.com\/dannytoller",
        "location":"Woudenberg",
        "url":"http:\/\/www.mobypicture.com\/user\/dannytoller",
        "url_avatar":"http:\/\/mobypicture.com\/images\/avatar\/649314b6e1916a222e1ed706550980b2_60px.jpg",
        "url_avatar_small":"http:\/\/mobypicture.com\/images\/avatar\/649314b6e1916a222e1ed706550980b2_24px.jpg",
        "post_count":"218",
        "friends_count":"0",
        "followers_count":"0"
      },
      "post":{
        "id":"8333600",
        "title":"Windmill",
        "description":"",
        "location_latlong":"51.878889,5.287778",
        "created_on":"2010-12-25 14:49:02",
        "created_on_epoch":1293284942,
        "comments":"0",
        "media":{
          "url_thumbnail":"http:\/\/img.mobypicture.com\/56de460da3b4a8417e8eb600a36892b0_thumbnail.jpg",
          "url_square":"http:\/\/img.mobypicture.com\/56de460da3b4a8417e8eb600a36892b0_square.jpg",
          "url_full":"http:\/\/img.mobypicture.com\/56de460da3b4a8417e8eb600a36892b0_large.jpg",
          "type":"photo",
          "original_width":"2560",
          "original_height":"1440",
          "processing":"0"
        },
        "device":{
          "manufacturer":"25 14:",
          "model":"47:05"
        },
        "link":"http:\/\/www.mobypicture.com\/user\/dannytoller\/view\/8333600",
        "link_tiny":"http:\/\/moby.to\/2e2lrm"
      }
    }
  ],
  "result":"0",
  "message":""
}

XML


  
  8
  
    
      
        4971
        mvisser
        Maarten Visser
        Maarten
        Visser
        
        0
        
        http://www.mobypicture.com/user/mvisser
        http://mobypicture.com/images/avatar/d18b1c20d63dcc634a78478156eb47b6_60px.jpg
        http://mobypicture.com/images/avatar/d18b1c20d63dcc634a78478156eb47b6_24px.jpg
        35
        0
        1
      
      
        8583679
        <title>windmills at the border</title>
         
        52.0765796,4.5478564
        2011-01-27 17:59:33
        1296147573
        0
        
          http://img.mobypicture.com/1d8013c58c9e69d2654ba8d4a2b8bf61_thumbnail.jpg
          http://img.mobypicture.com/1d8013c58c9e69d2654ba8d4a2b8bf61_square.jpg
          http://img.mobypicture.com/1d8013c58c9e69d2654ba8d4a2b8bf61_large.jpg
          photo
          2592
          1952
          0
        
        
          HTC
          HTC Desire
        
        http://www.mobypicture.com/user/mvisser/view/8583679
        http://moby.to/52t2nx
      
    
    
      
        15660
        dannytoller
        Danny Toller
        Danny
        Toller
        
        http://www.twitter.com/dannytoller
        Woudenberg
        http://www.mobypicture.com/user/dannytoller
        http://mobypicture.com/images/avatar/649314b6e1916a222e1ed706550980b2_60px.jpg
        http://mobypicture.com/images/avatar/649314b6e1916a222e1ed706550980b2_24px.jpg
        218
        0
        0
      
      
        8333600
        <title>Windmill</title>
        
        51.878889,5.287778
        2010-12-25 14:49:02
        1293284942
        0
        
          http://img.mobypicture.com/56de460da3b4a8417e8eb600a36892b0_thumbnail.jpg
          http://img.mobypicture.com/56de460da3b4a8417e8eb600a36892b0_square.jpg
          http://img.mobypicture.com/56de460da3b4a8417e8eb600a36892b0_large.jpg
          photo
          2560
          1440
          0
        
        
          25 14:
          47:05
        
        http://www.mobypicture.com/user/dannytoller/view/8333600
        http://moby.to/2e2lrm
      
    
  
This page is last updated on December 22, 2014 by bram

1 Response to searchPosts

Avatar

mauriez

September 17th, 2010 at 12:23 pm

Hi! Looks great! Do you have a page showing the possible output?

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

  • After we're gone March 20, 2017
    "About a month after we disappear all cooling water on nuclear facilities will have evaporated. Millions of animals will die of cancer."
  • Why don't we cheer at a central place online? March 20, 2017
    Catching the energy Energy flows around social gatherings. When we enter a stadium, visit a museum or go to a concert we all share the energy. It makes us stronger, it connects us, no matter what our backgrounds are.  Online their is not one space that catches this energy and bundles this power. Our tweets, FB posts, likes, […]
  • It's been an activistic month! #supportgoodcauses March 6, 2017
    1. Artikel 1I met Sylvana Simons at an event in January. I don't care too much about politics but I think the rights she's fighting for are extremely important and awareness and demystification around the topics of the new Dutch political party Artikel 1 are crucial for achieving their goal. Tag The Love can really help them get […]