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

https://osob.de/11r.json
{"random_string": "TWVnvStVKSP"}

XML Example

https://osob.de/r14.xml
<randomString>ByzvkdShShdLfA</randomString>

Text Example

https://osob.de/r4
GzuZ

Javascript fetch example

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

fetch('https://osob.de/r.json')
    .then(response => response.json())
    .then(data => console.log(data.random_string))

Want a random string?

Get a random string