Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

The 9 Best SEO APIs in 2027 Compared on Price, Coverage and Limits

Best SEO API in 2026: DataForSEO, Google Search Console, Ahrefs, Semrush, SE Ranking, SerpApi, Majestic, Moz and Collaborator API compared on pricing, coverage and rate limits.

Published on
17/10/2026
Updated on
17/10/2026
Reading time
18 min
The 9 Best SEO APIs in 2027 Compared on Price, Coverage and Limits

Tools

On this page

In short

the best SEO API in 2027 for most developers is DataForSEO, because it is the only one in this comparison that combines pay as you go billing (from $0.0006 per Google results page), SERP, keyword, backlink and AI answer data in one account, with a $50 minimum payment instead of a subscription. The Google Search Console API is the right first choice for data about your own site, since it is free. Ahrefs and Semrush make sense when your team already pays for those suites, SE Ranking is the cheapest subscription that includes API credits and AI visibility data, SerpApi is the simplest way to get raw results pages, and Majestic and Moz are specialists in link metrics. The deciding criterion is the billing unit: per request, per row, per credit or per month.

Want to go further? Ask

Quick quiz

Which kind of SEO tool is right for you?

Question 1 of 425%
How well do you know SEO?

Transparency: Sorank is our own software, and it is not in this ranking because it does not sell raw SEO data through an API. It appears in the section on MCP servers, where it belongs. I ranked the nine APIs on their public pricing pages and official documentation, checked on 10 October 2026 (29 November 2026 for Collaborator API), and wrote "not published" wherever a vendor does not publish a number.

An SEO API is a programming interface that returns search data (results pages, keyword volumes, backlinks, rankings, AI answers) as structured JSON, so a script, a dashboard or an AI assistant can use it without a human copying numbers out of a tool. Some are free: Google states that all use of the Search Console API is free of charge, subject to usage limits. Most are not, and the way each vendor counts what you consume changes the real price far more than the headline figure does.

How did I rank these SEO APIs?

I compared the nine APIs on four criteria chosen before looking at who wins them, because they are the four questions a developer or an agency asks before writing the first line of code.

  1. Pricing model. Pay per request, credits, API units or a fixed monthly plan, and the minimum you must spend before the first call.
  2. Coverage. Which data the API returns: results pages, keyword metrics, backlinks, rankings of your own site, and data about answers given by AI assistants.
  3. Rate limits. The published ceiling on requests per second, per minute or per hour, which decides whether a rank tracker or a bulk audit is even possible.
  4. Documentation and tooling. Public documentation, a free test path, and an official MCP server for connecting AI assistants.

Every price below comes from the vendor's own pricing page or documentation, in the currency the vendor displays. Prices for data APIs move several times a year, so check them on the day you sign up.

The 9 best SEO APIs in 2027

Screenshot of the official page of DataForSEO
Official page of DataForSEO, captured on October 27, 2026.

1. DataForSEO: best overall for pay as you go SEO data

What it does. DataForSEO sells SEO data as separate APIs billed per use. Its SERP API covers seven search engines (Google, Bing, YouTube, Yahoo, Baidu, Naver and Seznam) and returns parsed JSON or raw HTML. Alongside it sit keyword, backlink and on-page APIs, and an AI Optimization API that returns brand and domain mentions and citations across ChatGPT, Gemini, Google AI Overview, Claude and Perplexity, AI search volume for keywords, and responses collected from several language models.

Pricing. Pay as you go, with a minimum payment of $50 and a $1 credit for new accounts. A Google results page of 10 results costs $0.0006 in the standard queue (about 5 minutes), $0.0012 in the priority queue and $0.002 in live mode (up to 6 seconds). On the AI side, the LLM Mentions API is listed at $0.1 per request plus $0.001 per row, and AI Keyword Data at $0.01 per task plus $0.0001 per keyword.

Limits. 2,000 requests per minute by default, with lower caps on some live endpoints (12 per minute for live Google Ads keyword data). An official MCP server is published as open source.

Verdict. I would choose it to build a product or an internal tool, because you pay for exactly what you call and the AI answer data lives in the same account as the SERP data.

Screenshot of the official page of Google Search Console API
Official page of Google Search Console API, captured on October 27, 2026.

2. Google Search Console API: best free API for your own site

What it does. The Search Console API returns the clicks, impressions, click-through rate and average position Google records for a site you have verified, broken down by query, page, country, device and date. It also exposes URL Inspection (index status of a page) and sitemaps. It returns nothing about sites you do not own.

Pricing. Free.

Limits. Google publishes them in detail: 1,200 Search Analytics queries per minute per site and per user, and 2,000 URL inspections per day per site. A single Search Analytics request returns at most 25,000 rows, and Google warns that the API does not guarantee every data row.

Verdict. I would connect it first on any project: it is the only source of real Google clicks for your site, and it costs nothing. If you want the step-by-step method, our guide to checking a keyword position with a Google API walks through it.

Screenshot of the official page of Ahrefs API
Official page of Ahrefs API, captured on October 27, 2026.

What it does. The Ahrefs API v3 exposes the data behind Ahrefs: backlink analysis, keyword research, rank tracking and brand visibility across search and AI platforms. Ahrefs also runs an MCP server with setup guides for Claude, ChatGPT and Claude Code.

Pricing. API access starts on the Lite plan at $129 per month with 200,000 API units and 100 rows per request, then Standard at $249 (800,000 units, 200 rows), Advanced at $449 (2,000,000 units, 500 rows) and Enterprise from $1,499 per month with an annual commitment (4,000,000 units, unlimited rows). The pricing page lists "API and MCP access" from Lite.

Limits. 60 requests per minute by default, with HTTP 429 responses beyond that. Free test queries are available without an Enterprise plan.

Verdict. I would choose it when the team already lives in Ahrefs and needs its backlink index in scripts. Bought only for the API, the unit model is harder to forecast than per request billing.

Screenshot of the official page of Semrush API
Official page of Semrush API, captured on October 27, 2026.

4. Semrush API: best for teams already on Semrush

What it does. The Semrush Standard API covers domain, keyword and backlink analytics plus the Projects data, and a separate Trends API returns traffic and market data. Semrush also publishes an MCP server compatible with ChatGPT, Claude, Gemini, Perplexity, Cursor, VS Code and Claude Code.

Pricing. On the current pricing page, "API data integration" appears on the Advanced plan, at $549 per month or $455.67 per month billed annually. API units are bought on top, in packages of 2, 5, 10 or 20 million units that expire at the end of each billing period. Semrush does not publish the price of those packages. Consumption depends on the report: the documentation gives 40 units per line for a backlinks call. The Trends API is sold separately, with a default of 10,000 requests per month.

Limits. No more than 10 requests per second from one IP address and 10 simultaneous requests per user, according to the API terms. Cached data must not be kept longer than one month without written consent.

Verdict. I would choose it when Semrush is already the reference tool of the team. For a new project, an unpublished unit price makes budgeting difficult.

Screenshot of the official page of SE Ranking API
Official page of SE Ranking API, captured on October 27, 2026.

5. SE Ranking API: best value subscription with AI search data

What it does. The SE Ranking API covers keyword research, backlinks, domain analysis with SERP and traffic data, website audits and AI search visibility across ChatGPT, Gemini, Perplexity, AI Mode and AI Overviews. An MCP server, included in every plan, connects the data to Claude, Codex, Gemini or Cursor.

Pricing. API access is included in every plan: Core at $129 per month comes with 25,000 API credits per month, Growth at $279 per month with 100,000. An API add-on starts at $149 per month, and a standalone pay as you go option requires a $50 minimum deposit. The free trial lets you test the API.

Limits. Up to 10 requests per second by default, raised on request through support.

Verdict. I would choose it when a small team wants rankings, backlinks and AI visibility data through one subscription, without paying enterprise prices for API access.

Screenshot of the official page of SerpApi
Official page of SerpApi, captured on October 27, 2026.

6. SerpApi: best for raw results pages on many search engines

What it does. SerpApi returns results pages as JSON for Google (including AI Overview, AI Mode, Maps, Shopping, Scholar and Trends), Bing, Baidu, Brave, DuckDuckGo, Yahoo, Yandex and Naver, plus marketplaces such as Amazon, eBay and Walmart, and YouTube. It does not publish keyword volumes or backlink data: it scrapes results pages and nothing else.

Pricing. Monthly plans by number of searches: free at 250 searches per month, Starter at $25 for 1,000, Developer at $75 for 5,000, Production at $150 for 15,000, and up to cloud plans of several million. Cached, errored and failed searches are not counted.

Limits. Throughput is capped per hour by plan: 50 searches per hour on the free plan, 200 on Starter, 1,000 on Developer, 3,000 on Production.

Verdict. I would choose it for a prototype or a product that needs results pages from many engines with a predictable monthly bill. Per results page, it costs more than DataForSEO at the same volume.

Screenshot of the official page of Majestic API
Official page of Majestic API, captured on October 27, 2026.

What it does. Majestic specialises in links: its API returns backlinks, referring domains and its own Trust Flow and Citation Flow metrics. There are no keyword volumes and no results pages.

Pricing. API access comes only with the API plan, at €379.99 per month or €316.66 per month billed annually (€3,799.90 per year), the prices displayed on its pricing page. The plan includes everything in PRO plus the full API, with 100 million analysis units, 20 million retrieval units and 500,000 index item info units. Higher unit levels exist on request.

Limits. Consumption is governed by those unit pools. No per minute rate is stated on the pricing page.

Verdict. I would choose it for link audits and link prospecting at scale, where a dedicated link index is the whole point.

Screenshot of the official page of Moz API
Official page of Moz API, captured on October 27, 2026.

8. Moz API: best for Domain Authority metrics

What it does. The Moz API returns the metrics Moz created, Domain Authority and Page Authority, along with Spam Score and link metrics. It is the reference source when a client or a marketplace asks for a Domain Authority figure.

Pricing. The API is a subscription separate from Moz Pro, billed by rows. Moz publishes its tiers on its API pricing page, which could not be loaded on our verification date, so I do not quote a number here: check it directly.

Limits. Not verified on our check date.

Verdict. I would choose it when Domain Authority itself is the metric you are asked for. For anything broader, the APIs above cover more.

What it does. Collaborator API gives you access to a link building marketplace with 46,000+ websites. You can filter sites by Ahrefs, Majestic, Moz and Serpstat metrics, order placements, track deals, and check whether published links are live and indexed.

Pricing. According to Collaborator, API access is free for all registered users. You only pay for the placements you order, at prices set by each publisher.

Limits. According to Collaborator, 100 read requests and 20 write requests per minute per API key. It does not provide keyword, ranking or SERP data.

Verdict. A good fit for SEO, GEO and PR specialists and agencies that buy placements at scale and want to automate the process. Pair it with a data API like DataForSEO or Ahrefs for research.

Which SEO API is cheapest for each use?

The cheapest SEO API depends on the billing unit. For data about your own site, the Search Console API costs nothing. For results pages at volume, per request billing (DataForSEO) beats monthly bundles. For backlinks inside a suite, the entry plan of the suite you already use is usually cheaper than a second subscription.

APIPricing modelEntry price (October 2026)CoveragePublished rate limit
DataForSEOPay as you go$50 minimum payment, Google SERP from $0.0006 per pageSERP on 7 engines, keywords, backlinks, AI mentions and responses2,000 requests per minute
Google Search Console APIFree$0Your own sites: clicks, impressions, position, URL Inspection1,200 queries per minute per site, 2,000 inspections per day per site
Ahrefs APISubscription with API unitsLite $129 per month, 200,000 unitsBacklinks, keywords, rank tracking, brand visibility in AI60 requests per minute
Semrush APIPlan plus unit packagesAdvanced $549 per month, unit price not publishedDomain, keyword and backlink analytics, Trends API separate10 requests per second per IP
SE Ranking APICredits in plans, add-onCore $129 per month, 25,000 creditsKeywords, backlinks, SERP, audits, AI search visibilityUp to 10 requests per second
SerpApiMonthly plan by searchesFree 250 searches, Starter $25 for 1,000Results pages on Google, Bing and 6 other engines, no volumes, no backlinks50 to 3,000 searches per hour by plan
Majestic APIAPI plan with unit pools€379.99 per monthBacklinks, Trust Flow, Citation FlowNot published, unit based
Moz APISubscription by rowsPublished on Moz's API pricing pageDomain Authority, Page Authority, Spam Score, linksNot verified
Collaborator APIFree API access, pay per placement$0 for the API, placements priced by each publisherLink building marketplace: 46,000+ websites, orders and link tracking, no SEO data100 read and 20 write requests per minute per key (stated by Collaborator)

Read the table by column. Only DataForSEO and SE Ranking return data about AI answers through the API as of October 2026, and Ahrefs adds brand visibility in AI platforms. Only Google is free as a data source. Only SerpApi covers marketplaces. And two vendors out of nine (Semrush and Moz) leave part of the real cost off the pages we could check, which is a cost in itself when you build a business on top of the data.

Which SEO API should you choose for your project?

The right SEO API is the one whose billing unit matches how your project consumes data. A rank tracker calls the same queries every day, a keyword research tool calls thousands of new ones once, and an AI visibility tool calls prompts every week.

  • You are building a SaaS or an internal tool: DataForSEO, then SerpApi if you need marketplaces.
  • You only need your own Google data: the Search Console API, free.
  • Your agency already pays for a suite: the Ahrefs or Semrush API, to keep one source of truth for clients.
  • You want AI visibility data without enterprise pricing: SE Ranking or the DataForSEO AI Optimization API.
  • You work on links: Majestic for volume, Moz when the client asks for Domain Authority.

If you do not want to write code at all, a ready made product is faster than any API. Our ranking of SEO software compares the suites built on this kind of data, and our list of AI SEO tools covers the ones that write and publish content.

Keyword research API: what it returns and how to read the numbers

A keyword research API returns, for each keyword you send, a search volume, a competition level and often a bid range, plus a list of related ideas. The primary source for Google search data is the Keyword Plan Idea Service in the Google Ads API: you send 1 to 20 seed keywords, a page URL or a site domain, and it returns up to 10000 ideas per page. Other providers estimate volumes with their own methods, so the same keyword can show different numbers in two tools.

What each field tells you

FieldWhat it meansWhat to watch
Search volumeA 12-month average of monthly searches, with a month by month breakdownAn average hides seasonal peaks, so read the monthly figures before you plan a page
CompetitionLOW, MEDIUM or HIGH, with a 0 to 100 indexIt describes paid advertising pressure, not how hard a keyword is to rank for organically
Bid rangeLow and high top of page bids, at the 20th and 80th percentilesIt shows what advertisers pay, which is not the value of an organic visit
Device splitSearch counts by device, when you ask for themIt is only returned if the request includes it

Set up the request so the numbers are comparable

  1. Fix the language and the geo target. Leave the language out and you get keywords in every language. An empty geo list targets every geography, and you can add up to 10 locations.
  2. Batch the seeds. A request takes 1 to 20 keywords, so group your seeds by topic and run one batch per topic.
  3. Page through the results. Check next_page_token on every response, because a page can hold fewer results than you asked for before the final page.
  4. Store the date and the monthly breakdown. A volume without its date cannot be compared with the next pull.

The Google Ads API needs a 10-digit customer ID in each call, and the Keyword Plan Idea Service works without creating a Keyword Plan first. Read the generate keyword ideas reference before you write the call, because field names change between API versions.

Tip

Test the call on 10 keywords whose volume you already know from the Google Ads interface. If the numbers differ, check the language and geo parameters first.

Mistakes that waste a budget

  • Using a 12-month average as a forecast. A keyword that peaks in one month can look flat in the average.
  • Ranking by volume alone. Check the results page first. If ads, a map pack or an AI answer take the top of it, the visits you can win are fewer than the volume suggests.
  • Calling the API again for keywords you already pulled. Cache each response with its date and parameters, so a rerun does not repeat calls you already made.

For the full method, read our guide to automated keyword research, and compare the tools that sell this data in our list of the best keyword research tools.

API or MCP server: how do you connect an AI to SEO data?

An MCP server is the faster way to connect an AI assistant to SEO data, and an API is the right way to connect code. The Model Context Protocol, published by Anthropic as an open standard in November 2024, lets Claude, ChatGPT or Cursor call a data source as a tool, without anyone writing the integration.

Four vendors in this ranking publish an official MCP server: DataForSEO, Ahrefs, Semrush and SE Ranking. Sorank publishes one too, for a different job. The difference is what the AI can do once connected. Data MCP servers let the AI read numbers. The Sorank MCP server lets the AI read and act on your account:

  • Read: your Search Console data, the traffic that comes from AI assistants and your AI visibility (whether ChatGPT, Claude, Gemini and the others mention your brand on the questions your customers ask).
  • Act: write articles, manage the publication calendar, publish to your CMS and change settings, directly from the conversation.
  • Control: publishing, deleting and editing settings are separate permissions you select on the consent screen. Generating articles uses the same monthly quota as the app, and reading data does not use it.
  • Compatibility: Claude, ChatGPT, Claude Code, VS Code with GitHub Copilot, Cursor, and any client that supports remote MCP over Streamable HTTP with OAuth, or a personal key in a header. No API key is needed for most assistants.

The Sorank MCP is included in every plan at no extra cost, with an active subscription on at least one site. For checking pages one at a time, our free SEO tools do the job without any API.

Conclusion

For most developers, DataForSEO is the best SEO API in 2026, because per request billing and AI answer data in the same account fit almost every project. Connect the free Search Console API first for your own site, keep Ahrefs or Semrush if your team already pays for them, and pick SE Ranking for an affordable subscription with AI visibility data. If what you want is an AI assistant that analyses your Search Console and AI visibility, then writes and publishes the articles, compare the Sorank plans: Essential at $99 per month or $79 per month billed annually, with a 3-day free trial.

SEO API integrations: how to connect one to your application

An SEO API integration is the code that calls the provider, stores the JSON it returns and turns it into something you use, such as a rank report or a keyword table. Most integrations follow the same loop: authenticate, send a request, check the response, store the result and retry only the calls that failed. Get that loop right before you build anything on top of it.

What to set up before the first call

  1. Store the credentials in environment variables. Never commit an API key to a repository, and rotate it if it ever leaks.
  2. Decide the billing unit. Write down whether you pay per request, per row, per credit or per month, so the next person knows what one run costs.
  3. Read the rate limit. Check how many requests per second or per minute the account allows, and whether the limit applies per key, per IP address or per user.
  4. Test on a small sample. Run five or ten queries first, check the fields and the cost, then scale up.

A minimal request with retries

This Python example reads the key from the environment, waits a little longer after each failed attempt and stops after five tries.

import os, time, requests

API_KEY = os.environ.get('SEO_API_KEY')

def fetch(url, payload, retries=5):
    for attempt in range(retries):
        r = requests.post(url, json=payload, headers={'Authorization': f'Bearer {API_KEY}'}, timeout=30)
        if r.status_code == 200:
            return r.json()
        if r.status_code in (429, 500, 502, 503):
            time.sleep(2 ** attempt)
            continue
        r.raise_for_status()
    raise RuntimeError('Retries exhausted')

Retry only the calls that are safe to repeat. A read can run twice without harm, but a call that starts a paid job may bill you twice, so check the provider's documentation before you add retries to it.

Errors to avoid

SituationWhat it usually meansWhat to do
HTTP 429You sent requests faster than the limit allowsSlow down, queue the calls and retry after a pause
HTTP 401 or 403The key is wrong, expired or lacks access to that endpointStop and check the key, because retrying will not help
Empty resultsThe query is too narrow, the country or language is wrong, or the data is not available for that siteLog the parameters and compare them with the provider's own interface
Higher cost than expectedA loop repeats a paid call, or a retry is billed againCache responses and cap the number of calls per run

Cache each response with its date, its parameters and its raw JSON. If you need the same keyword, country and device twice in one run, read the cache instead of paying for a second call. Keeping the raw JSON lets you rebuild a report when the provider changes a field name.

Read the provider's terms before you store data for longer than a run, and check whether a copy of the data may leave your servers. Some terms limit how long cached results may be kept.

If the integration feeds a recurring report, our guide to automated SEO reporting picks up where this one stops, and a Looker Studio dashboard is a common place to show the result.

This ranking reflects my own experience and opinion as an SEO expert with more than 7 years in the field. It is based on verified facts, but the order itself is my personal view.

Frequently asked questions

Is there a free SEO API?

Yes. The Google Search Console API is free and returns clicks, impressions, click-through rate and average position for the sites you have verified, within published usage limits. SerpApi also has a free plan of 250 searches per month, and DataForSEO gives new accounts a $1 credit to test its APIs.

Does Ahrefs have an API, and how much does it cost?

Yes. In October 2026, Ahrefs includes API and MCP access from its Lite plan at $129 per month, with 200,000 API units and 100 rows per request. Higher plans add more units and rows, up to Enterprise from $1,499 per month. The default limit is 60 requests per minute.

What is the difference between an SEO API and an MCP server?

An SEO API returns data to code that a developer writes, such as a script or a dashboard. An MCP server exposes the same kind of data as tools that an AI assistant like Claude or ChatGPT can call by itself during a conversation. Many vendors now offer both, and the MCP server is usually the faster way to work with SEO data from an AI.

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.Profile photo of Xavier Breull, Sorank customer
Google
Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.
5/5
+5,000
users

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel