instagram-private-api icon indicating copy to clipboard operation
instagram-private-api copied to clipboard

Is there anyway to get muted account list?

Open ariamousavi945 opened this issue 4 years ago • 2 comments
trafficstars

I wanna get muted list where I can get from settings>privacy>muted accounts, any api exists?

ariamousavi945 avatar Feb 01 '21 08:02 ariamousavi945

There's no convenient way to do this.

POST https://i.instagram.com/api/v1/bloks/apps/com.instagram.growth.screens.muted_users/

I lost the form, but it does ask for _csrftoken and _uuid. There are two other objects.

The problem is the body:

{
  "layout": {
    "bloks_payload": {
      "data": [],
      "tree": {
        "㐅": {
          "*": "column",
          " ": [
            {
              "㐈": {
                "-": "(ig.action.navigation.OpenUserDetail, \"123456789\", \"muted_user\")",
                " ": [
                  {
                    "㐈": {
                      "&": {
                        "㐂": {
                          ".": "25dp",
                          "+": true
                        }
                      },
                      " ": [
                        {
                          "㐋": {
                            ")": "AVATAR URL",
                            "(": "cover"
                          }
                        }
                      ],
                      "„": {
                        "㐸": {
                          "0": "12dp",
                          "D": "50dp",
                          "*": "50dp",
                          "A": 0
                        }
                      }
                    }
                  },
                  {
                    "㐈": {
                      ")": "column",
                      "$": "stretch",
                      " ": [
                        {
                          "㐗": {
                            "0": {
                              "㐵": {
                                "$": "#000000",
                                "#": "#fafafa"
                              }
                            },
                            ")": "ANNOYING USER",
                            "-": "18sp"
                          }
                        },
                        {
                          "㐗": {
                            "0": {
                              "㐵": {
                                "$": "#8E8E8E",
                                "#": "#8E8E8E"
                              }
                            },
                            ")": "WHAT YOU ARE MUTING",
                            "-": "14sp"
                          }
                        }
                      ]
                    }
                  }
                ],
                "„": {
                  "㐸": {
                    "7": "12dp",
                    "9": "20dp",
                    "D": "100%",
                    "=": "12dp",
                    ":": "20dp"
                  }
                }
              }
            }
          ],
          "„": {
            "㐸": {
              "D": "100%",
              "*": "100%"
            }
          }
        }
      }
    }
  },
  "status": "ok"
}

Replace 123456789 with user ID, AVATAR URL with avatar URL, ANNOYING USER with user's full name, and WHAT YOU ARE MUTING with a localized description of what you're muting (eg. "muting their stories").

austinhuang0131 avatar Mar 21 '21 20:03 austinhuang0131

how can u parse it this response ?

erhancan256 avatar Dec 06 '23 23:12 erhancan256