This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@yext/api
TypeScript icon, indicating that this package has built-in type declarations

0.9.2 • Public • Published

TypeScript Client for Yext APIs

A package that makes it easy to call Yext APIs from TypeScript and JavaScript. Currently covers just a few of the most popular endpoints.

Quick Start

Node.js and npm

This package is available as an npm package:

npm install @yext/api

To call the Entities: Get endpoint, do something like the following:

import {KnowledgeGraphApi} from '@yext/api';
...
  const kg = new KnowledgeGraphApi({apiKey: 'YOUR_API_KEY'});
  const entity = await kg.getEntity('ENTITY_ID');

Deno

This package can be used on Deno via the esm.sh CDN.

import {KnowledgeGraphApi} from 'https://esm.sh/@yext/api';
const kg = new KnowledgeGraphApi({apiKey: 'YOUR_API_KEY'});
const entity = await kg.getEntity('ENTITY_ID');

Readme

Keywords

none

Package Sidebar

Install

npm i @yext/api

Weekly Downloads

42

Version

0.9.2

License

BSD-3-Clause

Unpacked Size

27.1 kB

Total Files

18

Last publish

Collaborators

  • mbowman
  • yext-bot