> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Stack Exchange

> Questions, answers, users and tags across Stack Overflow and the other Stack Exchange sites, through the Stack Exchange API v2.3.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/stackexchange.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=5bc8a0cf0ad40858b8caee01ac78130c)

[Web Catalog · Social](https://docs.webrouter.net/data-apis.md?category=social)

Key optional

Endpoints

9

Auth

Key in header

[Vendor docs](https://api.stackexchange.com/docs) · Serves `stackoverflow.com`, `stackexchange.com`, `superuser.com`, `serverfault.com`, `askubuntu.com`, `mathoverflow.net`, `stackapps.com`

## Setup

| Variable | | What it is |
| - | - | - |
| `STACKEXCHANGE_API_KEY` | some calls | Optional request key of an app registered on Stack Apps (or an access token); raises the quota. Sent as 'Authorization: Bearer \<key>'. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every per-site call needs site (e.g. stackoverflow).
* Quota: 10,000 requests a day per IP by default (shared by keyless apps on that IP); without a key or token at most 25 pages are returned. Over 30 requests a second from one IP gets the IP banned for a while.
* When a response carries backoff, wait that many seconds before calling the same method again. Do not repeat an identical request within a minute; responses are cached.
* Responses are always gzip or deflate compressed. Every response is a wrapper with items, has\_more and quota\_remaining; total only with filter=total or a custom filter.
* Dates are Unix epoch seconds. Bodies are not returned by default: pass filter=withbody.

## Endpoints

GET

Search questions

Questions matching free text and filters (tags, title, body, answers, accepted, views...).

[Open](#stackexchange-search-advanced)

GET

Search with excerpts

Questions and answers matching the criteria, each with a highlighted excerpt.

[Open](#stackexchange-search-excerpts)

GET

Find similar questions

Questions similar to a hypothetical title (and optional tags), like the site's related-questions suggestion.

[Open](#stackexchange-similar)

GET

Get questions by id

Questions identified by id.

[Open](#stackexchange-questions-get)

GET

Get answers to questions

All answers to the given questions.

[Open](#stackexchange-questions-answers)

GET

Get answers by id

Answers identified by id.

[Open](#stackexchange-answers-get)

GET

Get users

User profiles by id, or one user by username.

[Open](#stackexchange-users-get)

GET

List tags

Tags on a site, by popularity by default; filter by substring.

[Open](#stackexchange-tags-list)

GET

List Stack Exchange sites

Every site in the network with its api\_site\_parameter.

[Open](#stackexchange-sites-list)

### Search questions

GET

`/search/advanced`

`stackexchange.search.advanced`

Questions matching free text and filters (tags, title, body, answers, accepted, views...).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `activity`, `votes`, `creation`, `relevance`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `q`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Free text matched against all question properties.
      </td>
    </tr>

    <tr>
      <td>
        `accepted`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for questions with an accepted answer, false for those without.
      </td>
    </tr>

    <tr>
      <td>
        `answers`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum number of answers.
      </td>
    </tr>

    <tr>
      <td>
        `body`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Text that must appear in the body.
      </td>
    </tr>

    <tr>
      <td>
        `closed`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for closed questions only, false for open only.
      </td>
    </tr>

    <tr>
      <td>
        `migrated`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for questions migrated away only, false for the rest.
      </td>
    </tr>

    <tr>
      <td>
        `notice`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for questions with a post notice only, false for those without.
      </td>
    </tr>

    <tr>
      <td>
        `nottagged`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags none of which may be present; needs another parameter too.
      </td>
    </tr>

    <tr>
      <td>
        `tagged`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags, at least one of which must be present.
      </td>
    </tr>

    <tr>
      <td>
        `title`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Text that must appear in the title.
      </td>
    </tr>

    <tr>
      <td>
        `user`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Id of the user who must own the question.
      </td>
    </tr>

    <tr>
      <td>
        `url`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A URL that must be contained in the post; may include a wildcard.
      </td>
    </tr>

    <tr>
      <td>
        `views`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum number of views.
      </td>
    </tr>

    <tr>
      <td>
        `wiki`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for community wiki questions only, false for the rest.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/advanced-search) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-search), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-search), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-creators-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-search), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-search), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-search)

```python Python theme={null}
router.call_data_api("stackexchange.search.advanced", {'site': 'stackoverflow'})
```

```text MCP theme={null}
call_data_api(endpoint="stackexchange.search.advanced", params={"site": "stackoverflow"})
```

> [!NOTE]
>
> * Does not accept min or max.

### Search with excerpts

GET

`/search/excerpts`

`stackexchange.search.excerpts`

Questions and answers matching the criteria, each with a highlighted excerpt.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `activity`, `votes`, `creation`, `relevance`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `q`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Free text matched against all question properties.
      </td>
    </tr>

    <tr>
      <td>
        `accepted`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for questions with an accepted answer, false for those without.
      </td>
    </tr>

    <tr>
      <td>
        `answers`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum number of answers.
      </td>
    </tr>

    <tr>
      <td>
        `body`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Text that must appear in the body.
      </td>
    </tr>

    <tr>
      <td>
        `closed`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for closed questions only, false for open only.
      </td>
    </tr>

    <tr>
      <td>
        `migrated`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for questions migrated away only, false for the rest.
      </td>
    </tr>

    <tr>
      <td>
        `notice`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for questions with a post notice only, false for those without.
      </td>
    </tr>

    <tr>
      <td>
        `nottagged`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags none of which may be present; needs another parameter too.
      </td>
    </tr>

    <tr>
      <td>
        `tagged`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated tags, at least one of which must be present.
      </td>
    </tr>

    <tr>
      <td>
        `title`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Text that must appear in the title.
      </td>
    </tr>

    <tr>
      <td>
        `user`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Id of the user who must own the question.
      </td>
    </tr>

    <tr>
      <td>
        `url`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A URL that must be contained in the post; may include a wildcard.
      </td>
    </tr>

    <tr>
      <td>
        `views`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum number of views.
      </td>
    </tr>

    <tr>
      <td>
        `wiki`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True for community wiki questions only, false for the rest.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/excerpt-search) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-search), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-search), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-creators-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-search), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-search), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-search)

```python Python theme={null}
router.call_data_api("stackexchange.search.excerpts", {'site': 'stackoverflow'})
```

```text MCP theme={null}
call_data_api(endpoint="stackexchange.search.excerpts", params={"site": "stackoverflow"})
```

> [!NOTE]
>
> * Highlighted terms are wrapped in \<span class="highlight">.

### Find similar questions

GET

`/similar`

`stackexchange.similar`

Questions similar to a hypothetical title (and optional tags), like the site's related-questions suggestion.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `activity`, `votes`, `creation`, `relevance`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `title`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Title to find similar questions for.
      </td>
    </tr>

    <tr>
      <td>
        `tagged`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated preferred tags (a preference, not a requirement).
      </td>
    </tr>

    <tr>
      <td>
        `nottagged`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Semicolon-separated excluded tags.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/similar) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-search), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-search), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-creators-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-search), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-search), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-search)

### Get questions by id

GET

`/questions/{ids}`

`stackexchange.questions.get`

Questions identified by id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `activity`, `votes`, `creation`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `ids`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Up to 100 question ids, semicolon-separated.
      </td>
    </tr>

    <tr>
      <td>
        `min`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Lowest value of the sort field to include (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `max`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Highest value of the sort field to include (inclusive).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/questions-by-ids) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-list), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search)

### Get answers to questions

GET

`/questions/{ids}/answers`

`stackexchange.questions.answers`

All answers to the given questions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `activity`, `creation`, `votes`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `ids`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Up to 100 question ids, semicolon-separated.
      </td>
    </tr>

    <tr>
      <td>
        `min`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Lowest value of the sort field to include (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `max`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Highest value of the sort field to include (inclusive).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/answers-on-questions) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-comments), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-comments-list), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-comments), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-profile-comments), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-item-get), [Influencers Club](https://docs.webrouter.net/data-apis/influencersclub.md#influencersclub-posts-details)

### Get answers by id

GET

`/answers/{ids}`

`stackexchange.answers.get`

Answers identified by id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `activity`, `creation`, `votes`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `ids`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Up to 100 answer ids, semicolon-separated.
      </td>
    </tr>

    <tr>
      <td>
        `min`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Lowest value of the sort field to include (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `max`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Highest value of the sort field to include (inclusive).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/answers-by-ids) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-list), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search)

### Get users

GET

`/users/{ids}`

`stackexchange.users.get`

User profiles by id, or one user by username.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `reputation`, `creation`, `name`, `modified`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `ids`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Up to 100 user ids, semicolon-separated, or a single username.
      </td>
    </tr>

    <tr>
      <td>
        `min`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Lowest value of the sort field to include (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `max`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Highest value of the sort field to include (inclusive).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/users-by-ids) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-profile), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-social-metrics), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-users-get), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-get), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-reactions), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-reactions)

### List tags

GET

`/tags`

`stackexchange.tags.list`

Tags on a site, by popularity by default; filter by substring.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`site` required</td><td>string</td><td>query</td><td>Site, as its domain or api\_site\_parameter (from sites.list). Example `stackoverflow`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 0 to 100 (default 30).
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return: default, withbody (adds bodies), none, total, or a custom filter id.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction (default desc). One of `desc`, `asc`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Sort field. One of `popular`, `activity`, `name`</td></tr>

    <tr>
      <td>
        `fromdate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Earliest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `todate`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Latest creation date, Unix seconds (inclusive).
      </td>
    </tr>

    <tr><td>`inname`</td><td>string</td><td>query</td><td>Only tags containing this substring. Example `own`</td></tr>

    <tr>
      <td>
        `min`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Lowest value of the sort field to include (inclusive).
      </td>
    </tr>

    <tr>
      <td>
        `max`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Highest value of the sort field to include (inclusive).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/tags)

```python Python theme={null}
router.call_data_api("stackexchange.tags.list", {'site': 'stackoverflow', 'inname': 'own'})
```

```text MCP theme={null}
call_data_api(endpoint="stackexchange.tags.list", params={"site": "stackoverflow", "inname": "own"})
```

### List Stack Exchange sites

GET

`/sites`

`stackexchange.sites.list`

Every site in the network with its api\_site\_parameter.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `pagesize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page; unbounded for this method.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter naming the fields to return.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.stackexchange.com/docs/sites)

```python Python theme={null}
router.call_data_api("stackexchange.sites.list")
```

```text MCP theme={null}
call_data_api(endpoint="stackexchange.sites.list")
```

> [!NOTE]
>
> * Changes rarely: cache for at least a day.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.