Random Word API

The easiest way to get a random word (built on top of setgetgo.com)

Getting a random word

Simply fire a GET request to http://setgetgo.com/randomword/get.php

That's it.

Optional parameters

len: define the length of the word that you want returned, must be an int between 3 and 20.

Info

- Compatible with JSONP!
- info@setgetgo.com

Example Usage with Python

    import requests
    word = requests.get('http://setgetgo.com/randomword/get.php').text

Example Usage with Javascript/JQuery

    function RandomWord() {
        var requestStr = "http://randomword.setgetgo.com/get.php";

        $.ajax({
            type: "GET",
            url: requestStr,
            dataType: "jsonp",
            jsonpCallback: 'RandomWordComplete'
        });
    }

    function RandomWordComplete(data) {
        alert(data.Word);
    }