Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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.
openapi: 3.2.0
info:
title: 'superagnt X (Twitter): Translation 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): Translation'
description: Translate Service
paths:
/v1/data/x/translate/detect:
post:
operationId: Detect_post__translate_detect
summary: Detect
description: This endpoint will return the Language of the Text
tags:
- 'X (Twitter): Translation'
parameters: []
responses:
'200':
description: Response
content:
application/json:
schema:
type: object
properties:
lang:
type: string
confidence:
type: integer
script:
type: string
is_reliable:
type: boolean
example:
lang: eng
confidence: 1
script: Latin
is_reliable: true
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
text:
type: string
example:
text: 'A panel on AI at the Paris Peace Forum today. Starting at 42''00, I plot the future of AI: all of our interactions with the digital world will be mediated by AI assistants that will eventually become smarter than us. Because they will become a common infrastructure containing all human culture and knowledge, they will need to be open/open source, just like the software infrastructure of the Internet is open/open source, and their training will need to be crowd-sourced, just like Wikipedia (see 46''00 in) This is one reason Meta made Llama-2 open/open source/free. In response to my tirade, Microsoft President Brad Smith had a very curious response (48''00). He said "Meta is owned by shareholders. OpenAI is owned by a nonprofit . Which would you have more confidence in? Getting your technology from a non profit? or a for-profit company that is entirely controlled by one human being?" This totally misrepresents what open access/open source means. I thought Microsoft had moved beyond its anti open source stance of the 1990s. Doesn''t Azure run on Linux these days?'
security:
- ApiKeyAuth: []
/v1/data/x/translate:
post:
operationId: Translate_post__translate
summary: Translate
description: Return Translated Text and the source language if it wasn't specified
tags:
- 'X (Twitter): Translation'
parameters: []
responses:
'200':
description: '200'
content:
application/json:
schema:
type: object
properties:
destination_language:
type: string
original_language:
type: string
original_text:
type: string
translated_text:
type: string
example:
destination_language: en
original_language: fr
original_text: 'Moi je vous dis que la table ronde du #PPF @ParisPeaceForum “Navigating the #AI revolution” où il y avait notamment @ylecun (Meta) @BradSmi (Microsoft) et @ianbremmer est assurément à réécouter en replay. (Oui, cela a un peu clashé).'
translated_text: 'I tell you that the round table of the #PPF @ParisPeaceForum “Navigating the #AI revolution” where there was notably @ylecun (Meta) @BradSmi (Microsoft) and @ianbremmer is certainly worth listening to on replay.(Yes, it clashed a bit).'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
dest:
type: string
text:
type: string
example:
dest: en
text: 'Moi je vous dis que la table ronde du #PPF @ParisPeaceForum “Navigating the #AI revolution” où il y avait notamment @ylecun (Meta) @BradSmi (Microsoft) et @ianbremmer est assurément à réécouter en replay. (Oui, cela a un peu clashé).'
security:
- ApiKeyAuth: []
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: Authorization
description: 'Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...'