Actions83
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
Overview
This node interacts with the WaAPI service to retrieve the country code associated with a given phone number. It is useful in scenarios where you need to validate, format, or analyze phone numbers by extracting their country codes automatically. For example, it can be used in contact management workflows to standardize phone numbers or in marketing automation to segment users by country.
Properties
| Name | Meaning |
|---|---|
| Id | Instance ID (a numeric identifier for the request or context). |
| Number | The phone number string for which the country code will be retrieved. Example: "50664083362". |
Output
The node outputs JSON data containing the country code information corresponding to the input phone number. The exact structure depends on the API response from WaAPI but typically includes fields such as the detected country code and possibly related metadata about the number.
No binary data output is indicated.
Dependencies
- Requires an active connection to the WaAPI service at
https://waapi.app/api/v1. - Needs an API key credential configured in n8n to authenticate requests to WaAPI.
- The node uses the OpenAPI specification bundled internally to define its properties and operations.
Troubleshooting
Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Providing improperly formatted phone numbers may result in errors or empty responses.
- Network connectivity problems can prevent successful API calls.
Error messages:
- Authentication errors usually indicate invalid or missing API credentials; verify and update your API key.
- Validation errors suggest the phone number format is incorrect; ensure the number is in international format without extra characters.
- Timeout or network errors require checking your internet connection or proxy settings.
Links and References
- WaAPI Official Website
- WaAPI API Documentation (for detailed API usage and response formats)