irdb API

Caveats

This API is in beta status and might change without prior warning. We would like to hear from you if you use this API, and are open for requests regarding additional functionality. For now, there a re no limits on the number of requests you can make. However, please contact us if you would like to use the API in a commercial product.

Drill down on database

You can query the database programmatically. For example, to find all brands:

# Get brands
http://irdb.tk/api/brand/

Next, see which device types there are for a certain brand:

# Get device types
http://irdb.tk/api/devicetype/?brand=JVC

See which sets of codes we have for that brand and device type:

# Get the codesets
http://irdb.tk/api/codeset/?brand=JVC&devicetype=TV

Finally, get the code with the protocol, device, and subdevice information we just derived from above:

# Get the codes
http://irdb.tk/api/code/?brand=JVC&devicetype=TV&protocol=JVC&device=3&subdevice=

Find IR signals for certain devices

Or, to find all codes for JVC TVs:

http://irdb.tk/api/code/?brand=JVC&devicetype=TV

This returns a JSON list, containing protocol, device, subdevice, and OBC.

{
  "meta": {
    "model": "code", 
    "next": "/api/code/?brand=JVC&devicetype=TV", 
    "page": 1, 
    "previous": ""
  }, 
  "objects": [
    {
      "function": "", 
      "protocol": "JVC", 
      "subdevice": "", 
      "devicetype": "TV", 
      "device": "3", 
      "functionname": "MAIN/SAP"
    }, 
    {
      "function": "3", 
      "protocol": "JVC", 
      "subdevice": "", 
      "devicetype": "TV", 
      "device": "3", 
      "functionname": "SLEEP TIMER"
    }
  ]
}

Interpret and convert IR signals

Input raw timings like so:

http://irdb.tk/api/decode/+9024%20-4512%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-564%20+564%20-1692%20+564%20-1692%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-564%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-1692%20+564%20-40884

You get back this:

{
  "meta": {
    "next": "", 
    "page": 1, 
    "previous": ""
  }, 
  "objects": [
    {
      "protocol": "Fujitsu", 
      "device": "134", 
      "subdevice": "None",
      "function": "42"
    }
  ]
}

You can also input Pronto Hex:

http://irdb.tk/api/decode/0000%200070%200000%200032%200080%200040%200010%200010%200010%200010%200010%200030%200010%200010%200010%200030%200010%200010%200010%200010%200010%200010%200010%200030%200010%200030%200010%200010%200010%200010%200010%200010%200010%200030%200010%200030%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200010%200030%200010%200030%200010%200010%200010%200010%200010%200010%200010%200010%200010%200030%200010%200010%200010%200030%200010%200030%200010%200010%200010%200010%200010%200010%200010%200010%200010%200030%200010%200010%200010%200030%200010%200010%200010%200030%200010%200010%200010%200030%200010%200010%200010%200010%200010%2006DE

Or UEI Hex:

http://irdb.tk/api/decode/00%2000%202D%2000%20D8%2004%2006%20C0%2003%2060%2000%20D8%2000%20D8%2000%20D8%2002%2088%2000%20D8%205C%20D0%20B2%2001%2012%2012%2011%2012%2021%2011%2022%2011%2011%2011%2011%2011%2022%2011%2011%2021%2022%2011%2011%2021%2021%2021%2021%2013

This API in use

Third parties are invited to use this API.

We would like to hear from you if you use this API, so please drop us a note.



Discuss »