-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Ahrefs - update to API v3 #19063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Ahrefs - update to API v3 #19063
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
45 changes: 0 additions & 45 deletions
45
components/ahrefs/actions/get-backlinks-one-per-domain/get-backlinks-one-per-domain.js
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
components/ahrefs/actions/get-backlinks-one-per-domain/get-backlinks-one-per-domain.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| const ahrefs = require("../../ahrefs.app.mjs"); | ||
|
|
||
| export default { | ||
| name: "Get Backlinks One Per Domain", | ||
| key: "ahrefs-get-backlinks-one-per-domain", | ||
| description: "Get one backlink with the highest `ahrefs_rank` per referring domain for a target URL or domain (with details for the referring pages including anchor and page title). [See the documentation](https://docs.ahrefs.com/docs/api/site-explorer/operations/list-all-backlinks)", | ||
| version: "0.0.6", | ||
| type: "action", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| props: { | ||
| ahrefs, | ||
| target: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "target", | ||
| ], | ||
| }, | ||
| select: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "select", | ||
| ], | ||
| }, | ||
| mode: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "mode", | ||
| ], | ||
| }, | ||
| limit: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "limit", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.ahrefs.getBacklinks({ | ||
| $, | ||
| params: { | ||
| aggregation: "1_per_domain", | ||
| target: this.target, | ||
| select: this.select.join(","), | ||
| mode: this.mode, | ||
| limit: this.limit, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully retrieved backlinks data"); | ||
| return response; | ||
| }, | ||
| }; | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| const ahrefs = require("../../ahrefs.app.mjs"); | ||
michelle0927 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| export default { | ||
| name: "Get Backlinks", | ||
| key: "ahrefs-get-backlinks", | ||
| description: "Get the backlinks for a domain or URL with details for the referring pages (e.g., anchor and page title). [See the documentation](https://docs.ahrefs.com/docs/api/site-explorer/operations/list-all-backlinks)", | ||
| version: "0.0.10", | ||
| type: "action", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| props: { | ||
| ahrefs, | ||
| target: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "target", | ||
| ], | ||
| }, | ||
| select: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "select", | ||
| ], | ||
| }, | ||
| mode: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "mode", | ||
| ], | ||
| }, | ||
| limit: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "limit", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.ahrefs.getBacklinks({ | ||
| $, | ||
| params: { | ||
| target: this.target, | ||
| select: this.select.join(","), | ||
| mode: this.mode, | ||
| limit: this.limit, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully retrieved backlinks data"); | ||
| return response; | ||
| }, | ||
| }; | ||
45 changes: 0 additions & 45 deletions
45
components/ahrefs/actions/get-referring-domains/get-referring-domains.js
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
components/ahrefs/actions/get-referring-domains/get-referring-domains.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| const ahrefs = require("../../ahrefs.app.mjs"); | ||
michelle0927 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| export default { | ||
| name: "Get Referring Domains", | ||
| description: "Get the referring domains that contain backlinks to the target URL or domain. [See the documentation](https://docs.ahrefs.com/docs/api/site-explorer/operations/list-refdomains)", | ||
| key: "ahrefs-get-referring-domains", | ||
| version: "0.0.18", | ||
| type: "action", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| props: { | ||
| ahrefs, | ||
| target: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "target", | ||
| ], | ||
| }, | ||
| select: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "select", | ||
| ], | ||
| description: "An array of columns to return. [See response schema](https://docs.ahrefs.com/docs/api/site-explorer/operations/list-refdomains) for valid column identifiers.", | ||
| }, | ||
| mode: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "mode", | ||
| ], | ||
| }, | ||
| limit: { | ||
| propDefinition: [ | ||
| ahrefs, | ||
| "limit", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.ahrefs.getReferringDomains({ | ||
| $, | ||
| params: { | ||
| target: this.target, | ||
| select: this.select.join(","), | ||
| mode: this.mode, | ||
| limit: this.limit, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully retrieved referring domains data"); | ||
| return response; | ||
| }, | ||
| }; | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.