The Bulk Data Graph API's request submits a query to the Data Graph API for each entry specified in the input file.
Request body
| Ancestors | Parameter | Type | Required | Description |
|---|---|---|---|---|
| operation | String | Required | The Data Graph API method to use on the batch of queries. Possible values:
|
|
| payload | JSON | Required | Contains JSON parameters according to the operation specified. Refer to the tables below. |
getByAddress
Input file format
InputId,Address,Country
inputId1,address1,country1
inputId2,address2,country2
inputId3,address3,country3
.... where:
- The header row is case sensitive and required.
InputIdandIdare required.Countryis optional and does not affect whether or not country values are processed. The header row's possible values are:InputId,Id- or
InputId,Id,Country
- inputId: A unique string of alphanumeric characters.
- address: The address to search on.
- country: (Optional) The country the address is in.
- Comma is used as the delimiter between address and country values.
| Ancestors | Parameter | Type | Required | Description |
|---|---|---|---|---|
| payload | fileId | String | Required | The ID of the file that contains the parameters necessary for the indicated
query type. The ID is generated when the file was uploaded with the Generate
Upload URL endpoint. |
| payload | delimiter | String | Optional | The delimiter used in the input file to separate values. The only allowed value is a comma. |
| payload | datasets | Array of strings | Required | An array of datasets and the names of the fields requested to be returned from
the datasets, in the format:
For example:
|
getById
Input file format
InputId,Id,Country
inputId1,id1,country1,
inputId2,id2,country2
....where:
- The header row is case sensitive and required.
InputIdandIdare required.Countryis optional and does not affect whether or not country values are processed. The header row's possible values are:InputId,Id- or
InputId,Id,Country
- inputId: A unique string of alphanumeric characters.
- id: The id to search on.
- country: (Optional) The country the address you are searching is in.
- Comma is used as a delimiter between
idandcountry.
| Ancestors | Parameter | Type | Required | Description |
|---|---|---|---|---|
| payload | fileId | String | Required | The ID of the file that contains the parameters necessary for the indicated
query type. The ID is generated when the file was uploaded with the Generate
Upload URL endpoint. |
| payload | delimiter | String | Optional | The delimiter used in the input file to separate values. The only delimiter allowed is comma. |
| payload | queryType | QueryType | Required | The type of ID you provided:
|
| payload | datasets | Array of strings | Required | An array of datasets and the names of the fields requested to be returned from
the datasets, in the format:
|
Examples
{
"operation": "DATA_GRAPH_GET_BY_ADDRESS",
"payload":{
"fileId": "ebb7aa05-ce62-4b98-b45d-0b9edff4cadf",
"delimiter": ",",
"datasets": {
"addresses": ["longitude", "latitude", "buildingType", "geometry"]
"parcels": ["parcelID", "fips", "parcelArea"],
"buildings": ["buildingID","longitude", "latitude"],
"WildFireRisk": ["preciselyID"]
}
}
}{
"operation": "DATA_GRAPH_GET_BY_ID",
"payload":{
"fileId": "ebb7aa05-ce62-4b98-b45d-0b9edff4cadf",
"delimiter": ",",
"queryType": "PRECISELY_ID",
"datasets": {
"parcels": ["parcelID", "fips", "parcelArea"],
"buildings": ["buildingID","longitude", "latitude"],
"addresses": ["preciselyID", "addressNumber"],
"WildFireRisk": ["preciselyID"]
}
}
}