I'm working on a project where I need to count the number of contacts from the TextIt API. The API endpoint I'm using is https://textit.com/api/v2/contacts, but it only seems to return all the contact details, not just the count I need. I want to automate a spreadsheet that pulls this count once a day, but I'm not sure how to do it. Can anyone help me figure this out?
3 Answers
Have you tried finding this information through the API documentation? It could potentially save you a lot of time instead of pulling all data just to get a count. Also, I'd recommend checking if they offer any quicker methods to get just the count.
Actually, that specific call is meant to return contact details rather than just a count. If there's another endpoint available specifically for getting counts, that would be ideal. Otherwise, your best bet would be retrieving the full list and counting them yourself.
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String