Is Twitter adding face metadata for uploaded images? I just scraped a tweet that added the following keys to entities.media:

{
  "features": {
    "large": {
      "faces": [
        {
          "x": 419,
          "y": 244,
          "h": 46,
          "w": 46
        },
        {
          "x": 280,
          "y": 206,
          "h": 55,
          "w": 55
        },
        {
          "x": 532,
          "y": 236,
          "h": 52,
          "w": 52
        },
        {
          "x": 158,
          "y": 255,
          "h": 54,
          "w": 54
        }
      ]
    },
    "medium": {
      "faces": [
        {
          "x": 419,
          "y": 244,
          "h": 46,
          "w": 46
        },
        {
          "x": 280,
          "y": 206,
          "h": 55,
          "w": 55
        },
        {
          "x": 532,
          "y": 236,
          "h": 52,
          "w": 52
        },
        {
          "x": 158,
          "y": 255,
          "h": 54,
          "w": 54
        }
      ]
    },
    "orig": {
      "faces": [
        {
          "x": 419,
          "y": 244,
          "h": 46,
          "w": 46
        },
        {
          "x": 280,
          "y": 206,
          "h": 55,
          "w": 55
        },
        {
          "x": 532,
          "y": 236,
          "h": 52,
          "w": 52
        },
        {
          "x": 158,
          "y": 255,
          "h": 54,
          "w": 54
        }
      ]
    },
    "small": {
      "faces": [
        {
          "x": 361,
          "y": 210,
          "h": 39,
          "w": 39
        },
        {
          "x": 241,
          "y": 177,
          "h": 47,
          "w": 47
        },
        {
          "x": 458,
          "y": 203,
          "h": 44,
          "w": 44
        },
        {
          "x": 136,
          "y": 219,
          "h": 46,
          "w": 46
        }
      ]
    }
  }
}
1 Like

Very interesting! do you have an example tweet where this is returned? I don’t think it’s documented anywhere yet.

I’m getting it from the statuses/user_timeline endpoint for users such as @jack, but not when using statuses/lookup with the tweet id.

1 Like

Yep, i’m able to get the same, statuses/user_timeline gives the extra meta data.

Do you have any historical data that would give an idea about how long this has been the case. I don’t think it was happening earlier this week.

No idea! i don’t have tweets from that endpoint to check when that data started appearing.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.