- IndexNow is a notification that a URL changed, not a guarantee that any engine will crawl, index, or rank it.
- Two things break most implementations: a key file that the engine cannot fetch from the exact URL it expects, and a POST body whose host and URLs do not match.
- Trigger submissions from your publish and update events, batch them, and log every response code so you can tell a working setup from a silently broken one.
If you run a custom site, IndexNow is worth implementing, but only as a notification mechanism. You tell participating search engines that a URL was published, changed or removed, and they may choose to crawl it sooner than they otherwise would. You do not get a guarantee of crawling, indexing or ranking, and Google does not use it for submissions. The protocol itself is simple. Most failures come from two places: a key file that the engine cannot fetch from the location it expects, and a POST body whose host and URLs do not agree with each other. This guide walks through both, plus the response codes, where to trigger submissions in your pipeline, how to log what happens, and how to verify that the setup is working rather than assuming it is.
What IndexNow is, and who uses it
IndexNow is an open protocol that lets a website push a list of changed URLs to a search engine through a single HTTP request. It was introduced by Microsoft and Yandex in 2021, and the design goal was to avoid the wait between a page changing and a crawler noticing. Bing and Yandex both operate IndexNow endpoints, and other engines that have adopted the protocol accept the same submission format. Because of how the protocol works, you can send a submission to one shared endpoint, and participating engines receive it from there. You do not need a separate integration for each one.
Google is the notable absence. Google has discussed and tested IndexNow, but it has not adopted it as a signal that changes how Googlebot crawls or indexes your pages. If your traffic depends heavily on Google, IndexNow will not move that needle. Keep your sitemap current, make sure your internal links reach new pages, and use Search Console for Google-specific checks. IndexNow is useful for the engines that do consume it, and for the practical benefit of having a clean, event-driven record of what you published and when.
It is also worth being clear about what the protocol does not do. It does not tell an engine that a page is good. It does not override robots directives, canonical tags or noindex rules. It does not promise that a URL you submit will appear in results. Think of it as a polite message that says this URL changed, you may want to look at it. The engine decides what happens next, and it can ignore the message entirely.
The two things you must get right
Almost every IndexNow implementation that does not work fails on one of two points, and it is worth checking both before you write any code.
The first is the key file. IndexNow requires you to prove that you control the host you are submitting for. You do this by placing a plain text file on your site that contains your key, and making that file reachable at a predictable URL. The receiving engine fetches that file, compares its contents to the key in your submission, and only accepts URLs for that host if they match. If the file is missing, returns a redirect to a login page, returns HTML instead of the bare key, or sits at a different URL than the one your submission points to, the engine cannot validate you. The response you get back will reflect that, and it is the most common cause of a setup that appears to work but never produces indexing activity.
The second is the POST itself. The body must be valid JSON with the expected fields, the host value must match the domain in your URLs exactly, and every URL in the list must belong to that host. A submission that mixes hosts, uses the wrong scheme, or includes a URL on a subdomain you did not declare will be rejected. These errors are easy to introduce in a custom pipeline, especially if your site serves content on both the apex domain and the www hostname, or if you have a staging environment that generates URLs from a different base.
If you get those two things right, the rest of the protocol is straightforward. If you get either of them wrong, nothing else you do will matter.
Generating a key
The key is a string you create once and reuse. The protocol specification requires it to be between 8 and 128 characters, and it accepts letters, digits and hyphens. Hexadecimal strings are the most common choice because they are easy to generate and easy to validate. A 32-character hexadecimal string is a sensible default. On most systems, a command such as openssl rand -hex 16 will give you one. Any cryptographically random generator will do. Do not use a guessable value such as your domain name or a date, because the key is a shared secret between you and the engine. Its purpose is to show that you control the host, and a weak key defeats that purpose.
Store the key in your configuration or secrets store, not hard-coded in a template where it might be forgotten or copied into a repository by accident. You will need it in two places: the key file on your server, and the submission code that sends the POST. Keep those two in sync by reading both from the same source. A surprising number of broken setups happen because someone rotated the key in one place and not the other.
You can rotate the key if you need to. Change the value, create a new key file with the new name, update your submission code, and remove the old key file once you have confirmed that submissions with the new key succeed. Do not leave the old file in place indefinitely, because it is an unnecessary public record of a credential you have stopped using.
Hosting the key file
The key file is a plain text file named after the key, with a .txt extension. If your key is 3f9c1a7e4b2d4e6f8a0b1c2d3e4f5a6b, the file is named 3f9c1a7e4b2d4e6f8a0b1c2d3e4f5a6b.txt, and its only contents are the key itself, encoded as UTF-8, with no HTML, no extra whitespace lines, and no byte order mark where you can avoid one. Many text editors add a trailing newline. That is usually harmless, but if you see validation failures, strip it and test again.
By default, the engine looks for the key file at the root of the host. For www.example.com, that means the key file served from the root with the key name and a .txt extension. This is the simplest arrangement and the one most sites should use. It also has a practical advantage: you do not need to send a keyLocation field in your submissions, because the engine will look in the default place.
If you cannot or do not want to place the file at the root, you can host it elsewhere, such as in an /indexnow/ directory, and then include a keyLocation field in each POST that gives the full URL of the file. The file still has to be on the same host as the URLs you submit. You cannot host the key on a different domain and use it to submit URLs for your primary domain. The key location is a convenience for unusual site layouts, not a way around the ownership check.
Before you submit anything, test the file in a browser and with curl from outside your network. Confirm that it returns a 200 status, that the content type is plain text or something close to it, that it does not redirect, and that the body is exactly your key. Be especially careful with CDNs, WAF rules and authentication middleware, which sometimes block unfamiliar user agents or challenge automated requests. A key file that works from your browser but fails for an automated fetch is still a broken key file.
Single URL (GET) versus batch (POST)
The protocol offers two forms of submission. The GET form is a single URL passed as a query string, for example a request to the IndexNow endpoint with url and key parameters:
curl "https://api.indexnow.org/indexnow?url=https://www.example.com/blog/new-post/&key=3f9c1a7e4b2d4e6f8a0b1c2d3e4f5a6b"
This is convenient for testing, and it is fine for occasional one-off submissions from a script or a manual check. You can paste it into a browser to confirm that your key file validates. But it does not scale well and it is awkward to log in bulk, because every submission is a separate request with the URL in the query string, which some logging systems truncate or record inconsistently.
The POST form is the one you should use in production. It sends a JSON body that can include up to a published maximum number of URLs in a single request, which is currently 10,000 according to the specification, though you should check the current spec at indexnow.org before relying on that number. Batching reduces request volume, makes logs easier to read, and lets you submit related changes together, such as a new article and the updated category page that links to it. The POST form is also the one that accepts the keyLocation field, which the GET form does not.
For a typical custom site, the pattern is simple: collect the URLs that changed during a publish or update event, group them by host, and send one POST per host per batch. You do not need to send one request per URL unless your pipeline makes that easier to reason about.
The POST body
The POST goes to an IndexNow endpoint with the header Content-Type: application/json; charset=utf-8. The body contains four fields. Three of them are always present in some form, and one is optional.
- host is the hostname of the URLs you are submitting, without the scheme and without a path. It must match exactly, including www if your URLs use it.
- key is the key string you generated. It must match the contents of the key file.
- keyLocation is optional. Include it only when the key file is not at the default root location. It is the full URL of the key file.
- urlList is an array of full URLs, each with the scheme and host. Every URL must belong to the host you named.
A complete example looks like this:
{
"host": "www.example.com",
"key": "3f9c1a7e4b2d4e6f8a0b1c2d3e4f5a6b",
"keyLocation": "https://www.example.com/indexnow/3f9c1a7e4b2d4e6f8a0b1c2d3e4f5a6b.txt",
"urlList": [
"https://www.example.com/blog/new-post/",
"https://www.example.com/blog/updated-guide/"
]
}
In this example the key file lives in a subdirectory, so keyLocation is required. If the file were at the root, you would omit that field. Notice that the trailing slashes on the URLs match the URLs your site actually serves. If your canonical form has a trailing slash and you submit the version without one, the engine may treat them as different URLs, or redirect you and complicate validation. Submit the canonical URL, the one that appears in your sitemap and in your canonical tag.
Send the request with a timeout and treat anything other than a clear success as something to log and review. Do not retry in a tight loop. A brief, bounded retry for network errors is reasonable. Retrying a 400 or 422 without changing anything is pointless, and retrying a 429 aggressively is exactly the behavior that makes the problem worse.
Response codes and what they mean
The protocol defines a small set of response codes. Each one tells you something specific about your submission, and your code should handle them differently rather than treating every non-200 as the same failure.
A 200 response means the submission was received and accepted. This is the response you want. It does not mean the URLs were crawled or indexed. It means the endpoint took your message.
A 202 response means the submission was received, but the key has not yet been validated. The engine will check the key file later and decide whether to accept the URLs. This often happens right after you deploy a new key file, because the engine may not have fetched it yet. Log it, and if it persists across several submissions over a reasonable period, check that the key file is reachable.
A 400 response means the request was malformed. The JSON may be invalid, a required field may be missing, or the format may not match the specification. This is a bug in your submission code, and retrying the same body will produce the same result. Fix the code, then test with a single URL.
A 403 response means the key was not valid. The most common causes are a key file that is missing, unreachable, redirected or containing the wrong text, or a key in the submission that does not match the file. Fix the key file, not the submission, and test the file from outside your network before resubmitting.
A 422 response means the request was well formed, but the content was not acceptable. The most common reasons are that one or more URLs do not belong to the host you specified, or that the key does not match the expected schema. Check that every URL in the list shares the host in the host field, including subdomain differences, and that the key follows the length and character rules.
A 429 response means you are sending too many requests, and the engine considers your pattern potentially spammy. Back off, stop sending for a period, and review how often your pipeline submits. Persistent 429s usually point to a pipeline that submits on every save, every cache refresh or every page view, rather than on actual content changes. Fix the trigger, and do not try to work around the limit by splitting the same URLs across many requests.
Any other status code, or a timeout, should be logged with the full response body if the endpoint returns one, and surfaced to whoever maintains the pipeline.
Where to trigger it in your pipeline
The right trigger is a content event, not a schedule and not a page render. Submit URLs when they are published for the first time, when their content meaningfully changes, and when they are removed. Each of those events corresponds to something the engine would want to know about.
In a custom site, that usually means hooking into your publish function, your content save action that marks an item as live, or the build step that writes a new version of a page. If you use a static site generator, the build can compare the current output against the previous one and collect URLs whose content hash has changed. If you use a database-backed CMS, add submission logic to the code path that changes the published status or the content fields that affect what the page shows.
Do not trigger on draft saves, on preview renders, or on changes to fields that do not affect the public page, such as internal tags or analytics metadata. Do not trigger on every deploy by sending the entire sitemap, because that is effectively a full resubmission and it will look like noise to the engine. For an initial launch or a migration, a one-time bulk submission of your sitemap URLs is reasonable. After that, keep the submissions tied to real changes.
When a page is deleted, submit its URL too, and make sure the page returns a 404 or 410 response. The engine uses this to update its index, and a removed page that still returns a 200 with a soft-404 message will confuse both the engine and your own reporting.
It helps to put the submission in a queue rather than making the HTTP request inside the request that saved the content. A queue lets you batch URLs, retry safely, and keep your publish path fast even if the IndexNow endpoint is slow. The queue does not need to be elaborate. A database table with a URL, a status and a timestamp is enough for most sites.
Logging responses
Logging is where you turn IndexNow from something you hope works into something you can check. For every submission, record the timestamp, the host, the number of URLs in the batch, the endpoint you sent to, the response status code, and a short excerpt of the response body if there is one. Record the URLs themselves too, either in the same row or in a linked table, so you can answer the question of whether a specific page was ever submitted.
Keep the key out of your logs where you can. The key is not as sensitive as a password, but it is a credential that proves control of your domain, and there is no reason to scatter it across log aggregators. Log a truncated or hashed version if you need to correlate submissions.
Review the logs on a regular cadence. A healthy setup shows mostly 200 responses, with occasional 202s after key changes. A setup that shows steady 403s has a key file problem. A setup that shows 422s after a site migration probably has URLs from an old host still being generated somewhere. A setup that shows 429s has a trigger problem. The logs will usually tell you what is wrong faster than any dashboard, provided someone is actually reading them.
It is also worth logging the fetches you receive from search and AI crawlers. Your server access logs show which bots requested each URL, and comparing that against your submission log is one of the more useful checks you can run. If a page was submitted, and a Bing or other crawler fetched it shortly after, you have evidence that the notification was at least noticed. If a page was submitted and no bot fetched it for a long time, that tells you something too, though it does not tell you why.
Avoiding over-submission
Over-submission is the most common self-inflicted problem with IndexNow. It usually starts with good intentions. A developer wants search engines to know about every change, so they submit on every save, every build and every cache invalidation. The result is a flood of requests for URLs that did not meaningfully change, a stream of 429 responses, and a log that is hard to read.
Keep submissions tied to meaningful changes. Compare content hashes or modified timestamps before adding a URL to the queue. Ignore changes to fields that do not affect the public page. Deduplicate URLs within a batch, and within a short window across batches. If the same URL has been submitted recently and has not changed since, skip it.
Also consider the shape of your site. A site with ten thousand pages that all change every night is a different case from a blog that publishes two articles a week. For a large site with frequent legitimate changes, batch aggressively and submit at a sensible pace. For a small site, the volume will be low enough that over-submission is less likely, but the principle is the same: submit what changed, once, and move on.
Be honest with yourself about what the submissions buy you. If your site is already crawled regularly and your sitemap is accurate, the marginal benefit of IndexNow may be small. If your site is new, large, or changes in ways your sitemap does not capture well, the benefit may be larger. In either case, the cost of over-submission is the same: noise, rate limits, and a pipeline you will eventually stop trusting.
Verifying it works
Verification has three layers, and you should use more than one.
The first is your own submission log. Confirm that you are getting 200 or 202 responses for real changes, and that the URLs in those requests match the canonical URLs on your site. This tells you that your code is sending well-formed, validated requests.
The second is the engine's own reporting. Bing Webmaster Tools includes IndexNow-related reporting, and you can use it to see which submissions have been received and to check that your key is recognized. Report availability and labels change over time, so look for the current IndexNow or URL submission sections rather than relying on a specific menu path. Use this to check whether your key validates and whether the engine is treating your submissions as coming from a verified site. Do not expect it to show you a direct, per-URL indexing outcome for every submission. It is evidence of acceptance, not a promise of results.
The third is your server access logs. Look for requests from search engine crawlers to the URLs you submitted, and note the time between submission and first fetch. Over a few weeks, this gives you a rough picture of whether submissions are associated with faster discovery on the engines you care about. The association is not proof of causation, because crawlers visit pages for many reasons. But a consistent pattern of fetches shortly after submission is a useful signal, and a consistent absence of fetches is worth investigating.
Be skeptical of any tool, including your own, that claims a precise effect from IndexNow. The protocol gives engines a hint. What they do with it is their decision, and that decision can change without notice.
Where InstantIndexingPro fits
You can build all of this yourself. The protocol is small, the key file is simple, and a queue with a logging table is not hard to write. Many teams do exactly that, and it works well for a single site with a stable pipeline. The parts that tend to be neglected are the ones that matter over time: monitoring the response codes, catching key file regressions after a deploy, keeping the trigger logic honest as the site evolves, and checking bot fetches against submissions so you know whether anything is happening.
InstantIndexingPro is a SaaS product that handles two of those jobs. It submits URLs through IndexNow, and it logs which bots fetch each URL, so the submission side and the crawl side sit in one place rather than in separate scripts and log files. If you would rather spend your effort on the content and the pipeline triggers than on building and maintaining the plumbing, that is the case for using it. If you enjoy the plumbing, or you have unusual requirements that a hosted tool does not cover, a custom implementation following the steps above is a perfectly reasonable choice.
Whichever route you take, the same principles hold. The submission is a notification, not a guarantee. The key file is the most common point of failure. The logs are the only way to know what is actually happening.
What to do
If you are starting from nothing, work through the steps in order and do not skip the verification at the end.
- Generate a key of 8 to 128 characters, using a cryptographically random source, and store it in your secrets or configuration system.
- Create the key file at the root of your host, named after the key, containing only the key as UTF-8 text. If you must host it elsewhere, plan to include keyLocation in every submission.
- Test the key file from outside your network. Confirm a 200 status, no redirects, and exact contents. Check CDN and WAF rules that might block automated requests.
- Submit one test URL with the GET form, then one batch with the POST form. Confirm you get a 200 or 202 response, and log both.
- Hook submissions into your publish, update and delete events, using a queue, and only for URLs whose public content has changed.
- Deduplicate, batch and rate-limit your submissions. Treat 429 as a signal to fix the trigger, not to retry harder.
- Log every request and response, and review the log on a schedule. Treat repeated 403s and 400s as bugs to fix at once.
- Check Bing Webmaster Tools for key validation and submission acceptance, and compare your server's bot fetches against your submission log over several weeks.
- Decide whether to maintain this yourself or use a tool such as InstantIndexingPro to handle submission and bot-fetch logging, based on how much of the plumbing you want to own.
- Keep your sitemap accurate and your internal links sound regardless of IndexNow. The protocol helps the engines that use it, but it does not replace the basics, and it does nothing for Google.