Tweet Web Intent

A Tweet Web Intent makes it easy for your site visitors to compose and post a Tweet to their audience from a link or child window of your webpage. Publishers may pre-populate Tweet text and hashtags, pass a URL, and identify Twitter accounts related to the page.

Tweet Web Intent

Web Intent URL

https://twitter.com/intent/tweet

Query parameters

Parameter Description Example Value
text Pre-populated UTF-8 and URL-encoded Tweet text. The passed text will appear pre-selected for a Twitter user to delete or edit before posting. The length of your passed Tweet text should not exceed 140 characters when combined with any passed hashtags, via, or url parameters. Passed Tweet text which causes the Tweet to exceed 140 characters in length will require additional editing by a Twitter user before he or she can successfully post. Hello%20World
url A fully-qualified URL with a HTTP or HTTPS scheme, URL-encoded. The provided URL will be shortened with Twitter’s t.co to the number of characters specified by short_url_length. https%3A%2F%2Fexample.com%2F
hashtags Allow easy discovery of Tweets by topic by including a comma-separated list of hashtag values without the preceding # character. nature,sunset
via A Twitter username to associate with the Tweet, such as your site’s Twitter account. The provided username will be appended to the end of the Tweet with the text “via @username”. A logged-out Twitter user will be encouraged to sign-in or join Twitter to engage with the via account’s Tweets. The account may be suggested as an account to follow after the user posts a Tweet. twitterdev
related Suggest additional Twitter usernames related to the Tweet as comma-separated values. Twitter may suggest these accounts to follow after the user posts their Tweet. You may provide a brief description of how the account relates to the Tweet with a URL-encoded comma and text after the username. twitter%3ATwitter%20News,twitterapi%3ATwitter%20API%20News
in-reply-to The Tweet ID of a parent Tweet in a conversation, such as the initial Tweet from your site or author account. 525001166233403393