Official Automeme Enterprise API

  1. Where the memes at?
  2. Diving in
  3. Legacy API
  4. Credits

Changes (5 Jan 2013)

The following domains are no longer supported:

These will continue to redirect to api.automeme.net until February 2013.

Where the memes at?

All you have to do is GET one of these URLs:

Format

There are some differences between text and html output:

text html
Emphasis _DERP_ <em>DERP</em> DERP
Smart quotes IT'S IT&rsquo;S IT’S
Ellipsis ... &#8230;
Em dash -- &mdash;
Snowman SNOWMAN &#9731;

Parameters

Ten memes are returned by default. Change this by appending ?lines=n to the URL, where n is a number in the range 1–80. For example: http://api.automeme.net/text?lines=25

If you liked Automeme before it was cool, use the vocab=hipster parameter for some unique hipster words.

Further info

Clients should handle HTTP redirects, which can occur if changes are made to the API. Significant API changes will be posted to the Automeme blog.

Diving in

From a shell

curl api.automeme.net/text?lines=1

Javascript with jQuery

var url = 'http://api.automeme.net/text.json',
    memes = [];
$.getJSON(url, function(result) {
    memes = result;
    console.log(result[0]);
});

Python

import urllib
url = 'http://api.automeme.net/text'
memes = urllib.urlopen(url).read().splitlines()
print memes[0]

Ruby

require 'open-uri'
url = 'http://api.automeme.net/text'
memes = open(url).read.split("\n")
puts memes.first

Perl

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

PHP

$url  = 'http://api.automeme.net/text?lines=1';
$meme = file_get_contents($url);
echo $meme;

Legacy API

These old API commands still work:

Current API Old API
/text /moar.txt
/html /moar.html
/text.json /moar.txt.json
/html.json /moar.html.json

These will also work with the automeme.net domain.

Deprecated

The following domains are no longer supported:

Credits


« Return