I am trying to write a script (in PHP) that find a domain age (creation date and maybe if possible, last update and expiration date as well). I want the script to return something like: 2009,2009,2010 if creation date is 2009, update date is 2009, and expiration is 2010 (an array)
help?
(This is NOT a homework question so please provide as much help as possible)
If you need more information to explain the problem please write a comment and I will be glad to provide more information
Many domain registrars offer an API that can be queried for domain name lookups (though usually the API is offered only to resellers/affiliates). These API's are language neutral and so can be used by any programming/scripting language, including PHP.
Another option would be to do a domain lookup against a registrar's whois web interface and scrape the result. This isn't recommended though - mostregistrars implement CAPTCHAs to prevent this type of behavior.
Here's a small list of registrars that offer APIs:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With