APIDeveloperSearch & Research

Search Stack Overflow questions by tag

Questions on Stack Overflow with a tag, from the Stack Exchange API: title, link, score, answer count, views, whether an answer is accepted, time, tags, author, id and the first 300 characters of the question. `sort` is activity, votes, creation, hot, week or month; `limit` up to 100 in one call. Usage limits: Tag-based question discovery, not full answers. Up to 100 questions. Preserve source URLs, author attribution and the applicable CC BY-SA license. Draft retail price: USD 0.000150/successful call, equal to the TREG catalog rate; no markup.

Selected price
$0.00015 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Search Stack Overflow questions by tag

Prepare your request, then continue with your agent.

Selected price

$0.00015 / call

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body* object
default 20
default activity
Questions on Stack Overflow with a tag, from the Stack Exchange API: title, link, score, answer count, views, whether an answer is accepted, time, tags, author, id and the first 300 characters of the question. `sort` is activity, votes, creation, hot, week or month; `limit` up to 100 in one call. Usage limits: Tag-based question discovery, not full answers. Up to 100 questions. Preserve source URLs, author attribution and the applicable CC BY-SA license. Draft retail price: USD 0.000150/successful call, equal to the TREG catalog rate; no markup.

Sample response

{
  "meta": {
    "blocked": [],
    "elapsed_ms": 195,
    "from_cache": false,
    "llm_calls": 0,
    "pages_fetched": 1,
    "partial": false,
    "warnings": [
      "module: stackoverflow-questions: [python] votes · 1 questions · API quota left 299"
    ]
  },
  "recipe": "stackoverflow-questions",
  "rows": [
    {
      "answered": true,
      "answers": 51,
      "author": "Alex. S.",
      "created": "2008-10-23T22:21:11Z",
      "id": 231767,
      "score": 13137,
      "tags": [
        "python",
        "iterator",
        "generator",
        "yield"
      ],
      "text": "What functionality does the yield keyword in Python provide? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild if self._rightchild and distance + max_dis …",
      "title": "What does the \"yield\" keyword do in Python?",
      "url": "https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python",
      "views": 3502969
    }
  ],
  "usage": {
    "boxes": [
      "gate",
      "recipe"
    ],
    "cache": "miss",
    "engine": "recipe",
    "lines": [
      {
        "about": "the call",
        "boxes": [
          "gate"
        ],
        "cache": "miss",
        "call": "recipes",
        "engine": "gate",
        "units": 1
      },
      {
        "attempts": 1,
        "cache": "api",
        "call": "scrape",
        "engine": "api",
        "proxy": "isp",
        "units": 1,
        "url": "https://api.stackexchange.com/…"
      }
    ],
    "units": 2
  },
  "version": 1
}

Response result

Response structure

Inferred from examples
  • metaobject
    • blockedunknown[]
    • elapsed_msinteger
    • from_cacheboolean
    • llm_callsinteger
    • pages_fetchedinteger
    • partialboolean
    • warningsstring[]
  • recipestring
  • rowsobject[]
    • answeredboolean
    • answersinteger
    • authorstring
    • createdstring
    • idinteger
    • scoreinteger
    • tagsstring[]
    • textstring
    • titlestring
    • urlstring
    • viewsinteger
  • usageobject
    • boxesstring[]
    • cachestring
    • enginestring
    • linesobject[]
      • aboutstring
      • boxesstring[]
      • cachestring
      • callstring
      • enginestring
      • unitsinteger
      • attemptsinteger
      • proxystring
      • urlstring
    • unitsinteger
  • versioninteger

Sellers

SellerPricingRequests · 30dPerformanceAccess
tregCurrent
Search Stack Overflow questions by tag · POST · View API reference
$0.00015 / call—
—successP50—
Loading...
Selected pricing · tregUSD / call
Unit price
$0.00015

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 2. Price update time: not supplied.

calls

Total $0.015

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/treg/call/crawl4ai.stackoverflow.search.questions
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/treg/call/crawl4ai.stackoverflow.search.questions' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 1,
  "sort": "votes",
  "tag": "python"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
limitJSON request bodybodyintegerNodefault 20

minimum: 1 · maximum: 100

sortJSON request bodybodystringNodefault activity

enum: "activity", "votes", "creation", "hot", "week", "month"

tagJSON request bodybodystringYes

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Third-party response reference · Documented HTTP 200 Historical third-party reference. It may differ from the current provider response; verify the original contract before use.

Third-party reference · Testnet 2026-11-04: success (abridged)
{
  "meta": {
    "blocked": [],
    "elapsed_ms": 195,
    "from_cache": false,
    "llm_calls": 0,
    "pages_fetched": 1,
    "partial": false,
    "warnings": [
      "module: stackoverflow-questions: [python] votes · 1 questions · API quota left 299"
    ]
  },
  "recipe": "stackoverflow-questions",
  "rows": [
    {
      "answered": true,
      "answers": 51,
      "author": "Alex. S.",
      "created": "2008-10-23T22:21:11Z",
      "id": 231767,
      "score": 13137,
      "tags": [
        "python",
        "iterator",
        "generator",
        "yield"
      ],
      "text": "What functionality does the yield keyword in Python provide? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild if self._rightchild and distance + max_dis …",
      "title": "What does the \"yield\" keyword do in Python?",
      "url": "https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python",
      "views": 3502969
    }
  ],
  "usage": {
    "boxes": [
      "gate",
      "recipe"
    ],
    "cache": "miss",
    "engine": "recipe",
    "lines": [
      {
        "about": "the call",
        "boxes": [
          "gate"
        ],
        "cache": "miss",
        "call": "recipes",
        "engine": "gate",
        "units": 1
      },
      {
        "attempts": 1,
        "cache": "api",
        "call": "scrape",
        "engine": "api",
        "proxy": "isp",
        "units": 1,
        "url": "https://api.stackexchange.com/…"
      }
    ],
    "units": 2
  },
  "version": 1
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Search Stack Overflow questions by tag

Questions on Stack Overflow with a tag, from the Stack Exchange API: title, link, score, answer count, views, whether an answer is accepted, time, tags, author, id and the first 300 characters of the question. `sort` is activity, votes, creation, hot, week or month; `limit` up to 100 in one call.
Usage limits: Tag-based question discovery, not full answers. Up to 100 questions. Preserve source URLs, author attribution and the applicable CC BY-SA license.
Draft retail price: USD 0.000150/successful call, equal to the TREG catalog rate; no markup.
Documentation: https://openany.si/apis/0e45d7ed-e94c-4166-b90a-14aef37a8f41
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/treg/call/crawl4ai.stackoverflow.search.questions
Price: $0.00015 / call
Provider: treg
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/treg/call/crawl4ai.stackoverflow.search.questions' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 1,
  "sort": "votes",
  "tag": "python"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Search Stack Overflow questions by tag",
  "endpoint": "https://api.openany.si/v1/agent-apis/treg/call/crawl4ai.stackoverflow.search.questions",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Questions on Stack Overflow with a tag, from the Stack Exchange API: title, link, score, answer count, views, whether an answer is accepted, time, tags, author, id and the first 300 characters of the question. `sort` is activity, votes, creation, hot, week or month; `limit` up to 100 in one call.\nUsage limits: Tag-based question discovery, not full answers. Up to 100 questions. Preserve source URLs, author attribution and the applicable CC BY-SA license.\nDraft retail price: USD 0.000150/successful call, equal to the TREG catalog rate; no markup.",
      "json_schema": {
        "additionalProperties": false,
        "properties": {
          "limit": {
            "description": "default 20",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "sort": {
            "description": "default activity",
            "enum": [
              "activity",
              "votes",
              "creation",
              "hot",
              "week",
              "month"
            ],
            "type": "string"
          },
          "tag": {
            "description": "",
            "example": "rust",
            "type": "string"
          }
        },
        "required": [
          "tag"
        ],
        "type": "object"
      },
      "location": "body",
      "name": "body",
      "nullable": false,
      "pointer": "",
      "required": true,
      "type": "object"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "150",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Third-party reference · Testnet 2026-11-04: success (abridged)",
      "request": {
        "body": {
          "limit": 1,
          "sort": "votes",
          "tag": "python"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "meta": {
          "blocked": [],
          "elapsed_ms": 195,
          "from_cache": false,
          "llm_calls": 0,
          "pages_fetched": 1,
          "partial": false,
          "warnings": [
            "module: stackoverflow-questions: [python] votes · 1 questions · API quota left 299"
          ]
        },
        "recipe": "stackoverflow-questions",
        "rows": [
          {
            "answered": true,
            "answers": 51,
            "author": "Alex. S.",
            "created": "2008-10-23T22:21:11Z",
            "id": 231767,
            "score": 13137,
            "tags": [
              "python",
              "iterator",
              "generator",
              "yield"
            ],
            "text": "What functionality does the yield keyword in Python provide? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild if self._rightchild and distance + max_dis …",
            "title": "What does the \"yield\" keyword do in Python?",
            "url": "https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python",
            "views": 3502969
          }
        ],
        "usage": {
          "boxes": [
            "gate",
            "recipe"
          ],
          "cache": "miss",
          "engine": "recipe",
          "lines": [
            {
              "about": "the call",
              "boxes": [
                "gate"
              ],
              "cache": "miss",
              "call": "recipes",
              "engine": "gate",
              "units": 1
            },
            {
              "attempts": 1,
              "cache": "api",
              "call": "scrape",
              "engine": "api",
              "proxy": "isp",
              "units": 1,
              "url": "https://api.stackexchange.com/…"
            }
          ],
          "units": 2
        },
        "version": 1
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Third-party reference · Testnet 2026-11-04: success (abridged)

Historical third-party reference. It may differ from the current provider response; verify the original contract before use.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    body
    Questions on Stack Overflow with a tag, from the Stack Exchange API: title, link, score, answer count, views, whether an answer is accepted, time, tags, author, id and the first 300 characters of the question. `sort` is activity, votes, creation, hot, week or month; `limit` up to 100 in one call. Usage limits: Tag-based question discovery, not full answers. Up to 100 questions. Preserve source URLs, author attribution and the applicable CC BY-SA license. Draft retail price: USD 0.000150/successful call, equal to the TREG catalog rate; no markup.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/treg/call/crawl4ai.stackoverflow.search.questions' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "limit": 1,
      "sort": "votes",
      "tag": "python"
    }'
  3. Check the response

    Third-party response reference · Documented HTTP 200

    Third-party response reference
    {
      "meta": {
        "blocked": [],
        "elapsed_ms": 195,
        "from_cache": false,
        "llm_calls": 0,
        "pages_fetched": 1,
        "partial": false,
        "warnings": [
          "module: stackoverflow-questions: [python] votes · 1 questions · API quota left 299"
        ]
      },
      "recipe": "stackoverflow-questions",
      "rows": [
        {
          "answered": true,
          "answers": 51,
          "author": "Alex. S.",
          "created": "2008-10-23T22:21:11Z",
          "id": 231767,
          "score": 13137,
          "tags": [
            "python",
            "iterator",
            "generator",
            "yield"
          ],
          "text": "What functionality does the yield keyword in Python provide? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild if self._rightchild and distance + max_dis …",
          "title": "What does the \"yield\" keyword do in Python?",
          "url": "https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python",
          "views": 3502969
        }
      ],
      "usage": {
        "boxes": [
          "gate",
          "recipe"
        ],
        "cache": "miss",
        "engine": "recipe",
        "lines": [
          {
            "about": "the call",
            "boxes": [
              "gate"
            ],
            "cache": "miss",
            "call": "recipes",
            "engine": "gate",
            "units": 1
          },
          {
            "attempts": 1,
            "cache": "api",
            "call": "scrape",
            "engine": "api",
            "proxy": "isp",
            "units": 1,
            "url": "https://api.stackexchange.com/…"
          }
        ],
        "units": 2
      },
      "version": 1
    }

Loading related APIs…

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Search Stack Overflow questions by tag with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.