Local Domains Method
This method lists domains with DNS records pointing towards South African IP addresses.
URL:
Formats: json, php
Method(s): GET
Parameters:
http://extension.locality.co.za/api/0.1/domains/domains-list.[data_format]Formats: json, php
Method(s): GET
Parameters:
ip (string)[optional] Filter domains by IP address, in dot quad format.since (integer)[optional] Filter domains by discovery date, in UNIX timestamp format.
domains (array)The container array for the domain list, each item key is the domain name.> ip (integer)The IP address of the domain as defined in its DNS record.> timestamp (integer)The UNIX timestamp of when the domain was first added to our database.
- Request:
http://extension.locality.co.za/api/0.1/domains/domains-list.json?ip=196.220.58.66 - Response:
{ error_msg: null, error_type: null, response: { domains: { bt.co.za: { ip: -992200126, timestamp: 1269878043 }, webafrica.co.za: { ip: -992200126, timestamp: 1267103691 }, www.webafrica.co.za: { ip: -992200126, timestamp: 1262698263 } } }, timestamp: 1234567890 }
Please make considerable use of the since parameter to ensure only uncached data is requested. Our servers recursively update each domains IP address on a weekly basis, so full requests should not exceed a weekly frequency. IP addresses seen abusing the system will be null routed.
Fair Usage Guidelines
Please be considerate with your requests, in other words don't make more requests than necessary. Determine whether a single or bulk request is better suited for the data you require. An example would be to consider using timestamp filtering to retrieve only the data you require since your last request. Another consideration would be to locally cache content where possible.