4

I am looking for a web api that is open source that will help me generate random words that are actually in the dictionary I have check out wordink but they charge for all requests over 15k an hour. I have also checked out chance.js but that library will spit out random letters.

1 Answer 1

2

I would check out Random Word API. It's simple and free to use. If your looking for JS code, here it is:

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);
}
7
  • Thanks for the answer but is it possible to write the JQuery in pure javascript Jul 29, 2015 at 2:09
  • You could add query to your script or your could fetch it without query, let me see if I can write something quickly to get it
    – Tom
    Jul 29, 2015 at 2:40
  • 1
    pastebin.com/vjiGaFki
    – Tom
    Jul 29, 2015 at 2:57
  • A great API, thanks. I also liked randomimage.setgetgo.com
    – Mawg
    Jul 29, 2015 at 10:06
  • Great:), glad to help
    – Tom
    Jul 29, 2015 at 13:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.