All URIs are relative to https://api.unifapi.com
| Method | HTTP request | Description |
|---|---|---|
| threads_search_profiles_get | GET /threads/search/profiles | Search Threads users by keyword |
| threads_search_recent_get | GET /threads/search/recent | Search recent Threads posts |
| threads_search_top_get | GET /threads/search/top | Search top Threads posts |
| threads_users_username_get | GET /threads/users/{username} | Get a Threads user profile by username |
| threads_users_username_posts_get | GET /threads/users/{username}/posts | List Threads posts authored by a user |
| threads_users_username_replies_get | GET /threads/users/{username}/replies | List Threads replies authored by a user |
| threads_users_username_reposts_get | GET /threads/users/{username}/reposts | List Threads reposts by a user |
ThreadsSearchProfilesGet200Response threads_search_profiles_get(q)
Search Threads users by keyword
- Bearer Authentication (bearerAuth):
import unifapi
from unifapi.models.threads_search_profiles_get200_response import ThreadsSearchProfilesGet200Response
from unifapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.unifapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = unifapi.Configuration(
host = "https://api.unifapi.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = unifapi.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with unifapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = unifapi.ThreadsApi(api_client)
q = 'q_example' # str | Search keyword.
try:
# Search Threads users by keyword
api_response = api_instance.threads_search_profiles_get(q)
print("The response of ThreadsApi->threads_search_profiles_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ThreadsApi->threads_search_profiles_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| q | str | Search keyword. |
ThreadsSearchProfilesGet200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThreadsSearchRecentGet200Response threads_search_recent_get(q, cursor=cursor)
Search recent Threads posts
- Bearer Authentication (bearerAuth):
import unifapi
from unifapi.models.threads_search_recent_get200_response import ThreadsSearchRecentGet200Response
from unifapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.unifapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = unifapi.Configuration(
host = "https://api.unifapi.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = unifapi.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with unifapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = unifapi.ThreadsApi(api_client)
q = 'q_example' # str | Search keyword.
cursor = 'cursor_example' # str | (optional)
try:
# Search recent Threads posts
api_response = api_instance.threads_search_recent_get(q, cursor=cursor)
print("The response of ThreadsApi->threads_search_recent_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ThreadsApi->threads_search_recent_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| q | str | Search keyword. | |
| cursor | str | [optional] |
ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThreadsSearchRecentGet200Response threads_search_top_get(q, cursor=cursor)
Search top Threads posts
- Bearer Authentication (bearerAuth):
import unifapi
from unifapi.models.threads_search_recent_get200_response import ThreadsSearchRecentGet200Response
from unifapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.unifapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = unifapi.Configuration(
host = "https://api.unifapi.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = unifapi.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with unifapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = unifapi.ThreadsApi(api_client)
q = 'q_example' # str | Search keyword.
cursor = 'cursor_example' # str | (optional)
try:
# Search top Threads posts
api_response = api_instance.threads_search_top_get(q, cursor=cursor)
print("The response of ThreadsApi->threads_search_top_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ThreadsApi->threads_search_top_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| q | str | Search keyword. | |
| cursor | str | [optional] |
ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThreadsUsersUsernameGet200Response threads_users_username_get(username)
Get a Threads user profile by username
- Bearer Authentication (bearerAuth):
import unifapi
from unifapi.models.threads_users_username_get200_response import ThreadsUsersUsernameGet200Response
from unifapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.unifapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = unifapi.Configuration(
host = "https://api.unifapi.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = unifapi.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with unifapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = unifapi.ThreadsApi(api_client)
username = 'username_example' # str |
try:
# Get a Threads user profile by username
api_response = api_instance.threads_users_username_get(username)
print("The response of ThreadsApi->threads_users_username_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ThreadsApi->threads_users_username_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| username | str |
ThreadsUsersUsernameGet200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThreadsSearchRecentGet200Response threads_users_username_posts_get(username, cursor=cursor)
List Threads posts authored by a user
- Bearer Authentication (bearerAuth):
import unifapi
from unifapi.models.threads_search_recent_get200_response import ThreadsSearchRecentGet200Response
from unifapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.unifapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = unifapi.Configuration(
host = "https://api.unifapi.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = unifapi.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with unifapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = unifapi.ThreadsApi(api_client)
username = 'username_example' # str |
cursor = 'cursor_example' # str | (optional)
try:
# List Threads posts authored by a user
api_response = api_instance.threads_users_username_posts_get(username, cursor=cursor)
print("The response of ThreadsApi->threads_users_username_posts_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ThreadsApi->threads_users_username_posts_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| username | str | ||
| cursor | str | [optional] |
ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThreadsSearchRecentGet200Response threads_users_username_replies_get(username, cursor=cursor)
List Threads replies authored by a user
- Bearer Authentication (bearerAuth):
import unifapi
from unifapi.models.threads_search_recent_get200_response import ThreadsSearchRecentGet200Response
from unifapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.unifapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = unifapi.Configuration(
host = "https://api.unifapi.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = unifapi.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with unifapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = unifapi.ThreadsApi(api_client)
username = 'username_example' # str |
cursor = 'cursor_example' # str | (optional)
try:
# List Threads replies authored by a user
api_response = api_instance.threads_users_username_replies_get(username, cursor=cursor)
print("The response of ThreadsApi->threads_users_username_replies_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ThreadsApi->threads_users_username_replies_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| username | str | ||
| cursor | str | [optional] |
ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThreadsSearchRecentGet200Response threads_users_username_reposts_get(username, cursor=cursor)
List Threads reposts by a user
- Bearer Authentication (bearerAuth):
import unifapi
from unifapi.models.threads_search_recent_get200_response import ThreadsSearchRecentGet200Response
from unifapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.unifapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = unifapi.Configuration(
host = "https://api.unifapi.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = unifapi.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with unifapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = unifapi.ThreadsApi(api_client)
username = 'username_example' # str |
cursor = 'cursor_example' # str | (optional)
try:
# List Threads reposts by a user
api_response = api_instance.threads_users_username_reposts_get(username, cursor=cursor)
print("The response of ThreadsApi->threads_users_username_reposts_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ThreadsApi->threads_users_username_reposts_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| username | str | ||
| cursor | str | [optional] |
ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]