Help & Frequently Asked Questions


Overview

ThaiIDCard.com provides an API that allows developers to read Thai National ID Smartcards. You can call our API at http://localhost:8081/json to retrieve smartcard data.

How to Use the API

To get the smartcard data, make a simple HTTP request:


GET http://localhost:8081/json
        
Example Response

{
        "citizenid": "1234567890123",
        "name": "John Doe",
        "dob": "1990-01-01",
        "gender": "Male",
        "address": "Bangkok, Thailand"
}
        
Frequently Asked Questions
  • Q: What do I need to use this API?
    A: You need a Thai National ID Smartcard reader and the necessary drivers installed.
  • Q: How do I handle errors?
    A: The API returns a JSON response with an error message if something goes wrong. Example:
    
    {
        102:Failed to read smart card data.
    }
                    
  • Q: Can I use this API with other programming languages?
    A: Yes! You can call this API from Python, JavaScript, C#, and more.
Need More Help?

If you need further assistance, please visit our Contact Page or refer to our API Documentation.