InsightSentry

    Searching Symbol code

    Overview

    '/search' endpoint provides the search functionality for symbols. The result is the same as This page's search functionality.

    Key Features:

    • Supports both GET and POST requests
    • Allows optional filtering based on type
    • Free but rate limit applies

    GET request

    https://insightsentry.p.rapidapi.com/v1/search?query=AAPL&type=stocks

    POST request

    {
      "query": "AAPL",
      "type": "stocks"  // optional. Allowed values: 'crypto', 'index', 'forex', 'futures', 'funds', 'stocks'
    }

    Request Parameter

    {
      "query": "AAPL",
      "type": "stocks"  // optional. Allowed values: 'crypto', 'index', 'forex', 'futures', 'funds', 'stocks'
    }
    query
    Search query for a symbol's code or description
    type
    Optional. Filtering based on a given type. Allowed values: 'crypto', 'index', 'forex', 'futures', 'funds', 'stocks'

    Response Data

    [
      {
        "name": "AAPL",
        "code": "NASDAQ:AAPL",
        "type": "stock",
        "exchange": "NASDAQ",
        "currency_code": "USD",
        "country": "US",
        "description": "Apple Inc."
      },
      {
        "name": "AAPL",
        "code": "BMV:AAPL",
        "type": "stock",
        "exchange": "BMV",
        "currency_code": "MXN",
        "country": "MX",
        "description": "APPLE INC"
      },
      {
        "name": "AAPL",
        "code": "BCBA:AAPL",
        "type": "dr",
        "exchange": "BYMA",
        "currency_code": "ARS",
        "country": "AR",
        "description": "APPLE INC CEDEAR(REPR 1/20 SHR) (ARS)"
      }
      // omitted for brevity  
    ]

    Response Fields

    name
    Symbol name (String)
    code
    Symbol code (String), which is used for other endpoints
    type
    Symbol type (String)
    exchange
    Exchange code (String)
    currency_code
    Currency code (String)
    country
    Country code (String)
    description
    Symbol description (String)

    Code Examples

    import requests
    
    url = "https://insightsentry.p.rapidapi.com/v1/search"
    headers = {
        'x-rapidapi-key': <your api key>,
        'x-rapidapi-host': "insightsentry.p.rapidapi.com"
    }
    data = {
        "query": "AAPL",
        "type": "stocks"
    }
    
    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/search?query=AAPL&type=stocks", headers=headers)
    print(response.text)