Andrey Golub :: Weblog :: The Spock API: Search API + People API

February 01, 2008

 


The Spock API: Search API + People API

http://www.spock.com/api

The Spock API

The Spock Profile API is a standards-based method for obtaining Spock search results. To obtain access to the Spock API, users must obtain an API Key.

The Spock Profile API is read-only, and returns results in XML. Results can include text, URLs, and pictures. The API provides two options for querying the data:

  • search.xml: This query method finds a set of Spock IDs given a set of criteria.
  • person.xml: This query method allows for request of detailed information for one or more people.

Use

To execute a query the API must be supplied with an API Key and any non-required fields can be left blank. Allowed fields for use in generating a query are provided in the tables below.

Search API

Inputs

The API must be supplied with at least one of the following: a general query string, a name query, a tag query, or a location query.

FieldDefinitionValuesDefault
api_key (required)Provided by Spock.StringN/A
query Free form query string.StringNo filter
name_query Limit search results to individuals with a specific name.StringNo filter
tag_query Limit search results to individuals with a specific tag or set of tags.StringNo filter
location_query Limit search results by location.StringNo filter
age_low Limits search results to exclude individuals below a certain age.IntegerNo filter
age_high Limits search results to exclude individuals above a certain age.IntegerNo filter
gender Limits search results based on gender. m (male), f (female)No filter
require_picture Indicates if pictures are required for results.1 (Yes) or 0 (No).No filter (0)
limit Limits the number of results returned.Integer. Maximum = 10010
offset Determines which result to begin with (zero-based). E.g., setting offset to 2 would excludes the first two results.Integer0

People API

Inputs

To execute a query, the API must be supplied with a Spock ID or list of Spock IDs. The query can be used to define what information is returned. Allowed fields are provided in the table below:

FieldDefinitionValuesDefault
api_key (required)Provided by Spock.StringN/A
id (required)Spock IDs of the people to display. (Maximum of 50.)String (comma-separated list)N/A
blurb Determines if the user bio is returned.0 or 10
gender Determines if the user gender is returned.0 or 10
location Determines if the user location is returned.0 or 10
names Determines the number of user name variants returned.Integer (0-100)0
pictures Determines number of pictures returned in descending vote score order.Integer (0-100)0
picture_sizes Determines the sizes of pictures returned.String. Can be one or more of:
  • small_height (120×60)
  • small_width (60×120)
  • medium_height (200×100)
  • medium_width (120×240)
  • large (600×400)
Arguments are comma-separated (e.g. small_height,small_width).
Blank. No image URLs are returned if you leave this blank, so you probably want to specify one.
related_people Determines number of related people returned in descending vote score order.Integer (0-100)0
tags Determines number of tags returned in descending vote score order.Integer (0-100)0
websites Determines number of websites returned in descending vote score orderInteger (0-100)0

for more info and examples-  http://www.spock.com/api

Keywords: People API, Search API, Social Web, Spock, Spock API, Spock.com, Open API

Posted by andrey.golub at 21:35 | |

Please, logon first if you are a member
Or use your facebook account soon!

Add a comment

Your comment text
Your name
 

Send this message to a friend

The information provided will not be collected any used for any other purpose but just to send your message.
Name of your friend: 
E-mail of your friend: *
 
Your Name: 
Comments:  
   

 
Profile Owner
Andrey Golub
Andrey Golub’s Profile
Andrey Golub’s Homepage

(RSS)

Business Club Milan IN ads

Files

File Storage (11 files)
(RSS)


 
Copyright © 2004-2005 ELGG
Copyright © 2005-2008 Business Club Milan IN
http://www.milanin.com - via Conca del Naviglio, 18 - 20129 Milano - CF 97413780152 - info@milanin.com