IWebmasterApi.SubmitUrl

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.SubmitUrl Method

Submit url

Syntax

void SubmitUrl(
string siteUrl,
string url
)

Parameters

siteUrl
Type: System.String
Site url

url
Type: System.String
Url to submit

Remarks

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

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
Content-Length: 127

<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
Content-Length: 74


{
"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
}

See Also

Show: