SearchByKeyword

Command status: Active
Supported by OpenApps API: Yes
Supported by Internal/Reseller API: Yes
Possibly queued processing: No

This function returns Search data for a given keyword.

Resource Description

AnalysisResUnits

1000

RetrievalResUnits

Actual number of rows of data returned

This function accepts the following parameters:

Parameter Description

cmd

Required: must be set to: SearchByKeyword.

query

Required: The keyword to search for.

scope

0 - returns Root Domains
2 (default) - returns URLs

from

(optional) Where to start the results from.

count

10 (default) - How many results to retrieve.

Example 1

Below you can see example of query for aggregated Searhc results for a particular keyword: majestic:
https://api.majestic.com/api/xml?app_api_key=API_KEY&cmd=SearchByKeyword&query=majestic&scope=2

This produces the following XML:



https://api.majestic.com/api/json?app_api_key=API_KEY&cmd=GetAnchorText&item=majestic.com&FilterAnchorText=majestic

This produces the following JSON:

Query results will be returned in datatable named Results with the following headers:

  1. Item - The resulting Root Domain/URL.
  2. Title - The title of the resutlt.
  3. SearchScore - A unique Majestic metric to give a score to the result.
  4. CitationFlow - Citation Flow for the Item
  5. TrustFlow - Trust Flow for the Item
  6. RefDomains - Ref Domains for the Item
  7. ExtBackLinks - External Backlinks for the Item

For more information about access to the Majestic API suite, visit our Plans & Pricing page.