The Ping_Bing Node Module Makes Using the Bing URL Submission Easy for Nodejs Applications

Ping_Bing nodejs module
Ping_Bing nodejs module

Submitting web pages to search engines is frustrating.

Like most, I want my new content indexed and ranked as fast as I publish.

But search engine crawling involves Google and Bing finding your content updates. And this can take weeks!

I want traffic now!

In early 2019 the Microsoft Bing team announced a submission API.

They call it a passive submission tool that allows you to bypass the crawling process. It is a way for your immediately tell Bing you have new content and trigger an immediate crawl.

It is an API, which means you do not need to submit pages by hand.

Beyond improved content discovery I found articles ranked within seconds!

That is very valuable because now you can tell Bing about new and updated content or what I call

Bulk submission makes it much easier for some sites who do many updates at once. Now you don't have to worry about calling it thousands and thousands of times.

There is a limit a daily limit of 10,000 URLs per site. For almost every website out there this daily limit is way more than needed.

And if you're wondering, yes, there are many sites who meet and surpass that threshold. They do have a way for those sites to connect it to them to get their quota raised as needed.

If your web platform utilizes nodejs to publish, then my Ping Bing module swill help. Please feel free to reach out and let me know if you have any issues with the module.

Ping Bing.

This puts you in control of when you want the search engine to come crawl, evaluate and index content.

Since the API announcement I added the API to my normal rendering work-flow. My sites are all static websites, rendered using a series of AWS Lambdas using Node.

Microsoft does have a C# SDK they support, which makes sense because it is a Microsoft technology.

But I use Node in a serverless, cloud environment.

There was not a Node module to use the Bing submission API. To fill the void I ported my code to a public Node module. I call it the Ping Bing module.

You can look it up on npmjs or add it to your package.json file, "ping_bing". You can also install it using the npm CLI install command.

npm install --save ping_bing

The module itself is fairly simple to use. There's really just one method exposed, pingBing.

 const pingBing = require( "ping_bing" ), apiKey = "[Your API Key Here]", siteUrl = "[Your Bing Verified Site URL (domain)]"; const singleURL = { apiKey: apiKey, siteUrl: siteUrl, url: "[url to submit]"}; pingBing.pingBing( singleURL ) .then( body => { console.log( "success: ", body ); } ) .catch( err => { console.log( "error: ", err ); } );

You can pass either a single URL or an array of URLs. The API was recently updated to allow bulk submissions, which the module automatically resolves.

const batchURLs = { apiKey: apiKey, siteUrl: siteUrl, urlList: [ "[url to submit]", "[url to submit]", "[url to submit]" ]}; pingBing.pingBing( batchURLs ) .then( body => { console.log( "success: ", body ); } ) .catch( err => { console.log( "error: ", err ); } );

Bulk submission makes it much easier for some sites who do many updates at one shot. Now you don't have to worry about calling it thousands and thousands of times.

There is a limit a daily limit of 10,000 URLs per site. For almost every website out there this daily limit is way more than needed.

And if you're wondering, yes, there are many sites who create lots of continent day and will meet and surpass that threshold. They do have a way for those sites to connect it to them to get their quota raised as needed.

If your web platform utilizes nodejs to publish and update content then my Ping Bing module should make your life a little easier. Please feel free to reach out and let me know if you have any issues with the module.

You can see the Ping Bing Node Module's details on NPM

Share This Article With Your Friends!

We use cookies to give you the best experience possible. By continuing, we'll assume you're cool with our cookie policy.

Install Love2Dev for quick, easy access from your homescreen or start menu.

Googles Ads Facebook Pixel Bing Pixel LinkedIn Pixel