---
title: "Get sectors for a market"
url: "https://developer.argaam.com/apis/market-data-layer-api-production-v1/versions/ca86b5b0-4709-486f-b41b-f80ad96b0d25/operations/getMarketsByMarketIdSectors"
---

> Full API specification: https://developer.argaam.com/apis/market-data-layer-api-production-v1/versions/ca86b5b0-4709-486f-b41b-f80ad96b0d25.md

# Get sectors for a market

`GET` `/api/v1.1/markets/{marketId}/sectors`

Operation ID: `getMarketsByMarketIdSectors`

Returns the sectors for the market identified by `marketSymbol`. Paginated: use `page` and `pageSize`. Set `lang` to `1` for English or `2` for Arabic.

## Path parameters

- `marketId` (integer, int32, required) - Numeric market identifier (e.g. `1` = Tadawul / Saudi main market). Use `GET /api/v1.1/markets` to list valid values.

## Query parameters

- `lang` (integer, int32, optional) - Response language: `1` = English, `2` = Arabic. Defaults to `1`.
- `sectorName` (string, optional) - Sector name to filter by, matched exactly as returned by the sector endpoints.
- `page` (integer, int32, optional) - 1-based page number. Defaults to `1`.
- `pageSize` (integer, int32, optional) - Number of records per page. Defaults to the endpoint's standard page size; large values are capped server-side.

## Responses

- `200` - Success

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Market Data Layer API
  version: v1.1
servers:
  - url: https://api.argaam.com
    description: Argaam API Gateway (Production)
paths:
  /api/v1.1/markets/{marketId}/sectors:
    get:
      tags:
        - Markets
      parameters:
        - name: marketId
          in: path
          required: true
          schema:
            type: integer
            format: int32
          description: Numeric market identifier (e.g. `1` = Tadawul / Saudi main market).
            Use `GET /api/v1.1/markets` to list valid values.
          example: 3
        - name: lang
          in: query
          schema:
            type: integer
            format: int32
            default: 1
          example: 1
          description: "Response language: `1` = English, `2` = Arabic. Defaults to `1`."
        - name: sectorName
          in: query
          schema:
            type: string
            default: ""
          example: ""
          description: Sector name to filter by, matched exactly as returned by the sector
            endpoints.
        - name: page
          in: query
          schema:
            type: integer
            format: int32
            default: 1
          example: 1
          description: 1-based page number. Defaults to `1`.
        - name: pageSize
          in: query
          schema:
            type: integer
            format: int32
            default: 10
          example: 20
          description: Number of records per page. Defaults to the endpoint's standard
            page size; large values are capped server-side.
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ApiV1Response2"
      summary: Get sectors for a market
      description: >-
        Returns the sectors for the market identified by `marketSymbol`.


        Paginated: use `page` and `pageSize`. Set `lang` to `1` for English or
        `2` for Arabic.
      operationId: getMarketsByMarketIdSectors
security:
  - ApiKeyAuth: []
components:
  schemas:
    ApiV1Response2:
      type: object
      properties:
        success:
          type: boolean
          description: Always true for successful responses.
        apiVersion:
          type: string
          description: Semantic API version (e.g., "1.0.0").
          nullable: true
        timestamp:
          type: string
          description: UTC timestamp when the response was generated.
          format: date-time
        requestId:
          type: string
          description: Unique request identifier for tracing.
          nullable: true
        data:
          description: The response payload.
          nullable: true
        meta:
          $ref: "#/components/schemas/ApiV1Meta2"
        rateLimit:
          $ref: "#/components/schemas/ApiV1RateLimit2"
      additionalProperties: false
      description: Standardized successful API response wrapper for v1.0.0 endpoints.
    ApiV1Meta2:
      type: object
      properties:
        page:
          type: integer
          description: Current page number (1-based).
          format: int32
        pageSize:
          type: integer
          description: Number of items per page.
          format: int32
        totalRecords:
          type: integer
          description: Total number of records available across all pages.
          format: int32
        totalPages:
          type: integer
          description: Total number of pages.
          format: int32
          readOnly: true
        hasNextPage:
          type: boolean
          description: Whether there is a next page available.
          readOnly: true
        hasPreviousPage:
          type: boolean
          description: Whether there is a previous page available.
          readOnly: true
      additionalProperties: false
      description: Pagination and metadata information for collection responses.
    ApiV1RateLimit2:
      type: object
      properties:
        limit:
          type: integer
          description: Total request quota for the current window.
          format: int32
        remaining:
          type: integer
          description: Remaining requests in the current window.
          format: int32
        reset:
          type: string
          description: UTC timestamp when the rate limit window resets.
          format: date-time
      additionalProperties: false
      description: Rate limit information returned with each response.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
