MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getInstaUserInfo

Function getInstaUserInfo

scripts/insta_GLOBAL.js:64–73  ·  view source on GitHub ↗
(username)

Source from the content-addressed store, hash-verified

62 return all_urls;
63}
64export async function getInstaUserInfo(username) {
65 let res = await fetch(
66 "https://www.instagram.com/web/search/topsearch/?query=" + username
67 );
68 let json = await res.json();
69 if (json.status != "ok")
70 throw Error(t({ vi: "Server trả về lỗi", en: "Server response error" }));
71 console.log(json);
72 return json;
73}
74export async function getUidFromUsername(username) {
75 let json = await getInstaUserInfo(username);
76 console.log(json);

Callers 2

getUidFromUsernameFunction · 0.85

Calls 1

tFunction · 0.50

Tested by

no test coverage detected