Is there any way to find how many new accounts were created today?
On the profile page we have
You can check it using this link:
https://stackoverflow.com/users?page=66&tab=newusers&sort=creationdate
You might have to change the page number (I found it rather quickly using binary search), but right now that's where the cut-off is between one-day members and two-day members. 65 pages of 36 users each, that amounts to 2340.
I created a query in SEDE that brings up some of this data. Keep in mind that SEDE won't include users who have been deleted, so we can make guesses based on min and max user ids:
select cast(CreationDate as date), count(*) As Actual, max(Id)-min(Id) As Expected
from Users
where Id > 4999999
group by cast(CreationDate as date)
order by 1 desc
It's interesting to see the odd days where the two are wildly different, such as 23rd March that say 5k users really there, but a jump of 70k in user ids.
If you just need the total account created today, you can use the API:
https://api.stackexchange.com/2.2/users?fromdate=1460678400&todate=1460764800&site=stackoverflow&filter=!--YDD7Dv_qhO
Where:
Test it yourself:
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
var re = /(\d+)/;
if ((m = re.exec(xhttp.responseText)) !== null)
{
document.getElementById("demo").innerHTML = 'Today\'s users :' + m[0]
}
else
{
document.getElementById("demo").innerHTML = 'Something\'s wrong...';
}
}
};
var now = Math.floor(Date.now() / 1000);
var thisMorning = now - now % 86400;
xhttp.open("GET", "https://api.stackexchange.com/2.2/users?fromdate="+thisMorning+"&todate="+now+"&site=stackoverflow&filter=!--YDD7Dv_qhO", true);
xhttp.send();
}
<div id="demo">Let's update this counter</div>
<button type="button" onclick="loadDoc()">Click me</button>