semrush-api-client 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -26
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # semrush-api
1
+ # semrush-api-client
2
2
 
3
3
  A Node.js/TypeScript client for accessing the SEMrush API easily.
4
4
 
@@ -25,35 +25,12 @@ const client = new SemrushAPIClient({
25
25
  });
26
26
 
27
27
  // Get domain rank
28
- client.getDomainRank({ domain: "apple.com" }).then((data) => {
29
- console.log(data);
30
- });
28
+ client.getDomainRank({ domain: "apple.com" });
31
29
 
32
30
  // Get keyword data
33
- client.getPhrase({ phrase: "apple" }).then((data) => {
34
- console.log(data);
35
- });
31
+ client.getPhrase({ phrase: "apple" });
36
32
  ```
37
33
 
38
- ## API Methods
39
-
40
- ### `getDomainRank(options)`
41
-
42
- Fetches ranking information for a specified domain.
43
-
44
- - `domain` (string): Target domain
45
- - `export_columns` (string[], optional): Columns to retrieve
46
- - `database` (string, optional): Database (country code)
47
- - `display_limit` (number, optional): Number of results
48
-
49
- ### `getPhrase(options)`
50
-
51
- Fetches information for a specified keyword.
52
-
53
- - `phrase` (string): Keyword
54
- - `export_columns` (string[], optional): Columns to retrieve
55
- - `database` (string, optional): Database (country code)
56
-
57
34
  ## Contributing
58
35
 
59
36
  Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semrush-api-client",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",