Samsung Smart TV APIs

Here for general support for E series TVs, request and problem solve area.
Post Reply

Posts: 1
Joined: Fri Nov 09, 2018 5:45 am

Samsung Smart TV APIs

Post by beresnevdr » Fri Nov 09, 2018 6:03 am


My model is Samsung UE40ES5507.
This script for API ...
Port API 7676.

Request command GetAvailableActions.
Response (401, 'Unauthorised')

This script python:

Code: Select all

import httplib, urllib2

class TVControl:
    def __init__(self,hostname):

    def SendSOAP(self,method,body):
        print '*',method

        headers = {
            "Content-type": 'text/xml;charset="utf-8"',
            "SOAPACTION": '""' % method

        conn = httplib.HTTPConnection(self.Hostname)
        conn.request("POST", "/smp_4_", body, headers)

        response = conn.getresponse()
        print(response.status, response.reason)

        data =

        print data
        print ''

        return data

    def GetAvailableActions(self):
        body='<s:Envelope xmlns:s="" s:encodingStyle="">'+\
                    '<u:GetAvailableActions xmlns:u=""></u:GetAvailableActions>'+\


I need to get information about the current channel, volume, etc.
Please help me.

Post Reply

Return to “[E] Support”