What is This?

DC-API is a RESTful API that allows developers to build interactive applications using blog post information from DannyChoo.com. It utilizes data gathered by the open source PHP library DannyChoo.com Post Scraper, and provides a JSON formatted response.


I read DannyChoo.com blog posts on a regular basis. About a year ago, I thought it would be cool to read some of Danny's older posts... randomly. That lead to the random link generator, and then the DCPS, which crawls DannyChoo.com grabbing post data. Instead of keeping the data for myself, I thought I might share it to see if any other Danny Choo fans / coders could use it. So here ya go!

What's Possible?

Currently, DC-API allows you to grab info on all posts, the latest post, a random post, and all category information. It also allows you to search for posts within a given date range and / or by category.

With each request you get the post title, description, publish date (in GMT), URL, Category Name and Category URL.

Getting Started

To get the latest post, point your application to http://dc-api.danielbough.com/v1/latest.
To get a random post, point your application to http://dc-api.danielbough.com/v1/random.

For more information, check out the documentation.