> ## Documentation Index
> Fetch the complete documentation index at: https://brightdata-ipv6-release.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Synchronous Requests

> This endpoint allows users to fetch data efficiently and ensures seamless integration with their applications or workflows.

## How It Works

This synchronous API endpoint allows users to send a scraping request and receive the results directly in the response, at the point of request—such as a terminal or application—without the need for external storage or manual downloads. This approach streamlines the data collection process by eliminating additional steps for retrieving results.

You can specify the desired output format using the format parameter. If no format is provided, the response will default to JSON.

## Timeout Limit

Please note that this synchronous request is subject to a timeout limit. If the data retrieval process exceeds this limit, the API will return an HTTP 202 response, indicating that the request is still being processed. In such cases, you will receive a snapshot ID to monitor and retrieve the results asynchronously via the Monitor Snapshot and Download Snapshot endpoints.

Example response on timeout:

```JSON 202 theme={null}
{
  "snapshot_id": "s_xxx",
  "message": "Your request is still in progress and cannot be retrieved in this call. Use the provided Snapshot ID to track progress via the Monitor Snapshot endpoint and download it once ready via the Download Snapshot endpoint."
}
```


## OpenAPI

````yaml dca-api POST /datasets/v3/scrape
openapi: 3.1.0
info:
  title: Brightdata API
  description: API for interaction with datasets marketplace
  version: 1.0.0
servers:
  - url: https://api.brightdata.com
security:
  - bearerAuth: []
paths:
  /datasets/v3/scrape:
    post:
      summary: Scrape data and return it directly in the response.
      description: >-
        This endpoint allows users to fetch data efficiently and ensures
        seamless integration with their applications or workflows.
      parameters:
        - name: dataset_id
          in: query
          description: Dataset ID for which data collection is triggered.
          required: true
          schema:
            type: string
        - name: include_errors
          in: query
          schema:
            type: boolean
          description: Include errors report with the results.
        - name: format
          in: query
          description: 'Specifies the format of the response (default: JSON).'
          schema:
            type: string
            enum:
              - json
              - csv
            default: json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  url:
                    type: string
                    description: URL to scrape.
                required:
                  - url
            example:
              - url: www.linkedin.com/in/bulentakar
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
                example: OK
        '202':
          description: Request is still in progress, snapshot will be available later.
          headers:
            retry-after:
              description: Time in seconds before retrying the request.
              schema:
                type: integer
                example: 10
          content:
            application/json:
              schema:
                type: object
                properties:
                  snapshot_id:
                    type: string
                  message:
                    type: string
              example:
                snapshot_id: s_xxx
                message: >-
                  Your request is still in progress and cannot be retrieved in
                  this call. Use the provided Snapshot ID to track progress via
                  the Monitor Snapshot endpoint and download it once ready via
                  the Download Snapshot endpoint.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````