Universal Search API
A call to this function will make a universal search across the PlayStation Network for your search query. Each search query requires a domain, such as "SocialAllAccounts"
.
import { makeUniversalSearch } from "psn-api";
const response = await makeUniversalSearch(
authorization,
"xelnia",
"SocialAllAccounts"
);
Name | Type | Description |
---|
prefix | string | |
suggestions | string[] | |
fallbackQueried | boolean | |
domainResponses | any[] | |
Name | Type | Description |
---|
authorization | AuthorizationPayload | An object that must contain an accessToken . See this page for how to get one. |
searchTerm | string | The value being searched for. |
domain | string | What kind of value is being searched for, such as SocialAllAccounts . |
search/makeUniversalSearch.ts