How's My SSL? provides a simple HTTP JSON API for developers that want to test clients without a browser experience:

The API is meant to test clients under your control, not the browsers of users coming to your website. If you would like to use the API to test your users' browsers, subscribe the domain your code will be making requests from at (Non-profit and student programs are available.)

An example response from the API:

    GET HTTP/1.1

      given_cipher_suites: [
      ephemeral_keys_supported: true,
      session_ticket_supported: true,
      tls_compression_supported: false,
      unknown_cipher_suite_supported: false,
      beast_vuln: false,
      able_to_detect_n_minus_one_splitting: false,
      insecure_cipher_suites: {
          "uses keys smaller than 128 bits in its encryption"
      tls_version: "TLS 1.2",
      rating: "Bad"

The returned JSON hash will have a least these keys, but may include more as howsmyssl evolves. Each of these keys map fairly obviously to the HTML version and it can be helpful to understand their meaning. The source code that gathers the client info may also be helpful. All strings returned may contain HTML escaped text.

Let me be a little more explicit. How's My SSL is Open Source software and can be found on GitHub. There's a README.