superagnt-com X (Twitter): AI API

A set of AI related services

Operations 3

GET /v1/data/x/ai/topic-classification Topic Classification #
GET /v1/data/x/ai/named-entity-recognition Named Entity Recognition #
GET /v1/data/x/ai/sentiment-analysis Sentiment Analysis #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/superagnt-com:superagnt-com-x-twitter-ai-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

superagnt-com-x-twitter-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'superagnt X (Twitter): AI API'
  description: Unified API for social media data. Access LinkedIn, YouTube, TikTok, X, Instagram, Reddit, and Facebook through a single API key.
  version: 1.0.0
  contact:
    name: superagnt
    url: https://superagnt.com
servers:
- url: https://api.superagnt.com
  description: superagnt API
security:
- ApiKeyAuth: []
tags:
- name: 'X (Twitter): AI'
  description: A set of AI related services
paths:
  /v1/data/x/ai/topic-classification:
    get:
      operationId: Topic_Classification_get__ai_topic_classification
      summary: Topic Classification
      description: Allows you to automatically extract meaning from text by identifying recurrent themes or topics
      tags:
      - 'X (Twitter): AI'
      parameters:
      - name: text
        in: query
        required: true
        schema:
          type: string
          default: The  @Humane  video is fascinating on so many levels. I think people miss the point about how emotionally empty it feels. It’s because smartphones sucked everything out of us. And their device is there to reconnect us to the world. It was purposely recorded this way.
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  text:
                    type: string
                  hash:
                    type: string
                  trace_id:
                    type: string
                  topics:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                        confidence:
                          type: number
                        rank:
                          type: integer
                        label_id:
                          type: integer
                  elapsed_time:
                    type: number
              example:
                text: The  @Humane  video is fascinating on so many levels. I think people miss the point about how emotionally empty it feels. It’s because smartphones sucked everything out of us. And their device is there to reconnect us to the world. It was purposely recorded this way.
                hash: 967ad042489e8184ce37de3b90036b17ea7fd974bd564b7b87c06b9437e9ca51
                trace_id: aed15a35-9765-4779-beef-765277f34ea3
                topics:
                - label: Film Tv & Video
                  confidence: 0.8309035897254944
                  rank: 1
                  label_id: 6
                - label: Science & Technology
                  confidence: 0.43547123670578
                  rank: 2
                  label_id: 15
                - label: Diaries & Daily Life
                  confidence: 0.2036248743534088
                  rank: 3
                  label_id: 3
                - label: News & Social Concern
                  confidence: 0.114760160446167
                  rank: 4
                  label_id: 12
                - label: Learning & Educational
                  confidence: 0.06240042671561241
                  rank: 5
                  label_id: 10
                - label: Travel & Adventure
                  confidence: 0.06051795557141304
                  rank: 6
                  label_id: 17
                - label: Arts & Culture
                  confidence: 0.05182615667581558
                  rank: 7
                  label_id: 0
                - label: Youth & Student Life
                  confidence: 0.029425838962197304
                  rank: 8
                  label_id: 18
                - label: Business & Entrepreneurs
                  confidence: 0.02604186534881592
                  rank: 9
                  label_id: 1
                - label: Other Hobbies
                  confidence: 0.023914171382784843
                  rank: 10
                  label_id: 13
                - label: Celebrity & Pop Culture
                  confidence: 0.019804231822490692
                  rank: 11
                  label_id: 2
                - label: Family
                  confidence: 0.01353931799530983
                  rank: 12
                  label_id: 4
                - label: Relationships
                  confidence: 0.011448417790234087
                  rank: 13
                  label_id: 14
                - label: Fitness & Health
                  confidence: 0.009750178083777428
                  rank: 14
                  label_id: 7
                - label: Music
                  confidence: 0.009229288436472416
                  rank: 15
                  label_id: 11
                - label: Food & Dining
                  confidence: 0.006356519181281328
                  rank: 16
                  label_id: 8
                - label: Gaming
                  confidence: 0.006221442949026823
                  rank: 17
                  label_id: 9
                - label: Sports
                  confidence: 0.003884031902998686
                  rank: 18
                  label_id: 16
                - label: Fashion & Style
                  confidence: 0.0036840285174548626
                  rank: 19
                  label_id: 5
                elapsed_time: 0.13503004051744938
      security:
      - ApiKeyAuth: []
  /v1/data/x/ai/named-entity-recognition:
    get:
      operationId: Named_Entity_Recognition_get__ai_named_entity_recognition
      summary: Named Entity Recognition
      description: Locate and classify named entities mentioned in text into pre-defined categories such as person names, organizations, locations
      tags:
      - 'X (Twitter): AI'
      parameters:
      - name: text
        in: query
        required: true
        schema:
          type: string
          default: 'Here''s my conversation with  @elonmusk , his 4th time on the podcast. We talk about war & peace, AI, physics, politics, video games, and the future of humanity.  This is episode 400 of the podcast. It''s been an incredible journey. I''m grateful to Elon for his friendship, and I''m grateful for all the kindness and love I''ve gotten from folks along the way. I love you all! ❤  Timestamps: 0:00 - Introduction 0:07 - War and human nature 4:33 - Israel-Hamas war 10:41 - Military-Industrial Complex 14:58 - War in Ukraine 19:41 - China 33:57 - xAI Grok 44:55 - Aliens 52:55 - God 55:22 - Diablo 4 and video games 1:04:29 - Dystopian worlds: 1984 and Brave New World 1:10:41 - AI and useful compute per watt 1:16:22 - AI regulation 1:23:14 - Should AI be open-sourced? 1:30:36 - X algorithm 1:41:57 - 2024 presidential elections 1:54:55 - Politics 1:57:57 - Trust 2:03:29 - Tesla''s Autopilot and Optimus robot 2:12:28 - Hardships'
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  text:
                    type: string
                  hash:
                    type: string
                  trace_id:
                    type: string
                  entities:
                    type: array
                    items:
                      type: object
                      properties:
                        text:
                          type: string
                        start_pos:
                          type: integer
                        end_pos:
                          type: integer
                        labels:
                          type: array
                          items:
                            type: object
                            properties:
                              value:
                                type: string
                              confidence:
                                type: number
                  elapsed_time:
                    type: number
              example:
                text: 'Here''s my conversation with  @elonmusk , his 4th time on the podcast. We talk about war & peace, AI, physics, politics, video games, and the future of humanity.  This is episode 400 of the podcast. It''s been an incredible journey. I''m grateful to Elon for his friendship, and I''m grateful for all the kindness and love I''ve gotten from folks along the way. I love you all! ❤  Timestamps: 0:00 - Introduction 0:07 - War and human nature 4:33 - Israel-Hamas war 10:41 - Military-Industrial Complex 14:58 - War in Ukraine 19:41 - China 33:57 - xAI Grok 44:55 - Aliens 52:55 - God 55:22 - Diablo 4 and video games 1:04:29 - Dystopian worlds: 1984 and Brave New World 1:10:41 - AI and useful compute per watt 1:16:22 - AI regulation 1:23:14 - Should AI be open-sourced? 1:30:36 - X algorithm 1:41:57 - 2024 presidential elections 1:54:55 - Politics 1:57:57 - Trust 2:03:29 - Tesla''s Autopilot and Optimus robot 2:12:28 - Hardships'
                hash: 1c74cf5d8f3a74bf132721d8a1bc5b0d2cfed1bc472fed4fe3bae5edb7405be4
                trace_id: c17de6ca-2dd1-4836-87c0-923422f836ff
                entities:
                - text: elonmusk
                  start_pos: 30
                  end_pos: 38
                  labels:
                  - value: PER
                    confidence: 0.9559685587882996
                - text: Elon
                  start_pos: 247
                  end_pos: 251
                  labels:
                  - value: PER
                    confidence: 0.9999912977218628
                - text: Israel-Hamas
                  start_pos: 443
                  end_pos: 455
                  labels:
                  - value: MISC
                    confidence: 0.9833679795265198
                - text: Military-Industrial Complex
                  start_pos: 468
                  end_pos: 495
                  labels:
                  - value: MISC
                    confidence: 0.9977789223194122
                - text: Ukraine
                  start_pos: 511
                  end_pos: 518
                  labels:
                  - value: LOC
                    confidence: 0.9999916553497314
                - text: China
                  start_pos: 527
                  end_pos: 532
                  labels:
                  - value: LOC
                    confidence: 0.9999924898147584
                - text: xAI Grok
                  start_pos: 541
                  end_pos: 549
                  labels:
                  - value: MISC
                    confidence: 0.999688059091568
                - text: Aliens
                  start_pos: 558
                  end_pos: 564
                  labels:
                  - value: MISC
                    confidence: 0.9964159727096558
                - text: God
                  start_pos: 573
                  end_pos: 576
                  labels:
                  - value: PER
                    confidence: 0.792618989944458
                - text: Diablo 4
                  start_pos: 585
                  end_pos: 593
                  labels:
                  - value: MISC
                    confidence: 0.9999223947525024
                - text: Brave New World
                  start_pos: 647
                  end_pos: 662
                  labels:
                  - value: MISC
                    confidence: 0.9999440908432008
                - text: Tesla
                  start_pos: 870
                  end_pos: 875
                  labels:
                  - value: ORG
                    confidence: 0.9999592304229736
                - text: Autopilot
                  start_pos: 878
                  end_pos: 887
                  labels:
                  - value: MISC
                    confidence: 0.9998629093170166
                - text: Optimus
                  start_pos: 892
                  end_pos: 899
                  labels:
                  - value: MISC
                    confidence: 0.9992913007736206
                elapsed_time: 0.6088101472705603
      security:
      - ApiKeyAuth: []
  /v1/data/x/ai/sentiment-analysis:
    get:
      operationId: Sentiment_Analysis_get__ai_sentiment_analysis
      summary: Sentiment Analysis
      description: Analyze text to determine if the emotional tone of the message is positive, negative, or neutral.
      tags:
      - 'X (Twitter): AI'
      parameters:
      - name: text
        in: query
        required: true
        schema:
          type: string
          default: You can not be a platform that allows almost every opinion to be aired and lose traffic. People want to share their opinion on platforms they know freedom of speech exists to a very large extent. I get 99% of my news here on X, which is like days ahead of traditional media.
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  text:
                    type: string
                  hash:
                    type: string
                  trace_id:
                    type: string
                  sentiment:
                    type: object
                    properties:
                      value:
                        type: string
                      confidence:
                        type: number
                  elapsed_time:
                    type: number
              example:
                text: You can not be a platform that allows almost every opinion to be aired and lose traffic. People want to share their opinion on platforms they know freedom of speech exists to a very large extent. I get 99% of my news here on X, which is like days ahead of traditional media.
                hash: 2d252f081fb05785cee399e372664a2687a2c1fdfe71b4c64806a30175b9672d
                trace_id: 2d8f5178-b848-4623-b1de-d8ec904e58f1
                sentiment:
                  value: POSITIVE
                  confidence: 0.7711061835289001
                elapsed_time: 0.17128494009375572
      security:
      - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...'