Official Auto-Meme Enterprise API

(Not to be confused with the Yahoo Meme API.)

All you have to do is GET one of the following URLs:

The API may also be accessed from the original domain, meme.boxofjunk.ws.

Differences between .txt and .html:

.txt .html
-- — (—)
_FOO_ <em>FOO</em>

Ten memes are returned by default, separated by new line characters. To change the number of memes, append ?lines=n to the URL, where n is in the range 1–80.

Significant changes to the API will be posted to the Auto-Meme blog.

Don't hammer the server plz thx.

Diving in

From a shell

$ curl -s automeme.net/moar.txt?lines=1

Python

>>> import urllib
>>> url = 'http://automeme.net/moar.txt'
>>> memes = urllib.urlopen(url).read().rstrip().split("\n")
>>> print memes.pop()

Ruby

>> require "open-uri"
>> url = "http://automeme.net/moar.txt"
>> memes = open(url).read.split("\n")
>> puts memes.pop

Perl

use LWP::Simple;
getprint 'http://automeme.net/moar.txt?lines=1';

Credits

Ruby example by jamiew. Perl example by perigrin.


« Return