<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Indexed Content &#187; reddit</title>
	<atom:link href="http://indexedcontent.com/category/smo/reddit-smo/feed/" rel="self" type="application/rss+xml" />
	<link>http://indexedcontent.com</link>
	<description>SEO Services &#38; Link Building</description>
	<lastBuildDate>Tue, 17 Nov 2009 22:37:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reddit&#8217;s Secret API</title>
		<link>http://indexedcontent.com/smo/reddit-smo/reddits-secret-api/</link>
		<comments>http://indexedcontent.com/smo/reddit-smo/reddits-secret-api/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 07:18:56 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[reddit]]></category>
		<category><![CDATA[api]]></category>

		<guid isPermaLink="false">http://indexedcontent.com/?p=464</guid>
		<description><![CDATA[Despite its open source platform, reddit has been relatively slow in extending functionality.  However there are some (slightly) hidden json endpoints.]]></description>
			<content:encoded><![CDATA[<p>Over the past few weeks I have been working on creating a tool to gather some social media metrics to track social media optimization campaigns.  Friendfeed is your friend if you&#8217;re embarking on the same project.  While looking for a native reddit API however I stumbled across a post on code.reddit.com that mentioned an API endpoint.  </p>
<p>http://code.reddit.com/ticket/154:</p>
<blockquote><p>In many applications, such as Socialite, it is valuable to look up information about a link on reddit. Currently, there are two good ways to do this using the JSON API:</p>
<p>Info call<br />
Example: http://www.reddit.com/api/info.json?count=1&#038;url=STORYURL</p>
<p>The API &#8220;info&#8221; call is an ideal way to look up reddit stories by URL. However, in some cases, looking up stories by URL alone presents problems:</p>
<p>1. URLs are not mapped to stories on a one-to-one basis. Since the same URL can be posted to many subreddits, when looking up stories by URL, it becomes necessary to constrain the search by subreddit, e.g.: http://www.reddit.com/r/subreddit/api/info.json?count=1&#038;url=STORYURL </p></blockquote>
<p>For a typical reddit story the json looks like:</p>
<pre class="brush: jscript;">
{&quot;kind&quot;: &quot;Listing&quot;, &quot;data&quot;: {&quot;children&quot;: [{&quot;kind&quot;: &quot;t3&quot;, &quot;data&quot;: {&quot;subreddit_id&quot;: &quot;t5_6&quot;, &quot;clicked&quot;: false, &quot;name&quot;: &quot;t3_70ehq&quot;, &quot;ups&quot;: 3709, &quot;created&quot;: 1220933746.0, &quot;url&quot;: &quot;http:\/\/voices.washingtonpost.com\/the-trail\/2008\/09\/08\/obama_to_palin_dont_mock_the_c.html&quot;, &quot;num_comments&quot;: 871, &quot;downs&quot;: 943, &quot;author&quot;: &quot;neoabraxas&quot;, &quot;domain&quot;: &quot;voices.washingtonpost.com&quot;, &quot;subreddit&quot;: &quot;reddit.com&quot;, &quot;score&quot;: 2766, &quot;likes&quot;: null, &quot;title&quot;: &quot;Obama to Palin:\&quot;Don't mock the Constitution. Don't make fun of it. Don't suggest that it's not American to abide by what the founding fathers set up. It's worked pretty well for over 200 years.\&quot;&quot;, &quot;hidden&quot;: false, &quot;saved&quot;: false, &quot;id&quot;: &quot;70ehq&quot;}}, {&quot;kind&quot;: &quot;t3&quot;, &quot;data&quot;: {&quot;subreddit_id&quot;: &quot;t5_2cneq&quot;, &quot;clicked&quot;: false, &quot;name&quot;: &quot;t3_70e4r&quot;, &quot;ups&quot;: 96, &quot;created&quot;: 1220928368.0, &quot;url&quot;: &quot;http:\/\/voices.washingtonpost.com\/the-trail\/2008\/09\/08\/obama_to_palin_dont_mock_the_c.html&quot;, &quot;num_comments&quot;: 9, &quot;downs&quot;: 61, &quot;author&quot;: &quot;andybigs&quot;, &quot;domain&quot;: &quot;voices.washingtonpost.com&quot;, &quot;subreddit&quot;: &quot;politics&quot;, &quot;score&quot;: 35, &quot;likes&quot;: null, &quot;title&quot;: &quot;Obama to Palin: 'Don't Mock the Constitution'&quot;, &quot;hidden&quot;: false, &quot;saved&quot;: false, &quot;id&quot;: &quot;70e4r&quot;}}]}}
</pre>
<p>So there you have it.  No auth string required, just open access to a portion of reddit&#8217;s db.  So far the only endpoint visible is URL.  With a little trial and error you can probably find some other useful endpoints other then the URL one listed.</p>
<img src="http://indexedcontent.com/?ak_action=api_record_view&id=464&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://indexedcontent.com/smo/reddit-smo/reddits-secret-api/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
