This endpoint is used to determine the gender associated with a given name from a database. It returns the gender (masculine or feminine) along with a confidence percentage.
Method: GET
Query Parameters:
- key: (string) Your API key to access the endpoint. This is a required parameter.
- name: (string) The name you want to search for. This is a required parameter.
Response:
The response is a JSON object with the following fields:
- Name: (string) The name you searched for.
- Gender: (string) The predicted gender (“Masculine” or “Feminine”).
- Confidence: (string) The confidence percentage in the prediction.
Example Request:
Example 1: Searching for the name “John”
curl -X GET "https://nodetrigger.com/wp-json/v1/get-gender/?key=YOUR_API_KEY&name=John"
Example 2: Searching for the name “Emily”
curl -X GET "https://nodetrigger.com/wp-json/v1/get-gender/?key=YOUR_API_KEY&name=Emily"
Example Responses:
Example 1: Response for the name “John”
{
"Name": "John",
"Gender": "Masculine",
"Confidence": "100%"
}
Example 2: Response for the name “Jane”
{
"Name": "Jane",
"Gender": "Feminine",
"Confidence": "97.5%"
}
Please ensure to replace YOUR_API_KEY
with your actual API key when making requests.
Disclaimer: The results of our Gender Prediction API are optimized for a global market. It is important to note that cultural differences can impact the gender prediction of a name. A name that is commonly feminine in one country might be masculine in another. We are continuously working to improve our model to account for these variations and provide more accurate predictions across diverse cultural contexts.