Measurements
Create a measurement
Creates a new measurement with parameters set in the request body. The measurement runs asynchronously and you can retrieve its current state at the URL returned in the Location header.
Client guidelines
- If the application is running in interactive mode, set the inProgressUpdates option to true to have the API
return partial results as soon as they are available. This allows the user to see the measurement progress in real time.
- If the application is interactive by default but also implements a "CI" mode for scripting, do not set the flag in the CI mode.
- To perform multiple measurements using exactly the same probes, create a single measurement first, then pass its id in the locations field for the other measurements.
- When you receive a 429 response, inform the user about their current rate limit status based on the response headers. Depending on the exact situation and on what your application supports, you may also suggest:
- Signing in or using an access token.
- Learning more about how to get additional credits at https://globalping.io/credits.
- Repeating the measurement with fewer probes.
post/v1/measurements
Request
- Base URL: https://api.globalping.io
- URL: https://api.globalping.io/v1/measurements
- Auth: one of:
- none
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://auth.globalping.io/oauth/authorize, token URL https://auth.globalping.io/oauth/token, scopes: measurements)
Request body
Response
If the API accepted the request for processing, it returns status 202 Accepted and a body containing the ID of the newly created measurement. You can use the URL from the Location header to retrieve the measurement status.
Changes
No recorded changes to this operation across all 1 revision of this API.