Skip to content

Instantly share code, notes, and snippets.

@0xdeepmehta
Last active September 9, 2022 11:25
Show Gist options
  • Save 0xdeepmehta/1782ccc12a620cb89bcebabdcf1a2e5b to your computer and use it in GitHub Desktop.
Save 0xdeepmehta/1782ccc12a620cb89bcebabdcf1a2e5b to your computer and use it in GitHub Desktop.
check whether username exist in proton or not
await fetch("https://account.proton.me/api/users/available?Name=0xdeepmehta%40protonmail.com&ParseDomain=1", {
"headers": {
"accept": "application/vnd.protonmail.v1+json",
"accept-language": "en-GB,en;q=0.6",
"cache-control": "no-cache",
"pragma": "no-cache",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"sec-gpc": "1",
"x-pm-appversion": "web-account@5.0.6.3",
"x-pm-locale": "en_US"
},
"referrer": "https://account.proton.me/signup?plan=free&billing=12&currency=EUR&language=en",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": null,
"method": "GET",
"mode": "cors",
"credentials": "include"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment