at the v2 tweet search endpoint, and want to get details of the userfields that interact with certain tweets

here my code

const {q, max_res, expans, twtfields, userfields}= params

const appOnlyClient = await userClient.appLogin();
const jsTweets = await appOnlyClient.v2.search(
q,{‘tweet.fields’:twtfields,‘user.fields’:userfields,‘expansions’:[expans] });

if expansion is omitted, it is successful, but userfields are not included, only tweetfields are included

I’m not sure what you mean exactly but all the user info is inside includes.users not inside data in case that’s it

1 Like