semrush-api-client
v0.1.25
Published
[](https://github.com//RenKoya1/semrush-api-client) [](https://www.npmjs.com/package/se
Downloads
380
Readme
semrush-api-client
A Node.js/TypeScript client for accessing the SEMrush API easily.
Installation
npm install semrush-api-clientUsage Example
First, set your SEMrush API key in your environment variables (e.g., in a .env file):
SEMRUSH_API_KEY=your_api_key_hereThen, use the client in your code:
import { SemrushAPIClient } from "semrush-api-client";
const client = new SemrushAPIClient({
api_key: process.env.SEMRUSH_API_KEY!,
});
// Get domain rank
client.getDomainOverview({ domain: "apple.com" });
// Get keyword data
client.getKeywordOverview({ phrase: "apple" });Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.
License
See LICENSE.
