All URIs are relative to https://api.factset.com
| Method | HTTP request | Description |
|---|---|---|
| get_by_url | GET {url}} | This method fetches data from any Get endpoint. |
object get_by_url(url)
Get by url
This method fetches data from any GET endpoint.
- Basic Authentication (Basic):
from __future__ import print_function
import time
import fds.analyticsapi.engines
from fds.analyticsapi.engines.rest import ApiException
from pprint import pprint
configuration = fds.analyticsapi.engines.Configuration()
# Configure HTTP basic authorization: Basic
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Defining host is optional and default to https://api.factset.com
configuration.host = "https://api.factset.com"
# Create an instance of the API class
api_instance = fds.analyticsapi.engines.UtilityApi(fds.analyticsapi.engines.ApiClient(configuration))
url = 'url_example' # str | Url of the GET endpoint
try:
# Get by url
api_response = api_instance.get_by_url(url)
pprint(api_response)
except ApiException as e:
print("Exception when calling UtilityApi->get_by_url: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| url | object | Url of the GET endpoint |
object
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Expected response once the request is successful. | * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. * X-DataDirect-Request-Key - FactSet's request key header. |
| 400 | Invalid identifier provided. | * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. * X-DataDirect-Request-Key - FactSet's request key header. |
| 401 | Missing or invalid authentication. | * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. * X-DataDirect-Request-Key - FactSet's request key header. |
| 403 | User is forbidden with current credentials | * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. * X-DataDirect-Request-Key - FactSet's request key header. |
| 406 | Unsupported Accept header. Header needs to be set to application/json. | * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. * X-DataDirect-Request-Key - FactSet's request key header. |
| 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. * X-DataDirect-Request-Key - FactSet's request key header. |
| 503 | Request timed out. Retry the request in sometime. | * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. * X-DataDirect-Request-Key - FactSet's request key header. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]