Sign Up

Log In

StackOverflow

FREE
By stefan.skliarov
Updated 6 days ago
Social
-/10
Popularity Score
-
Latency
-
Success Rate

StackOverflow API Documentation

Retrieve data from Stack forums (including Stack Overflow).

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
POSTacceptAnswer
POSTaddFlagToAnswer
POSTaddFlagToComment
POSTcreateAnswerOnQuestion
POSTcreateComment
POSTcreateFilter
POSTdeAuthenticateApplication
POSTdeleteSingleAnswer
POSTdeleteSingleComment
POSTdownvoteAnswer
POSTgetAccessToken
POSTgetAllAnswers
POSTgetAllBadges
POSTgetAllComments
POSTgetAllEvents
POSTgetAllNamedBadges
POSTgetAllPosts
POSTgetAllPrivileges
POSTgetAllSuggestedEdits
POSTgetAllTagsSynonyms
POSTgetAnswerFlagOptions
POSTgetAnswersByIds
POSTgetAnswersByUserIds
POSTgetAnswersComments
POSTgetAnswersToQuestions
POSTgetAssociatedAccountsByUserIds
POSTgetBadgesByIds
POSTgetCommentFlagOptions
POSTgetCommentsByIds
POSTgetElectedModerators
POSTgetMe
POSTgetMentionedMeComments
POSTgetMentionedUsersComments
POSTgetModeratorTags
POSTgetModerators
POSTgetMyActivity
POSTgetMyAnswers
POSTgetMyAssociatedAccounts
POSTgetMyBadges
POSTgetMyComments
POSTgetMyInbox
POSTgetMyNotifications
POSTgetMyPosts
POSTgetMyPrivileges
POSTgetMyReplyComments
POSTgetMyReputation
POSTgetMyReputationHistory
POSTgetMySuggestedEdits
POSTgetMyTags
POSTgetMyTimeline
POSTgetMyTopAnswerTags
POSTgetMyTopQuestionTags
POSTgetMyTopTags
POSTgetMyUnreadInboxItems
POSTgetMyUnreadNotifications
POSTgetPostsByIds
POSTgetPostsByUserIds
POSTgetPostsCommentsByIds
POSTgetPostsSuggestedEdits
POSTgetQuestionFlagOptions
POSTgetRecentlyAwardedBadges
POSTgetRelatedTags
POSTgetRequiredTags
POSTgetRevisionsByIds
POSTgetRevisionsByPostIds
POSTgetSingleTagTopAnswerers
POSTgetSingleTagTopAskers
POSTgetStackoverflowStatistics
POSTgetSuggestedEditsByIds
POSTgetSynonymsForTags
POSTgetTags
POSTgetTagsAwardedBadges
POSTgetTagsInfo
POSTgetUserActivity
POSTgetUserInbox
POSTgetUserNotifications
POSTgetUserPrivileges
POSTgetUserTimeline
POSTgetUserTopAnswerTags
POSTgetUserTopAnswersByTags
POSTgetUserTopQuestionTags
POSTgetUserTopTags
POSTgetUserUnreadInboxItems
POSTgetUserUnreadNotifications
POSTgetUsers
POSTgetUsersBadges
POSTgetUsersByIds
POSTgetUsersComments
POSTgetUsersReplyComments
POSTgetUsersReputation
POSTgetUsersSuggestedEdits
POSTgetUsersTags
POSTgetWikisForTags
POSTinvalidateAccessToken
POSTsearch
POSTundoAcceptOnAnswer
POSTundoDownvoteOnAnswer
POSTundoUpvoteOnAnswer
POSTundoUpvoteOnComment
POSTupdateSingleAnswer
POSTupdateSingleComment
POSTupvoteAnswer
POSTupvoteComment
POSTacceptAnswer

Accepts an answer.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
accessTokenSTRING
REQUIREDAccess token obtained from StackOverflow.
clientKeyCREDENTIALS
REQUIREDClient Key for your application
answerIdNUMBER
REQUIREDId of the answer to accept
Optional Parameters
previewSELECT
OPTIONALPreview: true or false
Request Snippet
unirest.post("https://StackOverflowstefan.skliarovV1.p.rapidapi.com/acceptAnswer")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("preview=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://StackOverflowstefan.skliarovV1.p.rapidapi.com/acceptAnswer")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("preview=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard