Search for user IDs by tags
curl --request GET \
--url https://our-secret-api-url.com/users/search/tagsimport requests
url = "https://our-secret-api-url.com/users/search/tags"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://our-secret-api-url.com/users/search/tags', 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://our-secret-api-url.com/users/search/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://our-secret-api-url.com/users/search/tags"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://our-secret-api-url.com/users/search/tags")
.asString();require 'uri'
require 'net/http'
url = URI("https://our-secret-api-url.com/users/search/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
123
]{
"message": "<string>"
}User
Get Users / UserIds By Tags
Retrieve user IDs based on a list of tags.
GET
/
users
/
search
/
tags
Search for user IDs by tags
curl --request GET \
--url https://our-secret-api-url.com/users/search/tagsimport requests
url = "https://our-secret-api-url.com/users/search/tags"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://our-secret-api-url.com/users/search/tags', 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://our-secret-api-url.com/users/search/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://our-secret-api-url.com/users/search/tags"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://our-secret-api-url.com/users/search/tags")
.asString();require 'uri'
require 'net/http'
url = URI("https://our-secret-api-url.com/users/search/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
123
]{
"message": "<string>"
}This API filters the users that has tags overlapping the passed tags.
This API is useful for fetching the userIds for feed of tagged accounts.
Pass
userId to filter users that the current user has not followed.["berita"] to get the news-specific tagged accounts.
Pass the found userIds into the Posts API:
Posts API
Get list of posts for feed
⌘I
