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

# Query Project Requests

> Query raw API request data across all apps in a project (or specific apps).

Filters:
- app_slugs: Comma-separated app slugs (e.g., "api,worker")
- environment: Filter by environment name
- methods: Comma-separated HTTP methods (e.g., "GET,POST")
- status_codes: Comma-separated status codes (e.g., "200,201,404")
- min_response_time/max_response_time: Response time range in ms
- path_filter: Path pattern (use * for wildcards, e.g., "/api/users/*")
- since/until: ISO8601 timestamps for time range
- page/page_size: Pagination controls



## OpenAPI

````yaml https://api.apilens.ai/api/v1/openapi.json get /api/v1/projects/{project_slug}/data/requests
openapi: 3.1.0
info:
  title: APILens API
  version: 1.0.0
  description: API Observability Platform
servers: []
security: []
paths:
  /api/v1/projects/{project_slug}/data/requests:
    get:
      tags:
        - Projects
      summary: Query Project Requests
      description: >-
        Query raw API request data across all apps in a project (or specific
        apps).


        Filters:

        - app_slugs: Comma-separated app slugs (e.g., "api,worker")

        - environment: Filter by environment name

        - methods: Comma-separated HTTP methods (e.g., "GET,POST")

        - status_codes: Comma-separated status codes (e.g., "200,201,404")

        - min_response_time/max_response_time: Response time range in ms

        - path_filter: Path pattern (use * for wildcards, e.g., "/api/users/*")

        - since/until: ISO8601 timestamps for time range

        - page/page_size: Pagination controls
      operationId: api_projects_router_query_project_requests
      parameters:
        - in: path
          name: project_slug
          schema:
            title: Project Slug
            type: string
          required: true
        - in: query
          name: app_slugs
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: App Slugs
          required: false
        - in: query
          name: environment
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Environment
          required: false
        - in: query
          name: since
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Since
          required: false
        - in: query
          name: until
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Until
          required: false
        - in: query
          name: methods
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Methods
          required: false
        - in: query
          name: status_codes
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Status Codes
          required: false
        - in: query
          name: min_response_time
          schema:
            anyOf:
              - type: number
              - type: 'null'
            title: Min Response Time
          required: false
        - in: query
          name: max_response_time
          schema:
            anyOf:
              - type: number
              - type: 'null'
            title: Max Response Time
          required: false
        - in: query
          name: path_filter
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Path Filter
          required: false
        - in: query
          name: page
          schema:
            default: 1
            title: Page
            type: integer
          required: false
        - in: query
          name: page_size
          schema:
            default: 50
            title: Page Size
            type: integer
          required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestsQueryResponse'
      security:
        - JWTBearer: []
components:
  schemas:
    RequestsQueryResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/RequestItemResponse'
          title: Items
          type: array
        total_count:
          title: Total Count
          type: integer
        page:
          title: Page
          type: integer
        page_size:
          title: Page Size
          type: integer
      required:
        - items
        - total_count
        - page
        - page_size
      title: RequestsQueryResponse
      type: object
    RequestItemResponse:
      properties:
        timestamp:
          format: date-time
          title: Timestamp
          type: string
        app_id:
          title: App Id
          type: string
        environment:
          title: Environment
          type: string
        method:
          title: Method
          type: string
        path:
          title: Path
          type: string
        status_code:
          title: Status Code
          type: integer
        response_time_ms:
          title: Response Time Ms
          type: number
        request_size:
          title: Request Size
          type: integer
        response_size:
          title: Response Size
          type: integer
        ip_address:
          title: Ip Address
          type: string
        user_agent:
          title: User Agent
          type: string
        consumer_id:
          title: Consumer Id
          type: string
        consumer_name:
          title: Consumer Name
          type: string
        consumer_group:
          title: Consumer Group
          type: string
      required:
        - timestamp
        - app_id
        - environment
        - method
        - path
        - status_code
        - response_time_ms
        - request_size
        - response_size
        - ip_address
        - user_agent
        - consumer_id
        - consumer_name
        - consumer_group
      title: RequestItemResponse
      type: object
  securitySchemes:
    JWTBearer:
      type: http
      scheme: bearer

````