Submits up to 500 URLs of a site to Bing for crawling and indexing in one call (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_batch" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/","urls":["https://www.example.com/url1","https://www.example.com/url2"]}'{
"output": {
"found": true,
"data": {
"submitted": 2,
"urls": [
"https://www.example.com/url1", …
],
"siteUrl": "https://www.example.com/"
}
},
"credits": 1
}Input and output
3 fields
https://www.example.com/.["https://www.example.com/url1","https:….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 URLs to Bing as the connected Bing Webmaster Tools account. Uses that many URLs of its daily and monthly quota.
Needs the Manage Bing Webmaster Tools capability.
At most 500 URLs, all 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.