Variação do Sorsa Score
curl --request GET \
--url https://api.sorsa.io/v3/score-changes \
--header 'ApiKey: <api-key>'import requests
url = "https://api.sorsa.io/v3/score-changes"
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/score-changes', 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/score-changes",
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/score-changes"
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/score-changes")
.header("ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/score-changes")
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{
"month_delta": 24,
"week_delta": 12
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Sorsa e cripto
Variação do Sorsa Score
Retorna a variação do Sorsa Score nos últimos 7 e 30 dias. Permite acompanhar a evolução e identificar contas que ganham ou perdem influência. A conta deve estar indexada no banco de dados da Sorsa. Identifique o usuário informando exatamente um destes campos: user_link, username ou user_id.
GET
/
score-changes
Variação do Sorsa Score
curl --request GET \
--url https://api.sorsa.io/v3/score-changes \
--header 'ApiKey: <api-key>'import requests
url = "https://api.sorsa.io/v3/score-changes"
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/score-changes', 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/score-changes",
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/score-changes"
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/score-changes")
.header("ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/score-changes")
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{
"month_delta": 24,
"week_delta": 12
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Autorizações
Parâmetros de consulta
URL completa do perfil do usuário no Twitter/X.
Nome de usuário no Twitter/X (sem @).
ID numérico do usuário do Twitter/X.
Esta página foi útil?