Hi there,
I am trying to pull the Category/Topic of Tweets for a school project.
I am not seeing it as one of the keys in public_tweets (below), was wondering if it was located within a variable somewhere else? Thanks!

Example of a Twitter Topic/Category (would like to pull the “Lebron James” label):

It looks like you’re looking at a v1.1 Tweet JSON format, and the v2 API has Overview | Docs | Twitter Developer Platform annotations.

Here’s a full v2 payload i got with twarc, twarc2 (en) - twarc which includes the Annotations

{
"data": [
    {
      "lang": "en",
      "attachments": {
        "media_keys": [
          "3_1483045075446013955"
        ]
      },
      "source": "Twitter for Android",
      "context_annotations": [
        {
          "domain": {
            "id": "3",
            "name": "TV Shows",
            "description": "Television shows from around the world"
          },
          "entity": {
            "id": "10000607734",
            "name": "NBA Basketball",
            "description": "All the latest basketball action from the NBA."
          }
        },
        {
          "domain": {
            "id": "3",
            "name": "TV Shows",
            "description": "Television shows from around the world"
          },
          "entity": {
            "id": "10029190505",
            "name": "Live: NBA Basketball",
            "description": "Live coverage from the National Basketball Association, the top basketball league in North America."
          }
        },
        {
          "domain": {
            "id": "3",
            "name": "TV Shows",
            "description": "Television shows from around the world"
          },
          "entity": {
            "id": "10029304530",
            "name": "NBA Basketball"
          }
        },
        {
          "domain": {
            "id": "6",
            "name": "Sports Event"
          },
          "entity": {
            "id": "1479062022956281856",
            "name": "NBA All-Star Weekend 2022",
            "description": "NBA All-Star 2022 will be held February 18-20 in Cleveland, Ohio. Festivities kick off with the Rising Stars tournament and continue throughout the weekend with the Skills Challenge, 3-Point Contest and Slam Dunk Contest, concluding with the 71st NBA All-Star Game at the newly-remodeled Rocket Mortgage FieldHouse. NBA All-Star 2022 will also commemorate the league's 75th anniversary of the NBA, and celebrate the unveiling of the 75 greatest players in league history. Keep it here for all the updates and highlights from Cleveland."
          }
        },
        {
          "domain": {
            "id": "10",
            "name": "Person",
            "description": "Named people in the world like Nelson Mandela"
          },
          "entity": {
            "id": "788447816561467392",
            "name": "LeBron James",
            "description": "LeBron James"
          }
        },
        {
          "domain": {
            "id": "11",
            "name": "Sport",
            "description": "Types of sports, like soccer and basketball"
          },
          "entity": {
            "id": "706083902411055104",
            "name": "Basketball"
          }
        },
        {
          "domain": {
            "id": "26",
            "name": "Sports League",
            "description": ""
          },
          "entity": {
            "id": "706083889454813185",
            "name": "NBA"
          }
        },
        {
          "domain": {
            "id": "60",
            "name": "Athlete",
            "description": "An athlete in the world, like Serena Williams or Lionel Messi"
          },
          "entity": {
            "id": "788447816561467392",
            "name": "LeBron James",
            "description": "LeBron James"
          }
        }
      ],
      "text": "Peace! ✌️ #LeBronJames #NBAAllStar https://t.co/H1olGLbVw6",
      "entities": {
        "urls": [
          {
            "start": 35,
            "end": 58,
            "url": "https://t.co/H1olGLbVw6",
            "expanded_url": "https://twitter.com/ddiyyue/status/1483045079552262146/photo/1",
            "display_url": "pic.twitter.com/H1olGLbVw6"
          }
        ],
        "hashtags": [
          {
            "start": 10,
            "end": 22,
            "tag": "LeBronJames"
          },
          {
            "start": 23,
            "end": 34,
            "tag": "NBAAllStar"
          }
        ]
      },
      "author_id": "1065333677079449600",
      "possibly_sensitive": false,
      "conversation_id": "1483045079552262146",
      "created_at": "2022-01-17T11:54:35.000Z",
      "public_metrics": {
        "retweet_count": 166,
        "reply_count": 2,
        "like_count": 44,
        "quote_count": 3
      },
      "id": "1483045079552262146",
      "reply_settings": "everyone"
    }
  ],
  "includes": {
    "media": [
      {
        "media_key": "3_1483045075446013955",
        "url": "https://pbs.twimg.com/media/FJTVo3vaIAMxn89.jpg",
        "type": "photo",
        "height": 2048,
        "width": 2048
      }
    ],
    "users": [
      {
        "id": "1065333677079449600",
        "profile_image_url": "https://pbs.twimg.com/profile_images/1264190320012488705/HkfKrpKc_normal.jpg",
        "url": "",
        "name": "SHEN YUE READ MY LETTER 🍞🍞🍞",
        "pinned_tweet_id": "1438096714838122501",
        "verified": false,
        "description": "JES 💜💛 Lots of #DiYue / #YueDi 💜💛 with #ZhaiZiLu on the side ❤️ and #MikeAngelo sometimes 💙 #BeFinanciallyLiterate #MakeItWorthIt",
        "protected": false,
        "public_metrics": {
          "followers_count": 1219,
          "following_count": 84,
          "tweet_count": 7578,
          "listed_count": 0
        },
        "entities": {
          "description": {
            "hashtags": [
              {
                "start": 15,
                "end": 21,
                "tag": "DiYue"
              },
              {
                "start": 24,
                "end": 30,
                "tag": "YueDi"
              },
              {
                "start": 39,
                "end": 48,
                "tag": "ZhaiZiLu"
              },
              {
                "start": 68,
                "end": 79,
                "tag": "MikeAngelo"
              },
              {
                "start": 92,
                "end": 114,
                "tag": "BeFinanciallyLiterate"
              },
              {
                "start": 115,
                "end": 129,
                "tag": "MakeItWorthIt"
              }
            ]
          }
        },
        "created_at": "2018-11-21T19:58:36.000Z",
        "username": "ddiyyue"
      }
    ]
  },
  "__twarc": {
    "url": "https://api.twitter.com/2/tweets?expansions=author_id%2Cin_reply_to_user_id%2Creferenced_tweets.id%2Creferenced_tweets.id.author_id%2Centities.mentions.username%2Cattachments.poll_ids%2Cattachments.media_keys%2Cgeo.place_id&tweet.fields=attachments%2Cauthor_id%2Ccontext_annotations%2Cconversation_id%2Ccreated_at%2Centities%2Cgeo%2Cid%2Cin_reply_to_user_id%2Clang%2Cpublic_metrics%2Ctext%2Cpossibly_sensitive%2Creferenced_tweets%2Creply_settings%2Csource%2Cwithheld&user.fields=created_at%2Cdescription%2Centities%2Cid%2Clocation%2Cname%2Cpinned_tweet_id%2Cprofile_image_url%2Cprotected%2Cpublic_metrics%2Curl%2Cusername%2Cverified%2Cwithheld&media.fields=alt_text%2Cduration_ms%2Cheight%2Cmedia_key%2Cpreview_image_url%2Ctype%2Curl%2Cwidth%2Cpublic_metrics&poll.fields=duration_minutes%2Cend_datetime%2Cid%2Coptions%2Cvoting_status&place.fields=contained_within%2Ccountry%2Ccountry_code%2Cfull_name%2Cgeo%2Cid%2Cname%2Cplace_type&ids=1483045079552262146",
    "version": "2.9.1",
    "retrieved_at": "2022-02-18T19:44:52+00:00"
  }
}