Skip to main content

The response envelope

Every successful scraping response from the REST API shares the same shape. Your result is always in data; the two metadata fields tell you what the call cost and how long it took.
object | array
The scraped result. Its shape depends on the endpoint — see the API Reference for each one. Some endpoints return a single object, others return an array.
number
Credits that this request consumed. See Credits for how the amount is worked out.
number
Wall-clock time the request took, in milliseconds.

Agent output

MCP tools and the dashboard assistant receive a compact view of the REST API response. Fields may be omitted or reshaped, and text or lists may be shortened. Results contain optional notes followed by JSON on the final line. nextCursor and nextStart advance past the full API page, including omitted items. To recover those items, retry the same page with fewer results if the endpoint supports it. For the full response, use the REST API, SDK, CLI JSON output, or the dashboard assistant’s data viewer. See the API Reference for response schemas.

Credits

Bridgly is pay-as-you-go. In general, one call costs one credit. Some endpoints cost more, depending on the data they return. Each endpoint’s page in the API Reference states its price, and creditsCost on every response reports the exact amount charged. Error responses are never charged, including not-found (404), validation and server errors. A request that succeeds with an empty result is charged as a normal call. Where an endpoint is priced per result, you are charged for the results returned. If your balance cannot cover every result you asked for, the request still runs and asks for as many results as your balance covers, as long as it covers at least one. For example, with 8 credits left, asking a 1-credit-per-result endpoint for 20 results asks for 8. Some platforms occasionally return a few more results than were asked for. You get all of them and are charged for each one, which can take your balance below zero. Requests are then declined with 402 until you top up. Credits never expire, and you can enable auto top-up from the Billing page to replenish your balance when it reaches your configured threshold.

Errors

When something goes wrong, the response uses a uniform error body instead of the envelope:
The HTTP status code tells you the category:
Always branch on the HTTP status code rather than parsing the message string — messages are meant for humans and may change.