IWebmasterApi.SubmitUrlBatch(String, List<String>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- siteUrl
- String
Site url E.g.: http://example.com
urls to submit. E.g.: http://example.com/url1,http://example.com/url2
- Attributes
Examples
XML request sample
POST /webmaster/api.svc/pox/SubmitUrlBatch?apikey=sampleapikeyedecc1ea4ae341cc8b6 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=sampleapikeyedecc1ea4ae341cc8b6 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.