Digg's Public API Proxy and Good API Application Design
by Kurt Wilms at 11am, Apr 23rd, 2008
by Steve Williams at 4pm, Feb 4th, 2008
by Kurt Wilms at 6pm, Oct 25th, 2007
The Digg Application Programming Interface (API) has been created to let users and partners interact programmatically with Digg. The API returns Digg data in a form that can be easily integrated into an application or a web site. While the API is available to everyone free of charge, its use is subject to acceptance of our API License Agreement.
We intend to make most of the data on Digg.com available through the API. Currently, you can use the API to request very specific information about news stories and videos submitted to Digg, digging activity, comments, users, and gallery photos.
The API accepts REST requests and offers several response types: XML, JSON, Javascript, and serialized PHP. In addition, a PEAR module is available for PHP as well other open-source toolkits.
Thank you for interacting with and using the Digg API. If you have any questions, comments, or suggestions, please visit the Digg API Community Support Forum.
Want to use the Digg API for commercial purposes? Contact us at partners@digg.com. Please provide as much detail as you can about your proposed application and how you would like the business relationship with Digg to work. We will review your proposal and get back to you as soon as we can if there is interest in discussing a commercial license for your application.
The Basic Concepts page describes the basics of how to use the API, including requirements, common considerations, error code information, and a current list of available Digg topics. We recommend you start with Basic Concepts.
The Endpoints pages describe API calls and give some sample requests and responses. There's also a handy index of all endpoints.
This endpoint returns a list of stories matching various criteria. Examples:
The response is a list of stories. When there are no matches for the request, the response is an XML document that contains no stories. Each story in the response includes the following story-related information:
The request can also narrow the results to stories submitted or promoted in a particular time period or from one domain or a specific URL. Individual Digg stories can be requested by URL. The request can be limited to a maximum number of stories and the results sorted by date submitted or promoted.
This endpoint returns the Diggs for the requested stories. Some examples:
The response includes includes:
This endpoint returns a list of users, or friends or fans of users. Some examples:
For each user returned in a request, the response includes:
This endpoint returns gallery photos. Some examples:
For each gallery photo returned in a request, the response includes:
This endpoint returns a list of Digg topics. Each topic includes a capitalized name for display as well as a short name used as an argument to other endpoints.
This endpoint returns the error codes that can occur when using the API, along with descriptive messages for each.
Page Information
|
Wiki Information
|
Update to PBwiki 2.0 An entirely new PBwiki experience, including folders and easier editing. |