API Endpoints

some uselful restful json experiments.

Endpoints for your apps.

Here are some endpoints you can use or play around with either inside of your app(s) or simply for fun. This is an experiment project to test the capabilities of none SQL platforms and server latency.

Found a bug? Contact me at jakebown[at]gmail.com


address / get

Method GET URL Pattern /:lat/:lng/:summary

Gets the address of any lat and lon given, use summary as true to shorten the response

Request Open in Browser

curl http://jakeb.us/api/address/get/52.7084712/-2.7479962/true

Response

{
    "output": "The Old Meadow, Shrewsbury SY2 6GA, UK",
    "errors": false,
    "method": "get",
    "elapsed": "0.289"
}



address / dns

Method GET URL Pattern /:domain

Gets the DNS of a given domain name

Request Open in Browser

curl http://jakeb.us/api/address/dns/jakebown.com

Response

{
    "output": [
        {
            "host": "jakebown.com",
            "class": "IN",
            "ttl": 3788,
            "type": "HINFO",
            "cpu": "ANY obsoleted",
            "os": "See draft-ietf-dnsop-refuse-any"
        }
    ],
    "errors": false,
    "method": "get",
    "elapsed": "0.024"
}



colors / get

Method GET URL Pattern /:width/:height/:color

Generate a placeholder image of any height and width of upto 2,000px, you can specify a hex value (#fff) within the :color parameter

Request Open in Browser

curl http://jakeb.us/api/colors/get/32/32

Response




ip / get

Method GET URL Pattern /

Gets the IP address of a user. The demo below gets the address of the current server as it is being called in PHP.

Request Open in Browser

curl http://jakeb.us/api/ip/get/

Response

{
    "output": "178.62.31.223",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



names / get

Method GET URL Pattern /:count

Generates random names, setting the count outputs upto 100 names

Request Open in Browser

curl http://jakeb.us/api/names/get/3

Response

{
    "output": [
        "John Owen",
        "Liam Simpson",
        "Liam Peterson"
    ],
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



names / username

Method GET URL Pattern /:count

Generates random usernames, setting the count outputs upto 100 names

Request Open in Browser

curl http://jakeb.us/api/names/username/3

Response

{
    "output": [
        "funkadeliccera",
        "karibufanta",
        "wezortolken"
    ],
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



names / appname

Method GET URL Pattern /:count

Generates random App names, setting the count outputs upto 100 names

Request Open in Browser

curl http://jakeb.us/api/names/appname/3

Response

{
    "output": [
        "moneymicro",
        "filecow",
        "walkviro"
    ],
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



numbers / random

Method GET URL Pattern /:from/:to

Generates a random number between two sets of minimum and maximum.

Request Open in Browser

curl http://jakeb.us/api/numbers/random/5/40

Response

{
    "output": 5,
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



numbers / lottery

Method GET URL Pattern /:balls/:limit

Generate a lottery set based on how many balls are in the draw and the limit of highest ball in the result

Request Open in Browser

curl http://jakeb.us/api/numbers/lottery/6/49

Response

{
    "output": {
        "0": 21,
        "1": 44,
        "2": 8,
        "3": 6,
        "4": 11,
        "5": 28,
        "raffle": "GOLD 1357 7596"
    },
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



numbers / dogyears

Method GET URL Pattern /:age

Convert human years to dog years

Request Open in Browser

curl http://jakeb.us/api/numbers/dogyears/2

Response

{
    "output": 21,
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



numbers / isitchristmas

Method GET URL Pattern /

Checks if its Christmas day

Request Open in Browser

curl http://jakeb.us/api/numbers/isitchristmas

Response

{
    "output": "Not yet!",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



numbers / dayofbirth

Method GET URL Pattern /:dob

Find the day someone was born

Request Open in Browser

curl http://jakeb.us/api/numbers/dayofbirth/23-12-1989

Response

{
    "output": "Saturday",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



numbers / agefromyear

Method GET URL Pattern /:dob

Convert DOB (dd-mm-yyyy) to an age

Request Open in Browser

curl http://jakeb.us/api/numbers/agefromyear/23-12-1972

Response

{
    "output": 45,
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



numbers / math

Method GET URL Pattern /:a/:action/:b

Performs a calculation based on two numbers and an operator (plus, minus, times).

Request Open in Browser

curl http://jakeb.us/api/numbers/math/5/times/50

Response

{
    "output": 250,
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



string / reverse

Method GET URL Pattern /:string

Reverses a string of text

Request Open in Browser

curl http://jakeb.us/api/string/reverse/hello+world

Response

{
    "output": "dlrow olleh",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



string / replace

Method GET URL Pattern /:search/:replace/:string

Search and replace all occurences within a string

Request Open in Browser

curl http://jakeb.us/api/string/replace/bar/hello/foobarbaz

Response

{
    "output": "foohellobaz",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



string / longwinded

Method GET URL Pattern /:string

Spell out a word phonetically

Request Open in Browser

curl http://jakeb.us/api/string/longwinded/hello

Response

{
    "output": "haich eih ell ell oh",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



string / similar

Method GET URL Pattern /:string/:compare

Compare the similarity between two words

Request Open in Browser

curl http://jakeb.us/api/string/similar/dog/cat

Response

{
    "output": "10% similar",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}



string / movieautocomplete

Method GET URL Pattern /:movie

Autocomplete the title of a movie

Request Open in Browser

curl http://jakeb.us/api/string/movieautocomplete/godfath

Response

{
    "output": {
        "suggestions": [
            "godfather",
            "The Godfather",
            "The Godfather Collection",
            "The Three Godfathers"
        ],
        "author": "Google Movies"
    },
    "errors": false,
    "method": "get",
    "elapsed": "0.085"
}



string / spellcheck

Method GET URL Pattern /:string

Check the spelling of a word

Request Open in Browser

curl http://jakeb.us/api/string/spellcheck/photosinthesis

Response

{
    "output": {
        "photosinthesis": [
            "photosynthesis",
            "photosynthesis's",
            "photosynthesize",
            "photosynthesizes"
        ]
    },
    "errors": false,
    "method": "get",
    "elapsed": "0.006"
}



string / quote

Method GET URL Pattern /

Get a random quote

Request Open in Browser

curl http://jakeb.us/api/string/quote/

Response

{
    "output": {
        "quote": "We become what we think about.",
        "author": "Earl Nightingale"
    },
    "errors": false,
    "method": "get",
    "elapsed": "0.076"
}



string / capitalise

Method GET URL Pattern /:string

Capitalises a string

Request Open in Browser

curl http://jakeb.us/api/string/capitalise/hello+world

Response

{
    "output": "Hello World",
    "errors": false,
    "method": "get",
    "elapsed": "0.000"
}