Stockvault.net - API documentation

Documentation for the API (work in progress)

Input methods

Search

Requires API key (contact us)
  • type: 'search' (string, required)
  • query: yourkeyword (string, required)
  • apikey: yourapikey (string, required)

Example
http://stockvault.net/api/json/?type=search&query=dog&apikey=myapikey (json output)
http://stockvault.net/api/xml/?type=search&query=dog&apikey=myapikey (xml output)

All

Allows you to query for the latest photos
Requires API key (contact us)
  • type: 'all' (string, required)
  • apikey: yourapikey (string, required)
  • p: number (integer, defaults to 1)
  • perpage: number (integer, defaults to 20)

Example
http://stockvault.net/api/json/?type=all&p=1&perpage=20&apikey=myapikey (json output)
http://stockvault.net/api/xml/?type=all&p=1&perpage=20&apikey=myapikey (xml output)

By photographer

Can be used by photographers to promote their own work, no API key required.
  • type: 'byUser' (string, required)
  • query: yourUserId (integer, required) (a part of your profile url)

Example
http://stockvault.net/api/json/?type=byUser&query=1130 (json output)
http://stockvault.net/api/xml/?type=byUser&query=1130 (xml output)