---
title: "Get the bottom 20 companies by metric"
url: "https://developer.argaam.com/apis/fundamentals-layer-api-sandbox-v1/versions/6df307f2-7eaf-4885-847f-c59d9ce4f0bb/operations/getCompaniesRankingsByMarketIdLowest20ByMetric"
---

> Full API specification: https://developer.argaam.com/apis/fundamentals-layer-api-sandbox-v1/versions/6df307f2-7eaf-4885-847f-c59d9ce4f0bb.md

# Get the bottom 20 companies by metric

`GET` `/api/v1.1/companies/rankings/{marketId}/lowest-20/{metric}`

Operation ID: `getCompaniesRankingsByMarketIdLowest20ByMetric`

Returns the twenty lowest-ranked companies in the market for the requested metric.

## 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.
- `metric` (string, required) - Ranking metric to sort by (e.g. `pe`, `market-cap`, `dividend-yield`).

## Query parameters

- `period` (string, optional) - Time window for the series, e.g. `1d`, `1m`, `3m`, `1y`, `5y`. Defaults to `quarter`.

## Responses

- `200` - Success

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Fundamentals Layer API
  version: v1.1
servers:
  - url: https://api-sandbox.argaam.com
    description: Argaam API Gateway (Sandbox)
paths:
  /api/v1.1/companies/rankings/{marketId}/lowest-20/{metric}:
    get:
      tags:
        - Companies
      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: metric
          in: path
          required: true
          schema:
            type: string
          description: Ranking metric to sort by (e.g. `pe`, `market-cap`,
            `dividend-yield`).
        - name: period
          in: query
          schema:
            type: string
            default: quarter
          example: year
          description: Time window for the series, e.g. `1d`, `1m`, `3m`, `1y`, `5y`.
            Defaults to `quarter`.
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ApiV1Response"
      summary: Get the bottom 20 companies by metric
      description: Returns the twenty lowest-ranked companies in the market for the
        requested metric.
      operationId: getCompaniesRankingsByMarketIdLowest20ByMetric
security:
  - ApiKeyAuth: []
components:
  schemas:
    ApiV1Response:
      type: object
      properties:
        success:
          type: boolean
        apiVersion:
          type: string
          nullable: true
        timestamp:
          type: string
          format: date-time
        requestId:
          type: string
          nullable: true
        data:
          nullable: true
        meta:
          $ref: "#/components/schemas/ApiV1Meta"
        rateLimit:
          $ref: "#/components/schemas/ApiV1RateLimit"
      additionalProperties: false
    ApiV1Meta:
      type: object
      properties:
        page:
          type: integer
          format: int32
        pageSize:
          type: integer
          format: int32
        totalRecords:
          type: integer
          format: int32
        totalPages:
          type: integer
          format: int32
          readOnly: true
        hasNextPage:
          type: boolean
          readOnly: true
        hasPreviousPage:
          type: boolean
          readOnly: true
      additionalProperties: false
    ApiV1RateLimit:
      type: object
      properties:
        limit:
          type: integer
          format: int32
        remaining:
          type: integer
          format: int32
        reset:
          type: string
          format: date-time
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
