# @factset/sdk-factsetsearchanswers

> FactSet Search Answers client library for JavaScript

Latest version **2.0.4** (published 2026-06-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @factset/sdk-factsetsearchanswers
pnpm add @factset/sdk-factsetsearchanswers
yarn add @factset/sdk-factsetsearchanswers
bun add @factset/sdk-factsetsearchanswers
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2026-06-17 |
| First published | 2022-02-14 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 3 |
| Unpacked size | 422.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55 |
| Author | FactSet Research Systems |
| Maintainers | fds, tsouthmaydfds, enterprisesdk, fbecker-fds |
| Keywords | FactSet, API, SDK |

## Links

- npm: https://www.npmjs.com/package/@factset/sdk-factsetsearchanswers
- Repository: https://github.com/factset/enterprise-sdk
- Homepage: https://developer.factset.com/
- Issues: https://developer.factset.com/api-catalog/factset-search-answers#report-issue
- npm.io page: https://npm.io/package/@factset/sdk-factsetsearchanswers

## Dependencies (3)

- [superagent](https://npm.io/package/superagent.md) ^9.0.0
- [proxy-agent](https://npm.io/package/proxy-agent.md) ^6.0.0
- [@factset/sdk-utils](https://npm.io/package/@factset/sdk-utils.md) ^2.0.0

## Recent versions

- 2.0.4 (latest) — 2026-06-17
- 2.0.3 — 2026-04-13
- 2.0.2 — 2025-03-20
- 2.0.1 — 2025-03-06
- 2.0.0 — 2024-11-01
- 1.1.0 — 2023-12-15
- 1.0.3 — 2023-10-25
- 1.0.2 — 2023-08-30
- 1.0.1 — 2023-06-06
- 1.0.0 — 2022-12-02
- 0.21.4 — 2022-11-14
- 0.21.3 — 2022-10-24
- 0.21.2 — 2022-08-31
- 0.21.0 — 2022-07-21
- 0.20.0 — 2022-05-24
- … 1 more at https://npm.io/package/@factset/sdk-factsetsearchanswers/versions

## README

[![FactSet](https://raw.githubusercontent.com/factset/enterprise-sdk/main/docs/images/factset-logo.svg)](https://www.factset.com)

# FactSet Search Answers client library for JavaScript

[![API Version](https://img.shields.io/badge/api-v1.1.0-blue)](https://developer.factset.com/api-catalog/factset-search-answers)
[![npm](https://img.shields.io/badge/npm-v2.0.4-orange)](https://www.npmjs.com/package/@factset/sdk-factsetsearchanswers/v/2.0.4)
[![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)

The FactSet Search Answers API provides answers to search queries, reflecting the data shown within FactSet Search Answers, and allowing you to easily add financial data to your widgets, lookups, bots, and assistants. The API understands a fixed amount of search terms and returns structured data from FactSet’s many data sources. Possible answers include Price of a Company, Top 10 Year-to-Date Gainers, Revenue per Passenger Mile, and many more.

This TypeScript/JavaScript package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.1.0
- SDK version: 2.0.4
- Build package: com.factset.sdk.codegen.FactSetJavascriptClientCodegen

For more information, please visit [https://developer.factset.com/contact](https://developer.factset.com/contact)

## Requirements

* Node.js >= 18

## Installation

### npm

```shell
npm install @factset/sdk-utils @factset/sdk-factsetsearchanswers@2.0.4
```

### yarn

```shell
yarn add @factset/sdk-utils @factset/sdk-factsetsearchanswers@2.0.4
```

## Usage

1. [Generate authentication credentials](../../../../README.md#authentication).
2. Setup Node.js environment
   1. Install and activate Node.js >=18. If you're using [nvm](https://github.com/nvm-sh/nvm):

      ```sh
      nvm install 18
      nvm use 18
      ```

   2. (optional) [Install yarn](https://yarnpkg.com/getting-started/install).
3. [Install dependencies](#installation).
4. Run the following:

> [!IMPORTANT]
> The parameter variables defined below are just examples and may potentially contain non valid values. Please replace them with valid values.

### Example Code


```javascript
const { ApiClient, AnswersApi } = require('@factset/sdk-factsetsearchanswers');
const { ConfidentialClient } = require('@factset/sdk-utils');

const apiClient = ApiClient.instance;

// Examples for each supported authentication method are below,
// choose one that satisfies your use case.

// (Preferred) OAuth 2.0: FactSetOAuth2
// See https://github.com/FactSet/enterprise-sdk#oauth-20
// for information on how to create the app-config.json file
//
// The confidential client instance should be reused in production environments.
// See https://github.com/FactSet/enterprise-sdk-utils-typescript#authentication
// for more information on using the ConfidentialClient class
apiClient.factsetOauth2Client = new ConfidentialClient('/path/to/app-config.json');

// Basic authentication: FactSetApiKey
// See https://github.com/FactSet/enterprise-sdk#api-key
// for information how to create an API key
// const FactSetApiKey = apiClient.authentications['FactSetApiKey'];
// FactSetApiKey.username = 'USERNAME-SERIAL';
// FactSetApiKey.password = 'API-KEY';

const apiInstance = new AnswersApi();
const query = "query_example"; // String | Query for desired answer (e.g., \"fds price\")
const opts = {
  'includeThumbnail': false, // Boolean | Includes thumbnail of Adaptive Card in response
  'disableNoAnswerResponses': true, // Boolean | Disables no-result answer responses (no-results and answer without data)
  'theme': "'Light'" // String | Theme for desired answer (e.g., \"Light\", \"Dark\")
};

// Call api endpoint
apiInstance.searchForAdaptiveCardAnswer(query, opts).then(
  data => {

    console.log('API called successfully. Returned data:');
    console.log(data);
  },
  error => {
    console.error(error);
  },
);

```


## Using a Proxy

To add a HTTP proxy for the API client, you can set the proxyUrl for the ApiClient instance:

```javascript
const { ApiClient } = require('@factset/sdk-factsetsearchanswers');

const apiClient = ApiClient.instance;
apiClient.setProxyUrl('http://username:password@proxy.example.com:8080');
```

## Documentation for API Endpoints

All URIs are relative to *https://api.factset.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*factsetsearchanswers.AnswersApi* | [**searchForAdaptiveCardAnswer**](docs/AnswersApi.md#searchForAdaptiveCardAnswer) | **GET** /search/answers/v1/adaptive-card | Fetch FactSet answer in Adaptive Card format
*factsetsearchanswers.AnswersApi* | [**searchForDataAnswer**](docs/AnswersApi.md#searchForDataAnswer) | **GET** /search/answers/v1/data | Fetch FactSet answer in data format


## Documentation for Models

 - [factsetsearchanswers.AdaptiveCardAnswerSuccessResponse](docs/AdaptiveCardAnswerSuccessResponse.md)
 - [factsetsearchanswers.AdaptiveCardDataItem](docs/AdaptiveCardDataItem.md)
 - [factsetsearchanswers.AdaptiveCardWithThumbnail](docs/AdaptiveCardWithThumbnail.md)
 - [factsetsearchanswers.AnswerFailureResponse](docs/AnswerFailureResponse.md)
 - [factsetsearchanswers.AnswerWithTitle](docs/AnswerWithTitle.md)
 - [factsetsearchanswers.AnswerWithTitleAllOf](docs/AnswerWithTitleAllOf.md)
 - [factsetsearchanswers.AnswerWithoutData](docs/AnswerWithoutData.md)
 - [factsetsearchanswers.AnswerWithoutDataAllOf](docs/AnswerWithoutDataAllOf.md)
 - [factsetsearchanswers.AnswerWithoutDataAllOfTemplateData](docs/AnswerWithoutDataAllOfTemplateData.md)
 - [factsetsearchanswers.ApplicationLink](docs/ApplicationLink.md)
 - [factsetsearchanswers.ChangeColor](docs/ChangeColor.md)
 - [factsetsearchanswers.ColoredValue](docs/ColoredValue.md)
 - [factsetsearchanswers.ColoredValueLabelDateAnswer](docs/ColoredValueLabelDateAnswer.md)
 - [factsetsearchanswers.ColoredValueLabelDateAnswerAllOf](docs/ColoredValueLabelDateAnswerAllOf.md)
 - [factsetsearchanswers.ColoredValueLabelDateTemplateData](docs/ColoredValueLabelDateTemplateData.md)
 - [factsetsearchanswers.ColoredValueLabelDateTemplateDataAllOf](docs/ColoredValueLabelDateTemplateDataAllOf.md)
 - [factsetsearchanswers.CountryID](docs/CountryID.md)
 - [factsetsearchanswers.DataAnswer](docs/DataAnswer.md)
 - [factsetsearchanswers.DataAnswerData](docs/DataAnswerData.md)
 - [factsetsearchanswers.DataAnswerSuccessResponse](docs/DataAnswerSuccessResponse.md)
 - [factsetsearchanswers.DataPair](docs/DataPair.md)
 - [factsetsearchanswers.Error](docs/Error.md)
 - [factsetsearchanswers.ErrorLink](docs/ErrorLink.md)
 - [factsetsearchanswers.ErrorSource](docs/ErrorSource.md)
 - [factsetsearchanswers.Fdc3Context](docs/Fdc3Context.md)
 - [factsetsearchanswers.Fdc3Country](docs/Fdc3Country.md)
 - [factsetsearchanswers.Fdc3Instrument](docs/Fdc3Instrument.md)
 - [factsetsearchanswers.InstrumentID](docs/InstrumentID.md)
 - [factsetsearchanswers.LabelValueChangeLabelValueChangeAnswer](docs/LabelValueChangeLabelValueChangeAnswer.md)
 - [factsetsearchanswers.LabelValueChangeLabelValueChangeAnswerAllOf](docs/LabelValueChangeLabelValueChangeAnswerAllOf.md)
 - [factsetsearchanswers.LabelValueChangeLabelValueChangeTemplateData](docs/LabelValueChangeLabelValueChangeTemplateData.md)
 - [factsetsearchanswers.LabelValueChangeLabelValueChangeTemplateDataAllOf](docs/LabelValueChangeLabelValueChangeTemplateDataAllOf.md)
 - [factsetsearchanswers.LinkTextBlockAnswer](docs/LinkTextBlockAnswer.md)
 - [factsetsearchanswers.LinkTextBlockAnswerAllOf](docs/LinkTextBlockAnswerAllOf.md)
 - [factsetsearchanswers.LinkTextBlockTemplateData](docs/LinkTextBlockTemplateData.md)
 - [factsetsearchanswers.LinkTextBlockTemplateDataAllOf](docs/LinkTextBlockTemplateDataAllOf.md)
 - [factsetsearchanswers.NoAnswersBase](docs/NoAnswersBase.md)
 - [factsetsearchanswers.NoAnswersBaseAllOf](docs/NoAnswersBaseAllOf.md)
 - [factsetsearchanswers.NoAnswersFound](docs/NoAnswersFound.md)
 - [factsetsearchanswers.NoAnswersFoundAllOf](docs/NoAnswersFoundAllOf.md)
 - [factsetsearchanswers.PercentChange](docs/PercentChange.md)
 - [factsetsearchanswers.PercentChangeLabelAnswer](docs/PercentChangeLabelAnswer.md)
 - [factsetsearchanswers.PercentChangeLabelAnswerAllOf](docs/PercentChangeLabelAnswerAllOf.md)
 - [factsetsearchanswers.PercentChangeLabelTemplateData](docs/PercentChangeLabelTemplateData.md)
 - [factsetsearchanswers.PercentChangeLabelTemplateDataAllOf](docs/PercentChangeLabelTemplateDataAllOf.md)
 - [factsetsearchanswers.RankedTable](docs/RankedTable.md)
 - [factsetsearchanswers.RankedTableAnswer](docs/RankedTableAnswer.md)
 - [factsetsearchanswers.RankedTableAnswerAllOf](docs/RankedTableAnswerAllOf.md)
 - [factsetsearchanswers.RankedTableEntity](docs/RankedTableEntity.md)
 - [factsetsearchanswers.RankedTableRow](docs/RankedTableRow.md)
 - [factsetsearchanswers.RankedTableTemplateData](docs/RankedTableTemplateData.md)
 - [factsetsearchanswers.RankedTableTemplateDataAllOf](docs/RankedTableTemplateDataAllOf.md)
 - [factsetsearchanswers.Table](docs/Table.md)
 - [factsetsearchanswers.TableAnswer](docs/TableAnswer.md)
 - [factsetsearchanswers.TableAnswerAllOf](docs/TableAnswerAllOf.md)
 - [factsetsearchanswers.TableTableAnswer](docs/TableTableAnswer.md)
 - [factsetsearchanswers.TableTableAnswerAllOf](docs/TableTableAnswerAllOf.md)
 - [factsetsearchanswers.TableTableTemplateData](docs/TableTableTemplateData.md)
 - [factsetsearchanswers.TableTableTemplateDataAllOf](docs/TableTableTemplateDataAllOf.md)
 - [factsetsearchanswers.TableTemplateData](docs/TableTemplateData.md)
 - [factsetsearchanswers.TableTemplateDataAllOf](docs/TableTemplateDataAllOf.md)
 - [factsetsearchanswers.Template](docs/Template.md)
 - [factsetsearchanswers.TemplateWithLinks](docs/TemplateWithLinks.md)
 - [factsetsearchanswers.TemplateWithLinksAllOf](docs/TemplateWithLinksAllOf.md)
 - [factsetsearchanswers.TextBlockFootingAnswer](docs/TextBlockFootingAnswer.md)
 - [factsetsearchanswers.TextBlockFootingAnswerAllOf](docs/TextBlockFootingAnswerAllOf.md)
 - [factsetsearchanswers.TextBlockFootingTemplateData](docs/TextBlockFootingTemplateData.md)
 - [factsetsearchanswers.TextBlockFootingTemplateDataAllOf](docs/TextBlockFootingTemplateDataAllOf.md)
 - [factsetsearchanswers.TitledTextBlock](docs/TitledTextBlock.md)
 - [factsetsearchanswers.ValueChange](docs/ValueChange.md)
 - [factsetsearchanswers.ValueChangeDateLabelAnswer](docs/ValueChangeDateLabelAnswer.md)
 - [factsetsearchanswers.ValueChangeDateLabelAnswerAllOf](docs/ValueChangeDateLabelAnswerAllOf.md)
 - [factsetsearchanswers.ValueChangeDateLabelTemplateData](docs/ValueChangeDateLabelTemplateData.md)
 - [factsetsearchanswers.ValueChangeDateLabelTemplateDataAllOf](docs/ValueChangeDateLabelTemplateDataAllOf.md)
 - [factsetsearchanswers.ValueColor](docs/ValueColor.md)
 - [factsetsearchanswers.ValueLabelAnswer](docs/ValueLabelAnswer.md)
 - [factsetsearchanswers.ValueLabelAnswerAllOf](docs/ValueLabelAnswerAllOf.md)
 - [factsetsearchanswers.ValueLabelDateAnswer](docs/ValueLabelDateAnswer.md)
 - [factsetsearchanswers.ValueLabelDateAnswerAllOf](docs/ValueLabelDateAnswerAllOf.md)
 - [factsetsearchanswers.ValueLabelDateDataPairListAnswer](docs/ValueLabelDateDataPairListAnswer.md)
 - [factsetsearchanswers.ValueLabelDateDataPairListAnswerAllOf](docs/ValueLabelDateDataPairListAnswerAllOf.md)
 - [factsetsearchanswers.ValueLabelDateDataPairListTemplateData](docs/ValueLabelDateDataPairListTemplateData.md)
 - [factsetsearchanswers.ValueLabelDateDataPairListTemplateDataAllOf](docs/ValueLabelDateDataPairListTemplateDataAllOf.md)
 - [factsetsearchanswers.ValueLabelDateTemplateData](docs/ValueLabelDateTemplateData.md)
 - [factsetsearchanswers.ValueLabelDateTemplateDataAllOf](docs/ValueLabelDateTemplateDataAllOf.md)
 - [factsetsearchanswers.ValueLabelDateTextBlockAnswer](docs/ValueLabelDateTextBlockAnswer.md)
 - [factsetsearchanswers.ValueLabelDateTextBlockAnswerAllOf](docs/ValueLabelDateTextBlockAnswerAllOf.md)
 - [factsetsearchanswers.ValueLabelDateTextBlockTemplateData](docs/ValueLabelDateTextBlockTemplateData.md)
 - [factsetsearchanswers.ValueLabelDateTextBlockTemplateDataAllOf](docs/ValueLabelDateTextBlockTemplateDataAllOf.md)
 - [factsetsearchanswers.ValueLabelTemplateData](docs/ValueLabelTemplateData.md)
 - [factsetsearchanswers.ValueLabelTemplateDataAllOf](docs/ValueLabelTemplateDataAllOf.md)


## Documentation for Authorization



### FactSetApiKey

- **Type**: HTTP basic authentication



### FactSetOAuth2


- **Type**: OAuth
- **Flow**: application
- **Authorization URL**: 
- **Scopes**: N/A


# Contributing

Please refer to the [contributing guide](../../../../CONTRIBUTING.md).

# Copyright

Copyright 2026 FactSet Research Systems Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

---
_Source: https://npm.io/package/@factset/sdk-factsetsearchanswers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
