Software Architect / Microsoft MVP (AI) and Technical Author

C#, Social Media, Social Opinion API, Tooling, Twitter, Twitter API v2

Social Opinion API and the new Twitter API (v2)

This post is a recap of the past few days activity.

Version 2 of the new Twitter API was shipped this week. Version 2 is a ground up rebuild of the Twitter API and lets you surface a whole new range of insights, metrics, behavioural data and more.

At the time of writing, the following endpoints are available:

  • Filtered Stream
  • Recent Search
  • Sampled Stream
  • Tweet Lookup
  • User Lookup

The production endpoints for V2 are open for early access through the new developer portal.

Social Opinion API and Twitter API (v2)

Through the Labs initiative and with the support of the DevRel Team at Twitter I built an SDK for .NET developers. It’s called Social Opinion API. It makes it easy to connect to the new Twitter API, extract data and tap into the public consciousnesses with a few lines of code.

For example, here you can see how to use the Social Opinion API to search for 100 Tweets with references to “iphone”:

I’ve been using the Social Opinion API to build a web application and services on Azure that can ingest, processes and render data at scale. For example, here you can see a dashboard that is powered by the Social Opinion API:

And a sample of the Audience Intelligence:

Where can you get the Social Opinion API?

The Social Opinion API is written in C#, targets .NET Core and is available on the Twitter API developer site in the Tools and Libraries section:

It’s also available on NuGet:

Social Opinion API Alignment

This weekend the Social Opinion API was ported from using Labs Endpoints to the production counterparts meaning that it has support for:

  • Tweet Lookup
  • Recent Search
  • Filtered Stream
  • Sampled Stream
  • User Lookup

Before using it however you must create a new Twitter Developer Project and Application with the new Developer Portal.

I have a collection of blog posts that covered each of the endpoints as I built each integration which you can look at and serve as good background information.  You can get early access to the new Twitter API and Developer Portal here.

Next Steps

The Social Opinion API has been versioned to match the versioning of the new Twitter API (v2) and going forward it will be kept in line with new releases of the Twitter API. As the API grows and I might need some help keeping it updated. If you would like to contribute, then let me know.

***Update June 2021***

I’ve used aspects of this API to support the Social Opinion SaaS.  You can use Social Opinion to:

  • discover new content and audiences
  • analyse, grow and maintain your Twitter account
  • save time with the Tweet Scheduler
  • find your best performing content
  • see what your followers care about in dashboards
  • find out the days and times your followers are active with heatmaps


Find out more about Social Opinion here.


Get the latest content and code from the blog posts!
I respect your privacy. No spam. Ever.

Leave a Reply