Welcome to the Ask Yes Man API documentation. This guide will help you integrate Ask Yes Man's powerful decision-making capabilities into your application.
The Ask Yes Man API is a simple GET endpoint that always returns "Yes" as an answer.
fetch('https://askyesman.com/api.html')
.then(response => response.json())
.then(data => console.log(data.answer));
curl https://askyesman.com/api.html
{
"answer": "Yes",
"_links": {
"self": { "href": "https://askyesman.com/api.html" },
"docs": { "href": "https://askyesman.com/docs.html" },
"upgrade": { "href": "https://askyesman.com/upgrade.html" }
},
"_embedded": {
"metadata": {
"confidence": 100,
"response_type": "affirmative",
"version": "1.0.0"
}
}
}
The definitive response to your question (always "Yes")
Related resources and actions available
self
: The current API endpointdocs
: Link to this documentationupgrade
: Link to upgrade to Pro versionAdditional information about the response
confidence
: Confidence level (always 100)response_type
: Type of response (always "affirmative")version
: API version