statuses/update.json?status=sample text some_url

The documentation mentions a number of parameters that could be passed in this POST API but I don’t find how to pass hashtags as well.

1 Like

You can pass them as part of the text itself, but I’d advise against using hashtags with the API. While they’re not prohibited, using hashtags that are currently trending can be seen by the API as attempting to influence trending topics, which can get your app restricted (and it’s difficult to avoid accidentally using a trending hashtag).

2 Likes

Thankyou @antsstyle.

1 Like

Yes, to follow on here, hashtags are just additional text in the status parameter. There’s no separate parameter for adding them, they are part of the body text of a Tweet. Over-use of hashtags, attempting to jump on to trending hashtags, etc can be spammy. You’re welcome to add a hashtag to a Tweet when you post via the API; but, also consider the Developer Policy and the Automation Rules.

1 Like

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