The Diigo API allows you to build apps that interact with the Diigo service. You can use the API to fetch or post bookmarks for a user.
Different API versions are namespaced by a URL prefix. The current version is v2. All API method URLs begin with https://secure.diigo.com/api/v2/
The Diigo API is entirely HTTP based and conform to HTTP standards and conventions, making it easy to use with standard technologies.
The API is still under development and is subject to change. If you have any questions or suggestions, please contact service@diigo.com.
Diigo API uses HTTP Basic authentication
- a standard authentication method that includes base64 encoded username and password in the Authorization
request header.
Developers must NOT use the credentials provided by users for any other purposes. Other authentication options such as OAuth may be supported in future.
The Diigo API attempts to embrace the RESTful design principles.
Each api method URL corresponds to a resource. The HTTP method (aka. verb) is used to specify the operation. A GET request is used to retreive data. A POST request may add, update or destroy data. The DELETE method is also accepted for methods that destroy data. API methods usually require particular HTTP methods. Such requirements are documented for each method.The Diigo API only accepts and returns text encoded in UTF-8.
The Diigo API uses standard HTTP query string to pass parameters. Parameters are required to be properly URL encoded.
The Diigo API attempts to returns meaningful HTTP status codes for each request. Possible codes are
The response body contains data in the JSON format - a light weight serialization format for structured data.
Returns a list of bookmarks satisfying various criteria
URL: https://secure.diigo.com/api/v2/bookmarks
Request method: GET
Parameters
Example request:
https://secure.diigo.com/api/v2/bookmarks?user=joel&count=10
Response
An array of bookmarks.
Example Response (JSON)
[ { "title":"Diigo API Help", "url":"http:\/\/www.diigo.com\/help\/api.html", "user":"foo", "desc":"", "tags":"test,diigo,help", "shared":"yes", "created_at":"2008/04/30 06:28:54 +0800", "updated_at":"2008/04/30 06:28:54 +0800", "comments":[], "annotations":[] }, { "title":"Google Search", "url":"http:\/\/www.google.com", "user":"bar", "desc":"", "tags":"test,search", "shared":"yes", "created_at":"2008/04/30 06:28:54 +0800", "updated_at":"2008/04/30 06:28:54 +0800", "comments":[], "annotations":[] } ]
Saves a bookmark for the authenticated user
URL: https://secure.diigo.com/api/v2/bookmarks
Request method: POST
Parameters
Example request
POST https://secure.diigo.com/api/v2/bookmarks ?url=http%3A%2F%2Fwww.diigo.com&title=Diigo+-+Web+Highlighter+and+Sticky+Notes&tags=diigo,bookmark,highlight &shared=yes
Reponse
Example Response
{ "message" : "added 1 bookmark(s)" }