Universal Search API
makeUniversalSearch
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"
.
Examples
Find a user's accountId
by their username
import { makeUniversalSearch } from "psn-api";
const response = await makeUniversalSearch(
authorization,
"xelnia",
"SocialAllAccounts"
);
Returns
Name | Type | Description |
---|---|---|
prefix | string | |
suggestions | string[] | |
fallbackQueried | boolean | |
domainResponses | any[] |
Parameters
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 . |