Bing URL Submission API using Laravel / PHP

  • You will need an API key for Webmasters so go to Settings -> API access -> API Key — copy this and keep it handy
  • Grab the endpoint for the Submission API from here — At this point of writing, it’s set to accept a POST request for the following endpoint with the data object
POST /webmaster/api.svc/json/SubmitUrlbatch?​apikey=sampleapikeyEDECC1EA4AE341CC8B6 HTTP/1.1​
Content-Type: application/json; charset=utf-8​
  • With Laravel, if you’re using the HTTP client — it’s as simple as this
$http = \Http::post("" . $apiKey, 
"siteUrl" => $siteUrl,
"urlList" => $urlList
echo $http->status(); //to make sure it's all ok
echo $http->body(); //to check the body of response
  • With Guzzle, it’s pretty similar too
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', '" . $apiKey', [
'form_params' => [
"siteUrl" => $siteUrl,
"urlList" => $urlList
"{"ErrorCode":14,"Message":"ERROR!!! NotAuthorized"}"




Backend developer from Berlin, building

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top 10 Podcasts for iOS developers

Creating a Value Stream Map

Creating a Value Stream Map — abstract illustration

AWS IAM Policies and Policy Structure

ReClipped - Basic Plan only @$1.99 per Month

Static and Dynamic Libraries. What is it and how they are made?

Espressif ESP32 Tutorial — Programming (Eclipse)

Git Cheat Sheet for Data Scientists

Industry Use Case Of OpenShift

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Backend developer from Berlin, building

More from Medium

Best Light Themes for PhpStorm

PHP and Node.js are used For an ERP system

Creating a car rental admin using Laravel 9 part 1: Setup database, model, migration, seeder.

Laravel Docker Vs Sail