{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/check_username/","auth":"required","settings":"","try":false,"basic_auth":false,"method":"get","params":[{"name":"api_token","type":"string","default":"","desc":"An api token from dashboard.justyo.co","required":true,"in":"query","ref":"","_id":"5429e1527d3ab608001b0f16"},{"name":"username","type":"string","default":"","desc":"The username to check availability of","required":true,"in":"query","ref":"","_id":"54712e39691dc80800895310"}],"results":{"codes":[{"status":200,"language":"json","code":"{\"exists\": false}","name":"Success"},{"status":200,"language":"json","code":"{\"exists\": true}","name":"Failure"},{"code":"","language":"text"}]}},"next":{"description":"","pages":[]},"title":"/check_username/","type":"endpoint","slug":"check_username","excerpt":"Checks if a username exists","body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Result Format\"\n}\n[/block]\nIf the user **is available**:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\\"exists\\\": true}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nIf the user **is not available**:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\\"exists\\\": false}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","updates":["5583b0dafb52ee0d0015cffb"],"order":3,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"54712e39691dc8080089530f","editedParams2":true,"category":{"sync":{"isSync":false,"url":""},"pages":["54295509cd35120800fceca8","54295ecb8d596e080056e9cd","542960538d596e080056e9dc","543825fdf1c2391400672541","5429e1527d3ab608001b0f15","5429e183e677b00800508789","54296344de0fb20800d96280","543f549455bb1008000956fb","54712e39691dc8080089530f"],"title":"Documentation","slug":"documentation","order":3,"from_sync":false,"reference":false,"_id":"54295508cd35120800fceca6","createdAt":"2014-09-29T12:48:08.939Z","version":"54295508cd35120800fceca5","__v":9,"project":"54295508cd35120800fceca2"},"user":"542954f6cd35120800fceca0","editedParams":true,"project":"54295508cd35120800fceca2","__v":1,"createdAt":"2014-11-23T00:45:45.736Z","githubsync":"","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["54295508cd35120800fceca6","5429e1307d3ab608001b0f14","543c975b1e6ad61400b04c79","543c976a1e6ad61400b04c7a","55b874fa8ea8d50d00922a1a","55b953a6b42b610d00c9b266","55b953b5e536930d00e36095","55b9566ce536930d00e360a7","55b95f28e512530d00a1b4d7"],"_id":"54295508cd35120800fceca5","project":"54295508cd35120800fceca2","releaseDate":"2014-09-29T12:48:08.901Z","createdAt":"2014-09-29T12:48:08.901Z","__v":9}}

get/check_username/

Checks if a username exists

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

api_token:
required
string
An api token from dashboard.justyo.co
username:
required
string
The username to check availability of

Result Format


Documentation

[block:api-header] { "type": "basic", "title": "Result Format" } [/block] If the user **is available**: [block:code] { "codes": [ { "code": "{\"exists\": true}", "language": "json" } ] } [/block] If the user **is not available**: [block:code] { "codes": [ { "code": "{\"exists\": false}", "language": "json" } ] } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}