mike Trienis
07/17/2025, 5:52 PMkapa.ai
07/17/2025, 5:53 PMmike Trienis
07/17/2025, 6:48 PMmykey
"mykey": {
"myName": "<blah>"
},
in a response from an api?kapa.ai
07/17/2025, 6:48 PMkapa.ai
07/17/2025, 6:49 PMjson { "mykey": { "myName": "<blah>" } } You would reference the nested field as: yaml primary_key: - ["mykey", "myName"] This tells Airbyte to use the value at mykey.myName as part of the composite primary key for the record [PrimaryKey - YAML Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/PrimaryKey). This approach is supported in the low-code YAML connector definitions and allows you to uniquely identify records using nested fields.mike Trienis
07/17/2025, 6:50 PMmykey down to the top level record?kapa.ai
07/17/2025, 6:50 PMkapa.ai
07/17/2025, 6:50 PMmykey up to the top level of the record in Airbyte, you can use the DpathFlattenFields transformation. This transformation flattens the specified nested field to the top level of the record. Here’s how you can define it in your stream’s YAML configuration: yaml transformations: - type: DpathFlattenFields field_path: ["mykey"] delete_origin_value: true # Optional: removes the original nested field - field_path: ["mykey"] specifies the path to the nested field you want to flatten. - delete_origin_value: true (optional) will remove the original mykey object after flattening, so only its contents remain at the top level. This will move all fields inside mykey (e.g., myName) to the top level of the record [Flatten nested fields](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/DpathFlattenFields). If you want to keep the original mykey as well, you can omit the delete_origin_value property or set it to false.mike Trienis
07/17/2025, 6:51 PMkapa.ai
07/17/2025, 6:51 PMkapa.ai
07/17/2025, 6:51 PMAddFields transformation in your stream definition. Specify the path for the new field at the top level, and set its value using interpolation to reference the nested field. For example, if your record looks like this: json { "mykey": { "myName": "<blah>" } } And you want to add a new top-level field called myName_flat with the value from mykey.myName, your transformation would look like: yaml transformations: - type: AddFields fields: - path: ["myName_flat"] value: "{{ record['mykey']['myName'] }}" This will result in records like: json { "mykey": { "myName": "<blah>" }, "myName_flat": "<blah>" } This approach is documented in the Airbyte YAML reference for adding fields using the AddFields transformation and referencing nested fields with interpolation [Adding fields](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/record-processing#adding-fields) [Record selector transformations](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/record-selector#transformations).mike Trienis
07/17/2025, 8:47 PM{{ next_page_token['next_page_token'] or '0' }}
What’s the correct variable / template variable to use here?kapa.ai
07/17/2025, 8:47 PMkapa.ai
07/17/2025, 8:47 PM{{ next_page_token['next_page_token'] }}. According to the documentation, the pagination strategies like OffsetIncrement return the number of records read so far as the next page token, and you should use the value directly. For custom parameter injection, the recommended approach is to use the next_page_token variable, which is an object with a single key "next_page_token". So, to inject the offset, you would use: jinja {{ next_page_token['next_page_token'] or '0' }} This is the documented way to access the offset value generated by the OffsetIncrement strategy, especially when you need to combine it with other values or inject it into a custom parameter (e.g., for APIs that require limit=<offset>,<limit>). This approach is shown in the documentation for custom parameter injection [Custom parameter injection](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/pagination#custom-parameter-injection). Summary: - For OffsetIncrement, use {{ next_page_token['next_page_token'] or '0' }} to access the offset value for pagination in custom parameter injection. - This is the correct and documented template variable for this use case. If you are using the standard pagination form (not custom injection), Airbyte handles this for you. Use the above template only when you need to manually configure the parameter.mike Trienis
07/17/2025, 8:48 PMkapa.ai
07/17/2025, 8:48 PMkapa.ai
07/17/2025, 8:49 PMlimit or page_size), not by 1. The offset value should represent the starting index for the next page of results, and it should increase by the page size after each request. Airbyte's Offset Increment strategy is designed to handle this automatically: > your connector will automatically increment the offset for subsequent requests based on the number of records it receives, and will continue until it receives fewer records than the limit you configured [Offset Increment Pagination](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/pagination#offset-increment). For example, if your page size (limit) is 2, the requests should look like: GET ...?limit=2&offset=0 GET ...?limit=2&offset=2 GET ...?limit=2&offset=4 and so on. If you observe that the offset is incrementing by only 1, this suggests that the variable or logic being used is not correctly tracking the number of records read so far. The correct variable to use for custom parameter injection is {{ next_page_token['next_page_token'] or '0' }}, which, according to the documentation, should represent the total number of records read so far (i.e., the correct offset) [Custom parameter injection](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/pagination#custom-parameter-injection). If the offset is still incrementing by 1, there may be a misconfiguration or a bug. Double-check your pagination configuration and ensure you are using the Offset Increment strategy as described in the documentation. If the issue persists, it may be necessary to review the connector's implementation or consult Airbyte support. In summary: - The offset should increment by the page size, not by 1. - The correct variable is {{ next_page_token['next_page_token'] or '0' }}. - If it increments by 1, this is not the expected behavior according to Airbyte's documentation [Offset Increment Pagination](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/pagination#offset-increment).mike Trienis
07/17/2025, 9:32 PMkapa.ai
07/17/2025, 9:32 PMkapa.ai
07/17/2025, 9:33 PMjson { "_blah": { "next": "http://example.com/next-page" // ... other fields } // ... other top-level fields } And you want to use the value of "_blah.next" as the next page cursor in Airbyte, you would configure the cursor extraction in your connector as follows: YAML Example for Cursor Pagination: yaml paginator: type: "DefaultPaginator" pagination_strategy: type: "CursorPagination" cursor_value: "{{ response['_blah']['next'] }}" page_token_option: type: "RequestPath" This configuration tells Airbyte to extract the next field from the nested _blah object in the response and use it as the cursor for the next page. The RequestPath option means the next request will use the URL provided in that field as the path for the next page request [Cursor paginator in path](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/pagination#cursor). If you need to inject the cursor as a parameter or in another way, you can adjust the page_token_option accordingly. Summary: Use {{ response['_blah']['next'] }} to reference a nested field as the next page cursor in Airbyte when configuring cursor pagination for a nested JSON response.mike Trienis
07/18/2025, 1:56 AMkapa.ai
07/18/2025, 1:56 AMkapa.ai
07/18/2025, 1:56 AMtrue will be emitted by the connector and pushed to the destination table; others will be excluded [Record Filter](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/record-processing#record-filter). For example, to exclude records where status is `"expired"`: yaml record_filter: condition: "{{ record.status != 'expired' }}" This ensures only relevant records are synced to your destination.mike Trienis
07/18/2025, 2:11 AMkapa.ai
07/18/2025, 2:11 AMkapa.ai
07/18/2025, 2:11 AMand and or. For example: yaml record_filter: condition: "{{ record.status != 'expired' and record.type == 'active' }}" This approach allows you to apply multiple filtering criteria within a single filter expression [Record Filter](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/record-processing#record-filter). If you need to apply more complex filtering logic, you can combine conditions as needed within the single condition field. There is no documentation indicating support for specifying multiple separate filter blocks.