LONDON — Twitter Inc. has published data sets comprising millions of tweets, images and videos, and thousands of accounts linked to operatives based in Russia and Iran, shedding light on how bad actors outside the U.S. sought to manipulate social-media discourse in their home countries and abroad.

The social-media company said it was opening up the data to encourage independent analysis.

The data sets released are made up of 3,841 accounts affiliated with the Russia-based Internet Research Agency, 770 other accounts potentially based in Iran as well as 10 million tweets and over 2 million images, videos and other media.

The Russian operation’s goals included interfering in the U.S. presidential race, dividing online communities, unifying support for Russia’s interests and weakening trust in American institutions, according to the Atlantic Council’s Digital Forensic Research Lab.

Only subscribers are eligible to post comments. Please subscribe or to participate in the conversation. Here’s why.

Use the form below to reset your password. When you've submitted your account email, we will send an email with a reset code.