Complete Guide to API for LLM Integration: Connecting Large Language Models to Real-World Data