Hi there,

I’m trying to use the mentions timeline for my account TweetZork. I’m having a variety of issues, including mentions appearing in my web timeline but not through the REST API endpoint and mentions from known reputable accounts (i.e. my personal account) not showing up at all on web or REST API. I’m respecting the API limits (polling every 30 seconds) and not receiving any errors.

The TweetZork account is quite new and doing automated replies to those mentions; could I be in some kind of account purgatory? Is there any way for me to get out (get more followers, etc.)?

Thanks!

Thanks for reaching out. I have a few follow up questions here:

  1. What endpoint are you using here?
  2. Can you provide an example of a Tweet you are expecting to see here but aren’t?
  3. Do you have a code snippet available that we can take a look at?

Thanks again!

Jessica

Hi Jessica!

I’m using the statuses/mentions_timeline endpoint.

/jwkingsman/status/1206321975846506497 is an example of a tweet I cannot see on my web notifications timeline nor see through the API (every tweet mentioning the bot should/will have an automated response if it shows up in the timeline API).

I’m using pretty generic code but can confirm it works fine for /some/ mentions; the ones that it doesn’t work for are never seen in either the API endpoint or the notifications web tab, so I think the issue is at a higher level than my API access.

I’m also seeing @TweetZork’s reply tweets occasionally invisible from my main account I’m tweeting @ it with (/jwkingsman/status/1206288763594264577):

image

Thanks for following up here. There are many reasons why a Tweet won’t show in the mentions_timelines. It could be helpful to see the code snippet you are using to call this endpoint? Are you using a library to connect to this endpoint? If so, which one?

Also you referring to the fact that you can’t see the Tweet that says “this Tweet is unavailable”?

I’m using https://github[.]com/jessamynsmith/twitterbot; relevant code is in /twitter_bot/twitter_bot.py in reply_to_mentions(). It’s directly calling the twitter API lib.

Yes, both that the tweet is unavailable and also that /jwkingsman/status/1206321975846506497 (among others) doesn’t show via the REST API nor the web notifications timeline, so it seems like this issue is higher order than my specific REST usage.

Here are my recent notifications where that should appear, but doesn’t:

Thanks for all the follow up, there are many reasons why mentions_timeline endpoint doesn’t show and we, therefore, cannot guarantee that every single Tweet with a user’s @screen_name will be returned. It’s also possible that this is happening because the Tweet in question could be a reply.

One suggestion is making sure that you pass in the right since_id and max_id parameters as well. Be sure to check out our documentation on the subject.

I’ve been manually reviewing those when making calls during/after my examples that haven’t come through.

So it sounds like there’s not much you can do for me? There’s no chance the account could be filtered in some way due to newness/automated activity? Sure seems like since the general web app notifications page doesn’t show them either it’s more than just API misuse.

I think if you use the Account Activity API you’ll be able to get an unfiltered stream of events, rather than relying on the REST API. Account Activity API | Twitter API | Docs | Twitter Developer Platform

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.