---
title: "Stack Overflow"
description: "Stack Overflow questions and answers naming your keyword."
canonical: https://docs.mentio.dev/platforms/stackoverflow
markdown: https://docs.mentio.dev/platforms/stackoverflow.mdx
---

# Stack Overflow

Stack Overflow questions and answers naming your keyword.

Mentio searches Stack Overflow questions and answers for your keyword, newest first.

| `platform`                    | `stackoverflow`       |
| ----------------------------- | --------------------- |
| What is found                 | Questions and answers |
| Freshness                     | About every hour      |
| Last 30 days on a new keyword | Yes, the newest 10    |

## Track it [#track-it]

Create a keyword limited to Stack Overflow. Leave `platforms` out to search every platform.

TypeScript:

```ts
const response = await fetch('https://api.mentio.dev/v1/keywords', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MENTIO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "term": "Acme",
    "kind": "brand",
    "platforms": [
      "stackoverflow"
    ]
  }),
});

const data = await response.json();
console.log(data);
```

Python:

```python
import os
import requests

response = requests.post(
    "https://api.mentio.dev/v1/keywords",
    headers={"Authorization": f"Bearer {os.environ['MENTIO_API_KEY']}"},
    json={
      "term": "Acme",
      "kind": "brand",
      "platforms": [
        "stackoverflow"
      ]
    },
)
print(response.json())
```

cURL:

```bash
curl -X POST "https://api.mentio.dev/v1/keywords" \
  -H "Authorization: Bearer $MENTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "term": "Acme",
  "kind": "brand",
  "platforms": [
    "stackoverflow"
  ]
}'
```

## Read its mentions [#read-its-mentions]

Filter the mentions list to Stack Overflow. `intents=question` keeps the questions.

TypeScript:

```ts
const response = await fetch('https://api.mentio.dev/v1/mentions?platforms=stackoverflow&intents=question', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.MENTIO_API_KEY}`,
  },
});

const data = await response.json();
console.log(data);
```

Python:

```python
import os
import requests

response = requests.get(
    "https://api.mentio.dev/v1/mentions?platforms=stackoverflow&intents=question",
    headers={"Authorization": f"Bearer {os.environ['MENTIO_API_KEY']}"},
)
print(response.json())
```

cURL:

```bash
curl -X GET "https://api.mentio.dev/v1/mentions?platforms=stackoverflow&intents=question" \
  -H "Authorization: Bearer $MENTIO_API_KEY"
```

Response (trimmed):

```json
{
  "data": [
    {
      "id": "mm_8f2k1x9q",
      "status": "open",
      "relevant": true,
      "keyword": {
        "id": "kw_123",
        "term": "Acme"
      },
      "post": {
        "publishedAt": "2026-11-07T14:32:10.000Z",
        "platform": "stackoverflow",
        "kind": "post",
        "url": "https://stackoverflow.com/questions/79123456/acme-webhook-signature-fails",
        "title": "Acme webhook signature check fails in Express",
        "text": "The signature I compute never equals the header. I read the body with express.json() first.",
        "engagement": {
          "likes": 3,
          "replies": 2
        }
      },
      "author": {
        "name": "dev_k",
        "handle": "dev_k",
        "url": "https://stackoverflow.com/users/2345678/dev-k"
      },
      "classification": {
        "relevance": 82,
        "sentiment": "positive",
        "intents": [
          "question",
          "bug_report"
        ],
        "note": "Someone asks about Acme by name."
      }
    }
  ],
  "nextCursor": "eyJ0IjoxNzMxMDAwMDAwfQ"
}
```

## What a mention carries [#what-a-mention-carries]

* `post.text`: the question's title and an excerpt of the question or answer (for an answer, its question's title).
* `author`: display name, profile link and picture.

The rest is the same on every platform: relevance, sentiment and intent from the classifier, your triage, and the keyword it matched. See the [mention shape](/api).

## Mute an author [#mute-an-author]

A profile link, `stackoverflow.com/users/123/name`. See [Mute authors](/alerts#mute-authors).

## Limits [#limits]

* The text is an excerpt, not the whole post.
* Stack Exchange caps daily requests; on a very busy day the platform can go quiet until midnight UTC and catch up then.
