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

# /stackexchange/questions/search

> Full-text search across Stack Exchange questions

**Price:** 5 credits per 100 results



## OpenAPI

````yaml /openapi/developer-data.json post /api/stackexchange/questions/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/stackexchange/questions/search:
    post:
      tags:
        - /stackexchange
      summary: /stackexchange/questions/search
      description: |-
        Full-text search across Stack Exchange questions

        **Price:** 5 credits per 100 results
      operationId: __api_stackexchange_questions_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StackexchangeQuestionsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/StackexchangeQuestion'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StackexchangeQuestionsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        site:
          type: string
          minLength: 1
          default: stackoverflow
        query:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
        tagged:
          anyOf:
            - type: string
            - type: 'null'
        sort:
          $ref: '#/components/schemas/StackexchangeSearchSort'
          default: relevance
        order:
          $ref: '#/components/schemas/StackexchangeSearchOrder'
          default: desc
        accepted:
          anyOf:
            - type: boolean
            - type: 'null'
        min_answers:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        min_views:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
      type: object
      required:
        - query
        - count
    StackexchangeQuestion:
      properties:
        '@type':
          type: string
          default: StackexchangeQuestion
        id:
          type: integer
        body:
          anyOf:
            - type: string
            - type: 'null'
        score:
          anyOf:
            - type: integer
            - type: 'null'
        view_count:
          anyOf:
            - type: integer
            - type: 'null'
        answer_count:
          anyOf:
            - type: integer
            - type: 'null'
        is_answered:
          type: boolean
          default: false
        is_closed:
          type: boolean
          default: false
        accepted_answer_id:
          anyOf:
            - type: integer
            - type: 'null'
        tags:
          items:
            type: string
          type: array
          default: []
        owner:
          anyOf:
            - $ref: '#/components/schemas/StackexchangeOwner'
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        last_activity_at:
          anyOf:
            - type: integer
            - type: 'null'
        last_edit_at:
          anyOf:
            - type: integer
            - type: 'null'
        content_license:
          anyOf:
            - type: string
            - type: 'null'
        link:
          type: string
          default: ''
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    StackexchangeSearchSort:
      type: string
      enum:
        - relevance
        - votes
        - activity
        - creation
    StackexchangeSearchOrder:
      type: string
      enum:
        - desc
        - asc
    StackexchangeOwner:
      properties:
        '@type':
          type: string
          default: StackexchangeOwner
        user_id:
          anyOf:
            - type: integer
            - type: 'null'
        account_id:
          anyOf:
            - type: integer
            - type: 'null'
        display_name:
          type: string
          default: ''
        reputation:
          anyOf:
            - type: integer
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        user_type:
          anyOf:
            - type: string
            - type: 'null'
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````