This project provides helper libraries and command-line interfaces (CLIs) for interacting with the C99 API in PHP, Go, and Python. These implementations make it easy to integrate C99 API functionality into your projects or use them directly from the command line.
- Easy-to-use wrappers for C99 API endpoints
- Support for multiple programming languages: PHP, Go, and Python
- Command-line interfaces for quick access to API functionality
- Comprehensive set of methods covering various C99 API features
- Include the
C99.phpfile in your project. - Instantiate the
C99class with your API key.
- Clone the repository or copy the
c99_api.gofile into your project. - Build the CLI tool:
go build c99_api.go
- Ensure you have Python 3.x installed.
- Install the required dependencies:
pip install requests - Copy the
c99_api.pyfile into your project directory.
require_once 'C99.php';
$apiKey = 'your_api_key_here';
$c99 = new C99(['apikey' => $apiKey]);
$result = $c99->get_sub_domains('example.com');
print_r($result);To use the Go CLI:
./c99_api <apikey> <method> [args...]
For example:
./c99_api your_api_key_here GetSubDomains example.com
To list all available methods:
./c99_api your_api_key_here list
To use the Python CLI:
python c99_api.py --apikey your_api_key_here --method method_name --args arg1 arg2
For example:
python c99_api.py --apikey your_api_key_here --method get_sub_domains --args example.com
To list all available methods:
python c99_api.py --apikey your_api_key_here --list
Below is a comprehensive list of all available methods in the C99 API Helper, along with examples of how to use them in PHP, Go, and Python.
Finds subdomains of a given domain.
PHP:
$result = $c99->get_sub_domains('example.com');Go:
./c99_api your_api_key GetSubDomains example.com
Python:
python c99_api.py --apikey your_api_key --method get_sub_domains --args example.com
Get information about a phone number.
PHP:
$result = $c99->get_phone_info('+1234567890');Go:
./c99_api your_api_key GetPhoneInfo +1234567890
Python:
python c99_api.py --apikey your_api_key --method get_phone_info --args +1234567890
Get information about a Skype user.
PHP:
$result = $c99->get_skype_user_info('username');Go:
./c99_api your_api_key GetSkypeUserInfo username
Python:
python c99_api.py --apikey your_api_key --method get_skype_user_info --args username
Get Skype information associated with an IP address.
PHP:
$result = $c99->get_skype_ip_info('192.168.1.1');Go:
./c99_api your_api_key GetSkypeIPInfo 192.168.1.1
Python:
python c99_api.py --apikey your_api_key --method get_skype_ip_info --args 192.168.1.1
Detect firewalls on a given domain.
PHP:
$result = $c99->firewall_resolver('example.com');Go:
./c99_api your_api_key FirewallResolver example.com
Python:
python c99_api.py --apikey your_api_key --method firewall_resolver --args example.com
Scan ports on a given IP address.
PHP:
$result = $c99->port_scanner('192.168.1.1');Go:
./c99_api your_api_key PortScanner 192.168.1.1
Python:
python c99_api.py --apikey your_api_key --method port_scanner --args 192.168.1.1
Check if a specific port is open on a given host.
PHP:
$result = $c99->check_port('example.com', '80');Go:
./c99_api your_api_key CheckPort example.com 80
Python:
python c99_api.py --apikey your_api_key --method check_port --args example.com 80
Ping a given IP address.
PHP:
$result = $c99->ping('192.168.1.1');Go:
./c99_api your_api_key Ping 192.168.1.1
Python:
python c99_api.py --apikey your_api_key --method ping --args 192.168.1.1
Resolve hostname for a given IP address.
PHP:
$result = $c99->hostname_resolver('192.168.1.1');Go:
./c99_api your_api_key HostnameResolver 192.168.1.1
Python:
python c99_api.py --apikey your_api_key --method hostname_resolver --args 192.168.1.1
Check DNS records for a given domain.
PHP:
$result = $c99->dnschecker('example.com');Go:
./c99_api your_api_key DNSChecker example.com
Python:
python c99_api.py --apikey your_api_key --method dnschecker --args example.com
Remember to replace your_api_key with your actual C99 API key in all examples.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open-source and available under the MIT License.