Skip to main content
Queries Mini Apps by keyword and returns a paginated list of matches deployed to the SuperApp. Invoked via my.call().

Parameters

PropertyTypeRequiredDescription
keywordStringYesSearch term to filter Mini Apps
queryStartIndexIntYesStarting index for pagination (default: 0)
querySizeIntYesNumber of results to return per request (max: 50)
categoryStringNoCategory ID from the Mini Program Platform console to filter results
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback Parameters

PropertyTypeDescription
successBooleanWhether the query succeeded
errorCodeStringError identifier, present on failure
errorMessageStringHuman-readable error description, present on failure
totalCountIntTotal number of matching Mini Apps
appInfoListArrayList of Mini App objects (max 50 items)

appInfoList Item

PropertyTypeDescription
appIdStringUnique Mini App identifier
appNameStringDisplay name
developerVersionStringRelease version (major.minor.patch)
deployVersionStringVersion with timestamp (major.minor.patch.timestamp)
appSloganStringShort tagline
appDescStringDetailed description
iconUrlStringLogo image URL
statusStringRelease status: GRAY (grayscale rollout) or ONLINE
packageSizeNumberApp package size in bytes
createTimeNumberCreation timestamp
publishTimeNumberPublication timestamp
relatedClientIdStringSuperApp identifier
relatedWorkspaceStringWorkspace identifier
categoryStringPrimary category name
categoryIdStringPrimary category ID
categoryInfosArrayFull category hierarchy (see below)
extendInfoMapObjectAdditional metadata key-value pairs

categoryInfos Item

PropertyTypeDescription
categoryStringPrimary category name
categoryIdStringPrimary category ID
category2StringSecondary category name
categoryCode2StringSecondary category ID
category3StringTertiary category name
categoryCode3StringTertiary category ID

extendInfoMap Fields

KeyTypeDescription
firstPublishTimeStringInitial release date (yyyy-MM-dd HH:mm)
tagListStringTags as a JSON array string

Error Codes

CodeDescriptionResolution
2 / 10102INVALID_PARAMETERCheck that all required fields are provided with correct types
3UNKNOWN_ERRORRetry; contact support if persistent
10104NETWORK_ERRORCheck network connectivity and retry

Code Example

my.call('fetchAppInfoListByKeyword', {
  keyword: 'coffee',
  queryStartIndex: 0,
  querySize: 20,
  success: (res) => {
    if (res.success) {
      console.log('Total results:', res.totalCount);
      res.appInfoList.forEach((app) => {
        console.log(app.appId, app.appName, app.status);
      });
    } else {
      console.error('Query failed:', res.errorCode, res.errorMessage);
    }
  },
  fail: (err) => {
    console.error('API call failed:', err);
  }
});
This API uses my.call() rather than the standard my.apiName() pattern.