AlgoSeek

Filter & Sort API Responses: Data Output Example

To make your data processing more efficient, you can use query parameters to select specific columns, sort the results, handle pagination, and download the data directly as a CSV file.

To make your data processing more efficient, you can use query parameters to select specific columns, sort the results, handle pagination, and download the data directly as a CSV file.

Parameters used: columns, sort, limit, and response_format.

What it does: Modifies the API request to return a targeted, sorted subset of data and saves it locally. We use the -o flag in curl to output the response directly to a file.

Request example (Saving a customized CSV file):

curl --get \
https://api.devalgoseek.com/api/v1/data/us-equity/eq-taq/2023-03-01/AAPL \
--data 'columns=EventDateTime,EventType,Price,Quantity' \
--data 'sort=-EventDateTime' \
--data 'limit=500' \
--data 'response_format=csv' \
-H "X-API-KEY: YOUR_API_KEY" \
-o "aapl_custom_taq.csv"