GET/API key only
Use it to check that the API is up and that your API key is accepted. Returns version, apikey and userid: the authenticated member's id, else the X-VDM-Uniqid value, else unknown.
No parameters.
curl "https://www.fmylife.com/api/v2/" \
-H "X-VDM-Api-Key: $API_KEY"{
"version": "2.0",
"apikey": "{{apikey}}",
"userid": "1237346633",
"meta": {},
"badge": [],
"badge_display": []
}A real API response, on test data. Lists are cut to 2 items.
GET/appconfigAPI key only
Returns a configuration object under data, cacheable for 24 hours. It currently holds at most a contest boolean (whether a story contest is running) and may be empty.
No parameters.
curl "https://www.fmylife.com/api/v2/appconfig" \
-H "X-VDM-Api-Key: $API_KEY"{
"data": [],
"meta": {},
"badge": [],
"badge_display": []
}A real API response, on test data. Lists are cut to 2 items.
POST/supportAPI key only
When authenticated, the member's username and email are used as the sender. Otherwise, username must be a valid email address. The subject is prefixed with your API key's description. Returns 202 on success, 400 if the email, subject or message is missing or invalid.
usernameoptionalsubjectoptionalmessageoptionalcurl -X POST "https://www.fmylife.com/api/v2/support" \
-H "X-VDM-Api-Key: $API_KEY"{
"data": null,
"meta": {},
"badge": [],
"badge_display": []
}A real API response, on test data. Lists are cut to 2 items.
GET/discover/{service}API key only
Returns active members with a profile picture, created within the last created months, paginated (meta). The authenticated member is excluded. Without a service (/discover) and with favorite, birthday and random, a user token is required (401 otherwise); lastprofiles, lastpictures, lastbirthdays and followed also work anonymously. lat/long only apply when authenticated, and this location filter currently returns a server error. Example: /discover/lastprofiles?gender=woman&relation[]=single&agemin=19&agemax=50&page[number]=1&page[bypage]=10.
serviceoptionalin the pathformat (favorite|birthday|lastprofiles|lastpictures|lastbirthdays|random|followed)?favorite (random order for now), birthday (members born on the same date as you), lastprofiles (newest members first), lastpictures (latest profile pictures first), lastbirthdays (members whose birthday is today), random (random order) or followed (most followed first). Without a service: newest members firstlatoptionalauto, optional — latitude of the search area's center (about ±0.66°); auto uses your home city. Use with longlongoptionalauto, optional — longitude of the search area's center (about ±0.66°); auto uses your home city. Use with latgenderoptionalman or woman, optional — gender of the profiles, based on their titlerelationoptionalsingle, couple, complicated (e.g. relation[]=single&relation[]=couple)ageminoptionalagemaxoptionalcreatedoptionalrandomoptional0 turns it onpageoptionalpage[number] (page number, default 1) and page[bypage] (items per page, default 30)curl "https://www.fmylife.com/api/v2/discover/{service}" \
-H "X-VDM-Api-Key: $API_KEY"{
"data": [],
"meta": {
"page": 1,
"per_page": 2,
"page_count": 0,
"total_count": 0
},
"badge": [],
"badge_display": []
}A real API response, on test data. Lists are cut to 2 items.
GET/keywordAPI key only
Returns the current site's keywords used as categories, sorted by name. To search all keywords by prefix, use /keyword/{expr}.
exproptional/keyword/{expr}curl "https://www.fmylife.com/api/v2/keyword" \
-H "X-VDM-Api-Key: $API_KEY"{
"data": [
{
"id": "20",
"uid": 20,
"name": "Animals",
"label": "Animals",
"rub": true
},
{
"id": "25",
"uid": 25,
"name": "Geek",
"label": "Geek",
"rub": true
}
],
"meta": {},
"badge": [],
"badge_display": []
}A real API response, on test data. Lists are cut to 2 items.
GET/keyword/{expr}API key only
Returns the current site's keywords whose name starts with {expr}, sorted by name. Unlike /keyword, the results aren't limited to categories.
exproptionalin the pathformat (.+)?{expr}) — beginning of the keyword namecurl "https://www.fmylife.com/api/v2/keyword/{expr}" \
-H "X-VDM-Api-Key: $API_KEY"{
"data": [],
"meta": {},
"badge": [],
"badge_display": []
}A real API response, on test data. Lists are cut to 2 items.