The original Data Soap API for individual lookups - a request is made and the result is returned directly, with the caller waiting on the response.
Back to API listThe synchronous API currently supports HLR (Home Location Register), Landline, TPS (Telephone Preference Service), MPS (Mail Preference Service), Email and Unsubscribe lookups. A request is made by your server and the API waits until validation is complete before responding - your server waits on the response.
Considerations
Looking for something else? See the Asynchronous API or the Batch API.
Set up an API password from your account's profile section - by default API access is denied until a password is set. Make sure you have credits for the services you want to run; if not, purchase them from the bundles page.
Requests go to api.datasoap.co.uk over SSL (port 443), with credentials and lookup details appended as a query string. The API always returns a 200 (OK) response, with the result (or an error code) in the body.
https://api.datasoap.co.uk/?output=json&number={Number}&type={Type}&validationEmail={Email}&validationAddress={Address}&validationName={Name}
Checks a number against the UK's Telephone Preference Service (TPS) and Corporate TPS (CTPS) registers.
https://api.datasoap.co.uk/?output=JSON&number={Number}&type=TPS
Authorization: Token 29291c3daf4547f596cfd1ef2c8f664d0f726318b3084c1da1cbe05ffaad1bd5=
{"DataSoapAPIResponse": {"TPSResult": { "MSISDN": "00447976123456", "TPS": true, "CTPS": false, "DNC": true, "TPSID": 12032505 }}}
https://api.datasoap.co.uk/?output=JSON&number={Number}&type=HLR
Authorization: Token 29291c3daf4547f596cfd1ef2c8f664d0f726318b3084c1da1cbe05ffaad1bd5=
{"DataSoapAPIResponse": {"HLRResult": { "MSISDN": "00447976123456", "MCC": "234", "MNC": "10", "CountryName": "United Kingdom of Great Britain and Northern Ireland", "NetworkName": "UK - 02 (UK) Limited", "On": true }}}
https://api.datasoap.co.uk/?output=JSON&validationAddress={Address}&validationName={Name}&type=MPS
Authorization: Token 29291c3daf4547f596cfd1ef2c8f664d0f726318b3084c1da1cbe05ffaad1bd5=
{"DataSoapAPIResponse": {"MpsResult": { "OnMps": true, "DateRequested": "01/01/2000", "MatchLevel": "ExactMatch" }}}
https://api.datasoap.co.uk/?output=JSON&number={Number}&type=Landline
Authorization: Token 29291c3daf4547f596cfd1ef2c8f664d0f726318b3084c1da1cbe05ffaad1bd5=
{"DataSoapAPIResponse": {"LandlineResult": { "MSISDN": "00442078560422", "IsActive": true }}}
https://api.datasoap.co.uk/?output=JSON&validationemail={Email}&type=Email
Authorization: Token 29291c3daf4547f596cfd1ef2c8f664d0f726318b3084c1da1cbe05ffaad1bd5=
{"DataSoapAPIResponse": {"EmailValidationResult": { "Email": "joe.b@datasoap.co.uk", "User": "joe.b", "Domain": "datasoap.co.uk", "IsHighQuality": false, "Reason": "Low Deliverability", "IsFree": false, "IsDisposable": false, "IsRole": false, "AcceptsAll": true }}}
An unsuccessful query returns an error code - see Error codes below.
https://api.datasoap.co.uk/?output=JSON&number={Number}&type=Unsubscribe
Authorization: Token 29291c3daf4547f596cfd1ef2c8f664d0f726318b3084c1da1cbe05ffaad1bd5=
{"DataSoapAPIResponse": {"UnsubscribeResult": { "MSISDN": "00442078560422", "OnCompany": false, "OnCompanyDateAdded": null }}}
Common to all services
HLR lookups
Email lookups
* Temporary error codes may return a different result if retried in quick succession, due to network fluctuations.
The same infrastructure behind every endpoint on this page, in production today.