This API request provides a class result ('Happy' or 'Unhappy') based on a requested mini-survey with answers ranging from 1 (Totally Disagree) to 5 (Totally Agree). The AI algorithm consists of ML (Machine Learning) techniques for the Classification task. For more information about the model, please contact us. We acknowledge the researchers involved in this study and thank them for providing the Dataset for Analysis. We here cite the dataset: 'Koczkodaj, W. (2017). Somerville Happiness Survey [Dataset]. UCI Machine Learning Repository.'
EXAMPLE USE OF "/hapiness" endpoint for required input parameters:CALL: /hapiness?X1=3&X2=3&X3=5&X4=3&X5=4&X6=4RESPONSE:{
"Value Prediction": "Happy"
}hapiness - Recursos do endpoint
| Objeto | Descrição |
|---|---|
X1 |
[Obrigatório] the availability of information about the city services |
X2 |
[Obrigatório] the cost of housing |
X3 |
[Obrigatório] the overall quality of public schools |
X4 |
[Obrigatório] your trust in the local police |
X5 |
[Obrigatório] the maintenance of streets and sidewalks |
X6 |
[Obrigatório] the availability of social community events |
{
"Value Prediction": "Happy"
}
curl --location --request GET 'https://zylalabs.com/api/6822/joyful+insights+forecasting+ai+api/10309/hapiness?X1=Required&X2=Required&X3=Required&X4=Required&X5=Required&X6=Required' --header 'Authorization: Bearer YOUR_API_KEY'
List all vars and possible values.
listallvars - Recursos do endpoint
| Objeto | Descrição |
|---|
{
"X1": "the availability of information about the city services",
"X2": "the cost of housing",
"X3": "the overall quality of public schools",
"X4": "your trust in the local police",
"X5": "the maintenance of streets and sidewalks",
"X6": "the availability of social community events"
}
curl --location --request GET 'https://zylalabs.com/api/6822/joyful+insights+forecasting+ai+api/10310/listallvars' --header 'Authorization: Bearer YOUR_API_KEY'
Info for this API ()
info - Recursos do endpoint
| Objeto | Descrição |
|---|
{
"API Info:": "This API requests per values provide class result ('Happy' or 'Unhappy'). The AI algorithm consists of ML (Machine Learning) techniques for Classification task. Please contact us for more information about the model. We acknowledge the researchers involved in this study and thank them for providing the Dataset for Analysis. We here cite the dataset: 'Koczkodaj, W. (2017). Somerville Happiness Survey [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5PW36.'"
}
curl --location --request GET 'https://zylalabs.com/api/6822/joyful+insights+forecasting+ai+api/10311/info' --header 'Authorization: Bearer YOUR_API_KEY'
| Cabeçalho | Descrição |
|---|---|
Authorization
|
[Obrigatório] Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito. |
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.
The "hapiness" endpoint returns a classification result indicating emotional state as either 'Happy' or 'Unhappy'. The "listallvars" endpoint provides a list of variables related to factors influencing happiness, while the "info" endpoint offers general information about the API and its underlying model.
The "hapiness" endpoint response includes "Value Prediction" indicating the emotional classification. The "listallvars" response contains variable names (e.g., "X1", "X2") and their descriptions, while the "info" endpoint provides a summary of the API's functionality and data sources.
Responses are structured in JSON format. For "hapiness", it returns a single key-value pair. The "listallvars" endpoint returns multiple key-value pairs for each variable, and the "info" endpoint provides a comprehensive overview in a single JSON object.
The "hapiness" endpoint provides emotional classifications, the "listallvars" endpoint details various factors affecting happiness, and the "info" endpoint gives insights into the API's functionality and data sources.
Currently, the API does not support customizable parameters for the "hapiness" or "listallvars" endpoints. Users can simply call these endpoints to receive the predefined data. Future enhancements may allow for more tailored requests.
The data utilized by the Joyful Insights Forecasting AI API is based on the Somerville Happiness Survey dataset, provided by Koczkodaj, W. (2017). This dataset is available in the UCI Machine Learning Repository, ensuring a reliable source for analysis.
Typical use cases include sentiment analysis for social research, understanding community well-being, and enhancing user experience in applications that require emotional insights. The data can help organizations gauge public sentiment on various issues.
Users can leverage the "hapiness" classification to assess emotional trends in their data, while the "listallvars" information can guide them in identifying key factors influencing happiness. This can inform decision-making in community planning or service improvements.
Nível de serviço:
100%
Tempo de resposta:
48ms
Nível de serviço:
100%
Tempo de resposta:
46ms
Nível de serviço:
100%
Tempo de resposta:
920ms
Nível de serviço:
100%
Tempo de resposta:
1.845ms
Nível de serviço:
100%
Tempo de resposta:
239ms
Nível de serviço:
100%
Tempo de resposta:
183ms
Nível de serviço:
100%
Tempo de resposta:
78ms
Nível de serviço:
100%
Tempo de resposta:
121ms
Nível de serviço:
100%
Tempo de resposta:
3.658ms
Nível de serviço:
100%
Tempo de resposta:
21ms
Nível de serviço:
50%
Tempo de resposta:
1.385ms
Nível de serviço:
50%
Tempo de resposta:
1.239ms
Nível de serviço:
50%
Tempo de resposta:
1.319ms
Nível de serviço:
100%
Tempo de resposta:
4.342ms
Nível de serviço:
50%
Tempo de resposta:
6.593ms
Nível de serviço:
50%
Tempo de resposta:
1.053ms
Nível de serviço:
50%
Tempo de resposta:
11.896ms
Nível de serviço:
50%
Tempo de resposta:
4.711ms
Nível de serviço:
50%
Tempo de resposta:
9.245ms
Nível de serviço:
50%
Tempo de resposta:
8.798ms