---
title: "Get stock by symbol id"
method: GET
path: "/public/stocks/{stockSymbol}"
tags: ["📢 Public APIs"]
---

# Get stock by symbol id

`GET /public/stocks/{stockSymbol}`

## Request

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

The API endpoint retrieves a stock based on the Symbol as ID provided as a path variable.

By accessing this endpoint and specifying a valid stock symbol, you will receive a response containing the details of the corresponding stock.

## Response `200`

Get stock by symbol id

- 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)
