Search User
AI-generatedOverview
The node "Zalo User Interact" enables advanced interactions with the Zalo User API, a popular messaging platform. It supports various user-related operations such as adding friends, blocking/unblocking users, retrieving friend lists, searching for users, and reacting to messages.
For the Search User operation specifically, the node allows you to search for Zalo users by providing a search query string. This is useful when you want to find users based on names or keywords without knowing their exact user IDs.
Practical examples:
- Searching for users by name or nickname to initiate further communication.
- Finding potential contacts or friends within the Zalo network programmatically.
- Automating user discovery in customer engagement workflows.
Properties
| Name | Meaning |
|---|---|
| Search Query | The search term used to find users on Zalo. This should be a string representing the keyword or name you want to search for. |
Output
The output of the Search User operation is a JSON object containing the response data from the Zalo API's user search endpoint. This typically includes an array or list of user profiles matching the search query, with details such as user IDs, display names, and possibly other metadata returned by the API.
The node outputs this data under the json field for each input item processed.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo User API. This credential must provide necessary authentication tokens such as cookies and user-agent headers.
- Uses the Axios HTTP client library internally to make REST API calls to Zalo endpoints.
- Network access to
https://chat.zalo.me/api/social/searchis required.
Troubleshooting
Common issues:
- Invalid or expired API credentials may cause authentication failures.
- Network connectivity problems can prevent reaching the Zalo API.
- Providing an empty or invalid search query might return no results or errors.
Error messages:
"Unknown operation: searchUser"— indicates the operation parameter was not set correctly; ensure it is exactly"searchUser".- API errors returned from Zalo (e.g., rate limits, invalid parameters) will be passed through in the output JSON under an error field if "Continue On Fail" is enabled.
Resolutions:
- Verify that the API credential is valid and has not expired.
- Check your internet connection and firewall settings.
- Ensure the search query string is properly formatted and non-empty.
Links and References
- Zalo Official API Documentation (general reference for social API endpoints)
- Axios HTTP Client (used internally for HTTP requests)