https://github.com/xdevplatform/spaces-reach
A template app to show you how to get started with the Twitter Spaces API endpoints
https://github.com/xdevplatform/spaces-reach
twitter-api-v2 twitter-spaces
Last synced: 9 months ago
JSON representation
A template app to show you how to get started with the Twitter Spaces API endpoints
- Host: GitHub
- URL: https://github.com/xdevplatform/spaces-reach
- Owner: xdevplatform
- License: apache-2.0
- Created: 2021-08-17T19:13:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-21T14:53:08.000Z (over 3 years ago)
- Last Synced: 2025-03-21T12:21:31.288Z (10 months ago)
- Topics: twitter-api-v2, twitter-spaces
- Language: JavaScript
- Homepage:
- Size: 13 MB
- Stars: 19
- Watchers: 13
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spaces Reach 🟣🚀
Spaces Reach is a template app to show you how to get started with the Spaces endpoints to create experiences to measure the performance of your Spaces.
This app uses the new [Spaces endpoints](https://developer.twitter.com/en/docs/twitter-api/spaces/overview) to get details about a Space, such as title and participants.
It periodically checks the status of the Space to compute its duration, and to plot a chart of how many people are listening and speaking over time.
## How to make this code work for you
Before you start, make sure you have an active [Twitter developer account](https://t.co/signup).
As with all v2 endpoints, you will need to add an active app to any of your available Projects. For more details, [read our documentation](https://developer.twitter.com/en/docs/apps/overview).
You will need to configure some environment variables with your credentials. To do so, copy `.env.template` and rename it to `.env`, then fill the values in the file.
This app uses a Redis instance for caching purposes, but you can change the code and use any other service (or no service at all).