원클릭으로
fetchapi
Fetches data from APIs and handles responses. Use when interacting with external APIs or retrieving data from web services.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fetches data from APIs and handles responses. Use when interacting with external APIs or retrieving data from web services.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Reads CSV files from the latest fetchapi data folder and copies them into a new timestamped folder inside the migrate skill folder. Use after the fetchapi skill has been run.
Reads CSV data from the latest migrate folder and creates a simple bar chart. Use after the migrate skill has been run.
| name | fetchapi |
| description | Fetches data from APIs and handles responses. Use when interacting with external APIs or retrieving data from web services. |
Before you start, make sure to pick the python environment in which you want to run the code. You can run/install dependencies using my '.venv' environment which is located at "C:\bugandfixclaudecodecourse.venv"
You need to make python API calls to fetch data from the following URLs using async httpx: ["https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_customer.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_store.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_date.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_product.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/fact_sales.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/fact_returns.csv"]
After fetching the data, you need to create a directory having name with current date and time in the format "YYYY-MM-DD_HH-MM-SS" and save the fetched data as CSV files in that directory. The location of the directory should be ".claude/skills/fetchAPI/data/".
You need to create a log directory at ".claude/skills/fetchAPI/logs/" with name current date and time in the format "YYYY-MM-DD_HH-MM-SS" and save a log file in that directory with the name "fetchAPI.log". The log file should contain information about the API calls made, including what APIs called, what were successful and what were not, and any errors encountered during the process.