[UPDATE: Service Discontinued from 19th March 2013]
Are you looking for a method from where you can check weather a number is registered in NCCPR or not before sending the SMS?
Till now this can be only done if, you are a registered tele-marketer and have downloaded the data from TRAI website which is around 800 MB with weekly updates of 100 MB (twice).
ZNI has solved this issue with a free* API for developers and website owners across India. Through this API you can tell your customer that he is registered on DND and will not receive SMS as soon as he enters the data on your form.
So, how it gonna work?
We have a REST based API i.e. a simple HTTP GET/POST request. To get started you need to register at http://cbsserver.zni.in/dnd/register.asp
here it will ask for two step registration i.e. Your name and email ID. Once you entered that that our form will provide you an API Key. Please note this key as it will be required while you send any query to our server.
phone = 10 digit number which you want to check. No 91, 0 or + should be included.
apikey = A special key provided to you at the time of registration.
Once you make a request our system will return one of the following code:
0 = NOT in DND
1 = Registered in DND
-1 = Error Occurred
404 = API Key is invalid
400 = Your hourly API query limit reached
Currently we allow 1000 queries per hour by a single ID and not to mention each entity is allowed only one ID.