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'
}
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
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)