Google BigQuery Bigquery Bigquery Tabledata API

The Bigquery Bigquery Tabledata API from Google BigQuery — 2 operation(s) for bigquery bigquery tabledata.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/insertAll Stream rows into a table · Insert all tabledata #
Ask an LLM
“How do I stream rows into a table without a load job?”
“Can I skip invalid rows when streaming data into a table?”
Tell an agent
Insert rows {rows} into table {table} in dataset {dataset}, project {project}.
Stream {rows} into {table} ({dataset}, {project}) with skip invalid rows {skip}.
GET /bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/data List rows of a table · List tabledata #
Ask an LLM
“How do I read the rows of a table?”
“Can I list only certain fields of a table?”
Tell an agent
List rows of table {table} in dataset {dataset}, project {project}.
List {fields} of {table} ({dataset}, {project}) from row {start} to {max}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-bigquery:google-bigquery-bigquery-tabledata-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-bigquery-bigquery-tabledata-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: BigQuery API Tabledata API
  version: v2
  description: Generated from Google's published Discovery document for BigQuery API (bigquery v2, revision 20261009). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
externalDocs:
  url: https://cloud.google.com/bigquery/
servers:
- url: https://bigquery.googleapis.com
paths:
  /bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/insertAll:
    post:
      operationId: bigquery.tabledata.insertAll
      summary: Insert all tabledata
      description: 'Streams data into BigQuery one record at a time without needing to run a load job. # IAM Permissions Requires
        the following IAM permission(s) to use this method: - `bigquery.tables.updateData` on the table. - `bigquery.tables.get`
        on the table. - `bigquery.datasets.get` on the dataset.'
      parameters:
      - name: projectsId
        in: path
        required: true
        description: Resource name segment (projectsId).
        schema:
          type: string
      - name: datasetsId
        in: path
        required: true
        description: Resource name segment (datasetsId).
        schema:
          type: string
      - name: tablesId
        in: path
        required: true
        description: Resource name segment (tablesId).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TableDataInsertAllRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableDataInsertAllResponse'
        4XX:
          content: &id001
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id001
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/bigquery
        - https://www.googleapis.com/auth/bigquery.insertdata
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Tabledata
  /bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/data:
    get:
      operationId: bigquery.tabledata.list
      summary: List tabledata
      description: 'List the content of a table in rows. # IAM Permissions Requires the `bigquery.tables.getData` permission
        on the table.'
      parameters:
      - name: projectsId
        in: path
        required: true
        description: Resource name segment (projectsId).
        schema:
          type: string
      - name: datasetsId
        in: path
        required: true
        description: Resource name segment (datasetsId).
        schema:
          type: string
      - name: tablesId
        in: path
        required: true
        description: Resource name segment (tablesId).
        schema:
          type: string
      - name: formatOptions.timestampOutputFormat
        in: query
        required: false
        description: Optional. The API output format for a timestamp. This offers more explicit control over the timestamp
          output format as compared to the existing `use_int64_timestamp` option.
        schema:
          enum:
          - TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED
          - FLOAT64
          - INT64
          - ISO8601_STRING
          type: string
      - name: formatOptions.useInt64Timestamp
        in: query
        required: false
        description: Optional. Output timestamp as usec int64. Default is false.
        schema:
          type: boolean
      - name: maxResults
        in: query
        required: false
        description: Row limit of the table.
        schema:
          type: integer
          format: uint32
      - name: pageToken
        in: query
        required: false
        description: To retrieve the next page of table data, set this field to the string provided in the pageToken field
          of the response body from your previous call to tabledata.list.
        schema:
          type: string
      - name: selectedFields
        in: query
        required: false
        description: 'Subset of fields to return, supports select into sub fields. Example: selected_fields = "a,e.d.f";'
        schema:
          type: string
      - name: startIndex
        in: query
        required: false
        description: Start row index of the table.
        schema:
          format: uint64
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableDataList'
        4XX:
          content: &id002
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id002
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/bigquery
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/cloud-platform.read-only
      - apiKey: []
      tags:
      - Tabledata
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
            https://www.googleapis.com/auth/devstorage.read_write: Manage your data in Cloud Storage and see the email address
              of your Google Account
            https://www.googleapis.com/auth/bigquery.insertdata: Insert data into Google BigQuery
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see
              the email address for your Google Account.
            https://www.googleapis.com/auth/devstorage.full_control: Manage your data and permissions in Cloud Storage and
              see the email address for your Google Account
            https://www.googleapis.com/auth/bigquery: View and manage your data in Google BigQuery and see the email address
              for your Google Account
            https://www.googleapis.com/auth/cloud-platform.read-only: View your data across Google Cloud services and see
              the email address of your Google Account
  schemas:
    ErrorProto:
      type: object
      description: Error details.
      properties:
        debugInfo:
          description: Debugging information. This property is internal to Google and should not be used.
          type: string
        location:
          description: Specifies where the error occurred, if present.
          type: string
        reason:
          description: A short error code that summarizes the error.
          type: string
        message:
          type: string
          description: A human-readable description of the error.
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    JsonObject:
      description: Represents a single JSON object.
      type: object
      additionalProperties:
        $ref: '#/components/schemas/JsonValue'
    JsonValue: {}
    TableCell:
      type: object
      properties:
        v: {}
    TableDataInsertAllRequest:
      properties:
        skipInvalidRows:
          description: Optional. Insert all valid rows of a request, even if invalid rows exist. The default value is false,
            which causes the entire request to fail if any invalid rows exist.
          type: boolean
        traceId:
          description: Optional. Unique request trace id. Used for debugging purposes only. It is case-sensitive, limited
            to up to 36 ASCII characters. A UUID is recommended.
          type: string
        ignoreUnknownValues:
          type: boolean
          description: Optional. Accept rows that contain values that do not match the schema. The unknown values are ignored.
            Default is false, which treats unknown values as errors.
        kind:
          default: bigquery#tableDataInsertAllRequest
          type: string
          description: Optional. The resource type of the response. The value is not checked at the backend. Historically,
            it has been set to "bigquery#tableDataInsertAllRequest" but you are not required to set it.
        templateSuffix:
          description: Optional. If specified, treats the destination table as a base template, and inserts the rows into
            an instance table named "{destination}{templateSuffix}". BigQuery will manage creation of the instance table,
            using the schema of the base template table. See https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables
            for considerations when working with templates tables.
          type: string
        rows:
          items:
            description: Data for a single insertion row.
            type: object
            properties:
              json:
                $ref: '#/components/schemas/JsonObject'
                description: Data for a single row.
              insertId:
                description: Insertion ID for best-effort deduplication. This feature is not recommended, and users seeking
                  stronger insertion semantics are encouraged to use other mechanisms such as the BigQuery Write API.
                type: string
          type: array
      type: object
      description: Request for sending a single streaming insert.
    TableDataInsertAllResponse:
      type: object
      properties:
        insertErrors:
          items:
            properties:
              index:
                type: integer
                description: The index of the row that error applies to.
                format: uint32
              errors:
                items:
                  $ref: '#/components/schemas/ErrorProto'
                type: array
                description: Error information for the row indicated by the index property.
            description: Error details about a single row's insertion.
            type: object
          description: Describes specific errors encountered while processing the request.
          type: array
        kind:
          type: string
          default: bigquery#tableDataInsertAllResponse
          description: Returns "bigquery#tableDataInsertAllResponse".
      description: Describes the format of a streaming insert response.
    TableDataList:
      type: object
      properties:
        etag:
          type: string
          description: A hash of this page of results.
        rows:
          items:
            $ref: '#/components/schemas/TableRow'
          type: array
          description: Rows of results.
        pageToken:
          description: A token used for paging results. Providing this token instead of the startIndex parameter can help
            you retrieve stable results when an underlying table is changing.
          type: string
        totalRows:
          type: string
          format: int64
          description: Total rows of the entire table. In order to show default value 0 we have to present it as string.
        kind:
          description: The resource type of the response.
          default: bigquery#tableDataList
          type: string
    TableRow:
      properties:
        f:
          description: Represents a single row in the result set, consisting of one or more fields.
          type: array
          items:
            $ref: '#/components/schemas/TableCell'
      type: object
x-provenance:
  method: harvested
  publisher: Google
  source: https://bigquery.googleapis.com/$discovery/rest?version=v2
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261009)