API
One request, one result per URL
POST /links/bulk takes a urls array of up to 100 URLs and answers with one result per URL, in order. Valid URLs come back as links, and the others come back as error objects without failing the batch.
- Endpoint: POST https://api.blinkhop.com/v1/links/bulk
- Body: a urls array of up to 100 URLs
- Each result: a link or an error object
- Same safety checks as single links
terminal
curl -s https://api.blinkhop.com/v1/links/bulk \
-H "Content-Type: application/json" \
-d '{"urls": [
"https://example.com/menu",
"https://example.com/launch",
"not a url"
]}' \
| jq -r '.links[] | .short_url // .error.code' 200 OK output
https://zou.sh/T4kq9
https://zou.sh/m8Rzw
invalid_url