Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: API v2 lookup context_annotations #19

Open
edvilme opened this issue Jul 17, 2022 · 2 comments
Open

Feature request: API v2 lookup context_annotations #19

edvilme opened this issue Jul 17, 2022 · 2 comments

Comments

@edvilme
Copy link

edvilme commented Jul 17, 2022

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).

@edvilme
Copy link
Author

edvilme commented Jul 17, 2022

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

@andypiper
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants