curl --request GET \
--url https://api.sorsa.io/v3/about \
--header 'ApiKey: <api-key>'import requests
url = "https://api.sorsa.io/v3/about"
headers = {"ApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {ApiKey: '<api-key>'}};
fetch('https://api.sorsa.io/v3/about', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sorsa.io/v3/about",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sorsa.io/v3/about"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ApiKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sorsa.io/v3/about")
.header("ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/about")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"affiliate_username": "username",
"country": "United States",
"is_blue_verified": true,
"last_username_change_at": "2021-01-01T00:00:00Z",
"premium_start_at": "2021-01-01T00:00:00Z",
"source": "Twitter",
"username_change_count": 1
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Información de la cuenta
Devuelve metadatos de la sección «Acerca de» de una cuenta de Twitter/X, incluidos el país, el número total de cambios de nombre de usuario y la fecha del cambio más reciente. Identifica al usuario proporcionando exactamente uno de estos campos: user_link, username o user_id.
curl --request GET \
--url https://api.sorsa.io/v3/about \
--header 'ApiKey: <api-key>'import requests
url = "https://api.sorsa.io/v3/about"
headers = {"ApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {ApiKey: '<api-key>'}};
fetch('https://api.sorsa.io/v3/about', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sorsa.io/v3/about",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sorsa.io/v3/about"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ApiKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sorsa.io/v3/about")
.header("ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/about")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"affiliate_username": "username",
"country": "United States",
"is_blue_verified": true,
"last_username_change_at": "2021-01-01T00:00:00Z",
"premium_start_at": "2021-01-01T00:00:00Z",
"source": "Twitter",
"username_change_count": 1
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Autorizaciones
Parámetros de consulta
URL completa del perfil del usuario en Twitter/X.
Nombre de usuario en Twitter/X (sin @).
ID numérico del usuario de Twitter/X.
Respuesta
OK
Nombre de usuario afiliado de la cuenta.
"username"
País asociado a la cuenta.
"United States"
Indica si la cuenta tiene verificación azul.
true
Fecha del cambio de nombre de usuario más reciente en formato ISO 8601.
"2021-01-01T00:00:00Z"
Fecha de la cuenta premium en formato ISO 8601.
"2021-01-01T00:00:00Z"
Origen de la cuenta.
"Twitter"
Número total de cambios de nombre de usuario.
1
¿Esta página le ayudó?