Submits one URL of a site to Bing for crawling and indexing (a change made with the connected Bing Webmaster Tools account; uses its URL quota).
curl -X POST "https://api.primaryapi.com/v1/run/bing-webmaster.submit_url" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/","url":"https://www.example.com/url1.html"}'{
"output": {
"found": true,
"data": {
"submitted": true,
"siteUrl": "https://www.example.com/",
"url": "https://www.example.com/url1.html"
}
},
"credits": 1
}Input and output
3 fields
https://www.example.com/.https://www.example.com/url1.html.3 fields
Good to know
Changes your account. This call creates, edits or deletes something in the connected account, live. Confirm before running it. With an Idempotency-Key it never runs twice, and monitors can’t schedule it.
WRITE: submits the URL to Bing as the connected Bing Webmaster Tools account. Uses one URL of its daily and monthly quota.
Needs the Manage Bing Webmaster Tools capability.
The URL must be on the site.
A site the account has not verified is a miss with reason no_access. Nothing is submitted.
Unknown site URL? It comes back as not found, not as an error.
The same key and credits work for every API.