# Find the top-voted answers on a coding topic

**Use case:** 

Search Stack Overflow by votes and pull the question with its accepted answer body, score and tags. Ready for a RAG index.

## Input

```json
{
  "site": "stackoverflow",
  "searchQueries": [
    "memory leak"
  ],
  "sortBy": "votes",
  "maxResultsPerQuery": 50,
  "minScore": 0,
  "acceptedOnly": false,
  "includeAnswers": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "recordType": {
    "label": "Type",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "score": {
    "label": "Score",
    "format": "number"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "answerCount": {
    "label": "Answers",
    "format": "number"
  },
  "isAnswered": {
    "label": "Answered",
    "format": "boolean"
  },
  "isAccepted": {
    "label": "Accepted",
    "format": "boolean"
  },
  "tags": {
    "label": "Tags",
    "format": "array"
  },
  "author": {
    "label": "Author",
    "format": "text"
  },
  "authorReputation": {
    "label": "Reputation",
    "format": "number"
  },
  "createdAt": {
    "label": "Asked",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Stack Exchange Scraper: Questions, Answers & Tags](https://apify.com/glitchbound/stackexchange-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/glitchbound/stackexchange-scraper) to learn more, explore other use cases, and run it yourself.