About the SEO APIs

With the Wix SEO APIs, you can optimize your website's search engine visibility and monetization strategy. These APIs enable you to manage critical SEO files, control search engine crawler access, define authorized ad sellers, and integrate advanced keyword research capabilities into your apps.

The SEO APIs provide tools to:

  • Control search engine access: Manage which pages search engine crawlers can index using the Robots.txt API.
  • Monetize with transparency: Define authorized digital ad sellers with the Ads.txt API.
  • Optimize keyword strategy: Integrate 3rd-party keyword research tools through the SEO Keyword Suggestions Service Plugin.

These APIs work together to give you control over a site's SEO configuration while maintaining security, privacy, and transparency.

TXT file management APIs

The TXT file APIs allow you to programmatically manage standard text files that communicate important information to search engines, ad networks, and AI systems.

Robots.txt API

The Robots.txt API enables you to control which search engine crawlers can access different parts of a website. Use it to:

  • Prevent duplicate content issues by blocking crawler access to specific pages.
  • Protect sensitive or private pages from being indexed.
  • Manage crawler traffic to a site.
  • Optimize crawl budget for large websites.

The Robots.txt file follows the Robots Exclusion Protocol and is one of the fundamental tools for SEO management.

Ads.txt API

The Ads.txt API helps Wix users maintain control over their digital advertising inventory. With this API, you can:

  • Declare which advertising platforms are authorized to sell ad inventory for a site.
  • Combat ad fraud by preventing unauthorized resellers.
  • Increase advertiser confidence and potentially increase ad revenue.
  • Maintain transparency in the digital advertising supply chain.

The Ads.txt initiative is an IAB Tech Lab standard adopted by major advertising platforms.

SEO keyword suggestions service plugin

The SEO Keyword Suggestions Service Plugin enables 3rd-party SEO tool providers to integrate their keyword research capabilities directly into the Wix platform.

This service plugin allows you to:

  • Provide keyword research data including search volume, difficulty, and trends.
  • Suggest alternative keywords to help users optimize their content.
  • Show searcher intent analysis for better content targeting.
  • Update Wix users about remaining credit in their plan.

This service plugin allows you as a 3rd-party provider to extend Wix's SEO capabilities with your own specialized tools and data. Your integration appears seamlessly in the Wix SEO setup flow, helping Wix users discover and use your keyword research services.

How the APIs work together

While each API serves a distinct purpose, they work together to support key SEO management scenarios:

  1. Site optimization workflow: Use the SEO Keyword Suggestions service plugin to help Wix users research and select optimal keywords, then configure the Robots.txt API to ensure search engines can properly crawl and index the optimized content.

  2. Monetization strategy: Once you've optimized content for search engines using keyword insights, configure the Ads.txt API to ensure your ad inventory is sold only through authorized channels.

Before you begin

It's important to note the following points before starting to code:

  • Functionality not currently available: The following SEO capabilities are not currently available via API:

    • Meta tag management.
    • Sitemap generation.
    • Redirect management.
    • Canonical URLs.
    • Structured data.
    • URL inspection.
  • TXT file APIs (Robots.txt, Ads.txt):

    • Changes to these files affect how external systems interact with the entire site, so use caution when making updates.
    • Each file has a default Wix configuration that can be restored at any time. See the respective API documentation for details.
  • SEO Keyword Suggestions service plugin:

    • To test your app with the SEO Keyword Suggestions service plugin, you need to contact Wix support to add your app to the SEO Setup Checklist flow for testing.
    • The service plugin isn't yet supported by the CLI.
Did this help?