---
title: "Get a random stock"
method: GET
path: "/public/stocks/stock/random"
tags: ["📢 Public APIs"]
---

# Get a random stock

`GET /public/stocks/stock/random`

## Request

- Base URL: `https://api.freeapi.app/api/v1`
- URL: `https://api.freeapi.app/api/v1/public/stocks/stock/random`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/docs/public/stocks/stock/random/get.ts> (a function with typed inputs; its response is checked against the schema)

The API endpoint returns a single random stock from a list of stocks.

Upon accessing this endpoint, you will receive a response containing the details of a randomly selected stock.

## Response `200`

Get a random stock

- object
  - `data` object
    - `Name` string
    - `Symbol` string
    - `ListingDate` string
    - `ISIN` string
    - `MarketCap` string
    - `CurrentPrice` string
    - `HighLow` string
    - `StockPE` string
    - `BookValue` string
    - `DividendYield` string
    - `ROCE` string
    - `ROE` string
    - `FaceValue` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi.md) - [All operations](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/revisions/a9f3a290e4dc?raw)
