Dados do artigo
curl --request POST \
--url https://api.sorsa.io/v3/article \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tweet_link": "<string>"
}
'import requests
url = "https://api.sorsa.io/v3/article"
payload = { "tweet_link": "<string>" }
headers = {
"ApiKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {ApiKey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tweet_link: '<string>'})
};
fetch('https://api.sorsa.io/v3/article', 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/article",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tweet_link' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sorsa.io/v3/article"
payload := strings.NewReader("{\n \"tweet_link\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sorsa.io/v3/article")
.header("ApiKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tweet_link\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/article")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ApiKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tweet_link\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"author": {
"bio_urls": [
"<string>"
],
"can_dm": false,
"created_at": "2009-06-02T20:12:29Z",
"description": "Bio text",
"display_name": "Elon Musk",
"favourites_count": 1200,
"followers_count": 100000,
"followings_count": 500,
"id": "44196397",
"location": "Austin, TX",
"media_count": 300,
"pinned_tweet_ids": [
"<string>"
],
"possibly_sensitive": false,
"profile_background_image_url": "https://pbs.twimg.com/profile_banners/44196397/123",
"profile_image_url": "https://pbs.twimg.com/profile_images/123/photo.jpg",
"protected": false,
"tweets_count": 5000,
"username": "elonmusk",
"verified": true
},
"bookmark_count": 123,
"cover_image_url": "<string>",
"full_text": "<string>",
"likes_count": 123,
"preview_text": "<string>",
"published_at": "<string>",
"quote_count": 123,
"reply_count": 123,
"retweet_count": 123,
"views_count": 123
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Publicações
Dados do artigo
Retorna os dados completos de um artigo do Twitter/X (publicação longa) a partir de sua URL. A resposta inclui texto completo, prévia curta, URL da imagem de capa, data de publicação, métricas de engajamento e perfil do autor.
POST
/
article
Dados do artigo
curl --request POST \
--url https://api.sorsa.io/v3/article \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tweet_link": "<string>"
}
'import requests
url = "https://api.sorsa.io/v3/article"
payload = { "tweet_link": "<string>" }
headers = {
"ApiKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {ApiKey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tweet_link: '<string>'})
};
fetch('https://api.sorsa.io/v3/article', 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/article",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tweet_link' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sorsa.io/v3/article"
payload := strings.NewReader("{\n \"tweet_link\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sorsa.io/v3/article")
.header("ApiKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tweet_link\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/article")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ApiKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tweet_link\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"author": {
"bio_urls": [
"<string>"
],
"can_dm": false,
"created_at": "2009-06-02T20:12:29Z",
"description": "Bio text",
"display_name": "Elon Musk",
"favourites_count": 1200,
"followers_count": 100000,
"followings_count": 500,
"id": "44196397",
"location": "Austin, TX",
"media_count": 300,
"pinned_tweet_ids": [
"<string>"
],
"possibly_sensitive": false,
"profile_background_image_url": "https://pbs.twimg.com/profile_banners/44196397/123",
"profile_image_url": "https://pbs.twimg.com/profile_images/123/photo.jpg",
"protected": false,
"tweets_count": 5000,
"username": "elonmusk",
"verified": true
},
"bookmark_count": 123,
"cover_image_url": "<string>",
"full_text": "<string>",
"likes_count": 123,
"preview_text": "<string>",
"published_at": "<string>",
"quote_count": 123,
"reply_count": 123,
"retweet_count": 123,
"views_count": 123
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Autorizações
Corpo
application/json
Requisição de artigo
URL completa da publicação ou do artigo (por exemplo, https://x.com/user/status/123) ou apenas o ID da publicação.
Resposta
OK
Dados do perfil do autor.
Show child attributes
Show child attributes
Número de vezes que foi adicionado aos itens salvos.
URL da imagem de capa do artigo.
Texto completo do artigo.
Número de curtidas.
Prévia curta ou trecho do artigo.
Data de publicação no formato ISO 8601.
Número de publicações com citação.
Número de respostas.
Número de repostagens.
Número de visualizações (impressões).
Esta página foi útil?