-
Notifications
You must be signed in to change notification settings - Fork 16
v2.site.search
cyperdark edited this page Mar 31, 2023
·
4 revisions
Searches users and wiki pages.
const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);
await v2.site.search(object)
Parameter | Type | Description |
---|---|---|
object.mode | string |
all or user or wiki_page
|
object.query | string |
Search keyword |
object.page | number |
Search result page. Ignored for mode all |
export interface response {
user: {
data: {
avatar_url: string;
country_code: string;
default_group: string;
id: number;
is_active: boolean;
is_bot: boolean;
is_deleted: boolean;
is_online: boolean;
is_supporter: boolean;
last_visit?: string;
pm_friends_only: boolean;
profile_colour?: string;
username: string;
}[];
total: number;
};
wiki_page: {
data: {
available_locales: string[];
layout: string;
locale: string;
markdown: string;
path: string;
subtitle: string;
tags: [];
title: string;
}[];
total: number;
};
}