Developer API
Target API requests to the following URL to retrieve the raw trending data associated with Mood of the Nation:
https://moodofthenation.net/api/survey/motn/results/period.format
Available Methods:
GET
Period:
day, week, month
Format:
json
Return:
An array of values in sorted chronological order for each of Mental, Physical, and Emotional, the maximum and minimum possible responses, and the maximum and minimum actual responses in each of the three arrays – all the information we use to construct the trending graphs
Usage Example:
Using cURL:
cURL https://moodofthenation.net/api/survey/motn/results/week.json
Example Response:
{
"maximum_response": 6.5070083333333004,
"maximum": 10,
"minimum": 0,
"minimum_response": 6.3386416666666996,
"Mental": [
6.4983666666667004,
6.4836499999999999,
6.4271000000000003,
6.4110708333332997,
6.4262666666666997,
6.4516999999999998,
6.4410083333332997
],
"Emotional": [
6.5070083333333004,
6.4962708333333001,
6.4409541666666996,
6.4091958333332997,
6.4201333333333004,
6.4585749999999997,
6.4309874999999996
],
"Physical": [
6.4376249999999997,
6.3855833333333001,
6.3469458333333,
6.3582458333333003,
6.3631000000000002,
6.3649083333333003,
6.3386416666666996
]
}
When you use the data from this API please give attribution to www.moodofthenation.net is requested. If you have any issues, please contact This e-mail address is being protected from spambots. You need JavaScript enabled to view it .


