Skip to content

How to read csv response with a Custom Connector using low-code CDK #28297

Discussion options

You must be logged in to vote

Airbyte's low-code framework is primarily designed to handle JSON responses from REST APIs. However, if the API response is a CSV file, you can still handle it by writing a custom component to override the extractor.
In the YAML configuration for your custom connector, you would need to replace the DpathExtractor, which is designed to extract JSON records, with your custom CSV extractor. Here's an example of what that might look like:

yaml
record_selector:
  type: RecordSelector
  extractor:
    type: YourCustomCSVExtractor
    field_path: []

Your custom CSV extractor should convert the CSV into a list of records (dictionaries in Python). You can refer to the DpathExtractor's implementation

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcosmarxm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/low-code area/low-code/components Related to low-code custom components
2 participants