How to read csv
response with a Custom Connector using low-code CDK
#28297
-
Hello, Basically I just need the same file-connector but with an API-Key mechanism Can you give me some hints on how to do this? Much appreciated.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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.
Your custom CSV extractor should convert the CSV into a list of records (dictionaries in Python). You can refer to the DpathExtractor's implementation for an idea of how to structure your custom extractor. |
Beta Was this translation helpful? Give feedback.
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:
Your custom CSV extractor should convert the CSV into a list of records (dictionaries in Python). You can refer to the DpathExtractor's implementation