osob.de Unicorn Logo

Random String API

This is a random string api. Just send a GET-Request to https://osob.de/r to get a random string with 64 characters. By adding a number to r, you can specify the length of the string. For example, https://osob.de/r/32 will return a string with 32 characters. The maximum length is 99999 characters.

Specify content type

You can choose between the content types json, xml and plain. Just add the file extension to the url. For example, https://osob.de/r/32.json will return a json response with the random string.

Json Example

{"random_string": "JtxsBGKkKxq"}

XML Example


Text Example


Javascript fetch example

You can also use the api with javascript. Just use the fetch function to get the random string.

    .then(response => response.json())
    .then(data => console.log(data.random_string))

Want a random string?

Get a random string