
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@yext/answers-core
Advanced tools
Answers Core is a networking library for interacting with the Yext Answers API.
For a full getting started walk through, view our official Hitchhiker Guide.
First, install Answers-core via npm:
npm install @yext/answers-core
Next, import and initialize the core library in your application.
The apiKey and experienceKey will come from your Answers experience on yext.com. You can signup for a free trial at https://www.yext.com/free-trial/.
import { provideCore } from '@yext/answers-core';
const core = provideCore({
apiKey: '<your api key>',
experienceKey: '<one of your experience keys>',
locale: 'en',
experienceVersion: 'PRODUCTION',
});
To use the library with Node, use the following import instead:
const { provideCore } = require('@yext/answers-core');
Now that the core is initialized, let's run a search on an "FAQs" vertical.
core.verticalSearch({
verticalKey: 'FAQs',
query: 'What is Yext Answers?',
}).then(results => {
// Do something with the search results
}).catch(err => {
// Handle errors thrown by the core library
});
@yext/answers-core/lib/esm@yext/answers-core/lib/commonjs@yext/answers-core/legacyAnd that's it! See our documentation for a full list of supported API calls.
Yext Answers-core is an open-sourced library licensed under the BSD-3 License.
The licenses of our 3rd party dependencies are collected here: THIRD-PARTY-NOTICES.
FAQs
Typescript Networking Library for the Yext Answers API
We found that @yext/answers-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 98 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.