IWebmasterApi.SubmitUrlBatch(String, List<String>) IWebmasterApi.SubmitUrlBatch(String, List<String>) IWebmasterApi.SubmitUrlBatch(String, List<String>) IWebmasterApi.SubmitUrlBatch(String, List<String>) Method

Definition

Submit url Batch

public:
 void SubmitUrlBatch(System::String ^ siteUrl, std::list<System::String< ^ urlList);
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebInvoke(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest, Method="POST")]
public void SubmitUrlBatch (string siteUrl, List<string> urlList);
abstract member SubmitUrlBatch : string * list -> string
Public Sub SubmitUrlBatch (siteUrl As String, urlList As List(Of String))

Parameters

urlList
List<String>

Examples

XML request sample

POST /webmaster/api.svc/pox/SubmitUrlBatch?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com


<SubmitUrlBatch xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api">
	<siteUrl>http://example.com</siteUrl>
<urlList>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">http://example.com/url1</string>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">http://example.com/url2</string>
</urlList>
</SubmitUrlBatch>

XML response sample

HTTP/1.1 200 OK
Content-Length: 0

JSON request sample

POST /webmaster/api.svc/json/SubmitUrlbatch?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com

{
"siteUrl":"http://example.com",
"urlList":[
"http://example.com/url1","http://example.com/url2"
]
} 

JSON response sample

HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8


{
"d":null
}

Remarks

The max number of urls that can be submitted in a batch is 500 unless it exceeds the available quota. GetUrlSubmissionQuota(String) should be called to determine how much urls can be submitted.

Applies to