Skip to content

Tweetscout API: 403 Forbidden #53

@Lezek123

Description

@Lezek123

The problem

Requests to tweetscout API fail with 403 Forbidden and a message: 'api key not payed'.

We're using this API to get:

  • number of @JoystreamDAO followers on X
  • @JoystreamDAO's tweetscoutScore (unique for tweetscout)
  • @JoystreamDAO's "topFollowers" (Featured followers on https://www.joystream.org) on X

Because the API doesn't work anymore and we're missing this data, we get validation errors in this status server, ie.:

ZodError: [
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "null",
    "path": [
      "community",
      "twitterFollowerCount"
    ],
    "message": "Expected number, received null"
  },
  // ...

This prevents ALL dashboard data from being updated, resulting in stale data being displayed on https://www.joystream.org/

Possible solutions

  1. Pay for tweetscout API access ($49 / 10k requests according to https://app.tweetscout.io/developer)
  2. Use free tier of X.com API to retrieve the number of followers (https://api.twitter.com/2/users/by/username/JoystreamDAO?user.fields=public_metrics), remove other statistics like Tweetscout score and Featured followers from joystream.org.

Additionally, the validation issue should be addressed separately (see #54)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions