def GetFirstMember(sid):
    s = idaapi.get_struc(sid)
    if not s:
        return -1

    return idaapi.get_struc_first_offset(s)
Get offset of the first member of a structure
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetFirstMember