InsightSentry

    Authentication

    Overview

    The Data API is accessible via any HTTP client, with most endpoints supporting both POST and GET requests. When making a POST request, include your rapid API key in 'x-rapidapi-key' field and 'insightsentry.p.rapidapi.com' in 'x-rapidapi-host' in the headers

    POST request

    Include the following fields in the headers

    {
        'x-rapidapi-key': <your RapidApi key>,
        'x-rapidapi-host': 'insightsentry.p.rapidapi.com'
    }

    Examples

    import requests
    
    url = "https://insightsentry.p.rapidapi.com/v1/latest"
    headers = {
    		"x-rapidapi-key": <your key>,
    		"x-rapidapi-host": "insightsentry.p.rapidapi.com"
    }
        // requesting 1 minute bar chart data for NASDAQ:AAPL 
    data = {
        "code": "NASDAQ:AAPL",
        "type": "series", // suported types: quote, series
        "interval_type": "minute",
        "interval_length": 1 
    }
    
    response = requests.post(url, headers=headers, json=data)
    print(response.text)
    
    
    ## or you can also use GET request
    
    response = requests.get("https://insightsentry.p.rapidapi.com/v1/latest?code=NASDAQ:AAPL&type=series&interval_type=minute&interval_length=1", headers=headers)
    print(response.text)