IWebmasterApi.SubmitUrl(String, String) Method

Definition

Submit url

public:
 void SubmitUrl(System::String ^ siteUrl, System::String ^ url);
[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 SubmitUrl (string siteUrl, string url);
abstract member SubmitUrl : string * string -> unit
Public Sub SubmitUrl (siteUrl As String, url As String)

Parameters

siteUrl
String
url
String
Attributes

Examples

XML request sample

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

<SubmitUrl xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api">
<siteUrl>http://example.com</siteUrl>
<url>http://example.com/url1.html</url>
</SubmitUrl>

XML response sample

HTTP/1.1 200 OK
Content-Length: 0

JSON request sample

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


{
"siteUrl":"http://example.com",
"url":"http://example.com/url1.html"
}

JSON response sample

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


{
"d":null
}

Remarks

It is possible to submit only limited number of url. GetUrlSubmissionQuota(String) should be called to determine how much urls can be submitted.

Applies to