Skip to content

Feature request: API v2 lookup context_annotations #19

Open

Description

@edvilme

The context_annotations field in tweets has extreme potential for us developers and researchers to understand the interests of a user, build communities, improve recommendation algorithms, etc, etc.
As far as I understand, an entity has a unique id and can belong to one or many domains (please correct me if I'm wrong). I think an endpoint to get information about a specific entity would be very useful.

Eg: GET /2/context_annotations/entity/:id would return a JSON with the fields:

{
    "id": "XXXX", 
    "name": "XXXX", 
    "description": "XXXX", 
    "domains": [
         {
             "id": "XXXX",
             "name": "XXXX", 
             "description": "XXXX"
         }
    ] 
}

Could be future proof for things like associated_users or something like that. Thought about receiving some opinions and feedback before opening a formal request (as per the indications in README).

Activity

  1. edvilme commented on Jul 17, 2022

    @edvilme
    Author

    Attachment: CSV of domains and entities
    As far as I understand, each entity can be associated to one or more domains.

  2. andypiper commented on Jul 20, 2022

    @andypiper
    Contributor

    Thanks for the suggestion. As you've noted via the attachment, we're working to make the information available here via https://github.com/twitterdev/twitter-context-annotations but completely recognise that a callable API endpoint would be a useful addition to the platform.

    I'm not currently able to confirm your understanding of whether entities can be a member of more than one domain, I'll see what I can find out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions