---
title: "Similarity Index"
method: GET
path: "/stock/similarity-index"
tags: ["Default"]
---

# Similarity Index

`GET /stock/similarity-index`

## Request

- Base URL: `https://finnhub.io/api/v1`
- URL: `https://finnhub.io/api/v1/stock/similarity-index`
- Auth: API key in query parameter `token`

Calculate the textual difference between a company's 10-K / 10-Q reports and the same type of report in the previous year using Cosine Similarity. For example, this endpoint compares 2019's 10-K with 2018's 10-K. Companies breaking from its routines in disclosure of financial condition and risk analysis section can signal a significant change in the company's stock price in the upcoming 4 quarters.

## Query parameters

- `symbol` string
- `cik` string
- `freq` string

## Response `200`

successful operation

- SimilarityIndex
  - `symbol` string: Symbol.
  - `cik` string: CIK.
  - `similarity` SimilarityIndexInfo[]: Array of filings with its cosine similarity compared to the same report of the previous year.
    - `cik` string: CIK.
    - `item1` number, float: Cosine similarity of Item 1 (Business). This number is only available for Annual reports.
    - `item1a` number, float: Cosine similarity of Item 1A (Risk Factors). This number is available for both Annual and Quarterly reports.
    - `item2` number, float: Cosine similarity of Item 2 (Management’s Discussion and Analysis of Financial Condition and Results of Operations). This number is only available for Quarterly reports.
    - `item7` number, float: Cosine similarity of Item 7 (Management’s Discussion and Analysis of Financial Condition and Results of Operations). This number is only available for Annual reports.
    - `item7a` number, float: Cosine similarity of Item 7A (Quantitative and Qualitative Disclosures About Market Risk). This number is only available for Annual reports.
    - `accessNumber` string: Access number.
    - `form` string: Form type.
    - `filedDate` string: Filed date <code>%Y-%m-%d %H:%M:%S</code>.
    - `acceptedDate` string: Accepted date <code>%Y-%m-%d %H:%M:%S</code>.
    - `reportUrl` string: Report's URL.
    - `filingUrl` string: Filing's URL.

## Changes

- **2021-07-28** `f522c50644cd`: 1 warning, 5 info
  - removed the optional property `similarity/items/symbol` from the response with the `200` status
  - added the optional property `similarity/items/item1` to the response with the `200` status
  - added the optional property `similarity/items/item1a` to the response with the `200` status
  - added the optional property `similarity/items/item2` to the response with the `200` status
  - …2 more
- **2021-07-26** `0f755a71e903`: 8 info
  - added the optional property `similarity/items/acceptedDate` to the response with the `200` status
  - added the optional property `similarity/items/accessNumber` to the response with the `200` status
  - added the optional property `similarity/items/cik` to the response with the `200` status
  - added the optional property `similarity/items/filedDate` to the response with the `200` status
  - …4 more
- **2021-07-23** `a148c0b2d583`: 1 info
  - api tag `Default` added
- **2020-08-01** `e30753df924e`: 1 info
  - endpoint added
- **2020-05-26** `c5b8e420b78c`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/finnhub-stock-api/apis/finnhub-api/changes/stock/similarity-index/get.md)

---

[API](https://skmtc.dev/finnhub-stock-api/apis/finnhub-api.md) - [All operations](https://skmtc.dev/finnhub-stock-api/apis/finnhub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/finnhub-stock-api/apis/finnhub-api/revisions/415b27331384?raw)
