No project description provided
Project description
techieray_ai_reg_tracker-api
Python client library for connecting to API of techie_ray's Global AI Regulation Tracker (www.techieray.com/GlobalAIRegulationTracker)
API key
Free trial API key (valid til 14 April 2025): "techieray_free_key_until_140425"
Otherwise, register for early access at https://forms.gle/SCSJ8hJo3dBXjv6U6 or contact techierayproducts@gmail.com for queries.
You will not be able to use this API if you do not have a valid API key.
Example Usage:
from techieray_ai_reg_tracker_api import GlobalAIRegulationTrackerClient
api_key = "###INSERT API KEY###"
client = GlobalAIRegulationTrackerClient(api_key)
try:
response = client.call(
market = "US",
target_news = "latest_news",
target_date = "2024-10-06"
)
print("Response:", response)
except requests.exceptions.RequestException as e:
print(f"Error: {e}")
except ValueError as e:
print(f"Value Error: {e}")
Types of searches:
The API currently supports 4 types of searches:
Search updates for a specific date across all markets
client.call(
market = "global",
target_news = "",
target_date = "2023-10-25"
)
This searches for news updates dated 25 October 2023 across the world. Note that the target_news argument is intentionally left as "".
Search updates for a specific date in a specific market
client.call(
market = "US",
target_news = "",
target_date = "2023-10-25"
)
This searches for news updates dated 25 October 2023 in the United States of America ('US'). The search will go through all latest_news, sector_news and bilateral_multilateral_news (unless target_news argument is specified)
Search specific class of updates in a specific market
client.call(
market = "US",
target_news = "latest_news",
target_date = ""
)
This searches for latest_news (across all dates) in the United States of America ('US'). Note that the target_date argument is intentionally left as "".
Search specific class of updates on specific date in a specific market
client.call(
market = "US",
target_news = "latest_news",
target_date = "2023-10-25"
)
This searches for latest_news dated 25 October 2023 in the United States of America ('US').
Arguments for target_news:
'latest_news' - retrieve entries from the "Latest Developments" section
'sector_news' - retrieve entries from the "Sector Developments" section
'bilateral_multilateral_news' - retrieve entries from the "Bilateral & Multilateral Developments" section
Arguments for target_date:
The target_date argument is a string, and must be in the format 'yyyy-mm-dd' For example, '2023-10-25'
Arguments for market
Countries, regions and groups are represented the following codes.
#Groups
Europe: 'European Union',
COE: 'Council of Europe',
ASEAN: 'Association of Southeast Asian Nations',
LAC: 'Intergovernmental Council on Artificial Intelligence for Latin America and the Caribbean',
CLAD: 'Latin American Center for Development Administration',
AFU: 'African Union',
EARFAI: 'Eastern Africa Sub-Regional Forum on Artificial Intelligence',
SARFAI: 'Southern Africa Sub-Regional Forum on Artificial Intelligence',
CIS: ' Commonwealth of Independent States'
G7: 'Group of Seven',
G20: 'Group of Twenty',
OECD: 'Organisation for Economic Co-operation and Development',
#Countries
AF: 'Afghanistan',
AX: 'Åland Islands',
AL: 'Albania',
DZ: 'Algeria',
AS: 'American Samoa',
AD: 'Andorra',
AO: 'Angola',
AI: 'Anguilla',
AQ: 'Antarctica',
AG: 'Antigua and Barbuda',
AR: 'Argentina',
AM: 'Armenia',
AW: 'Aruba',
AU: 'Australia',
AT: 'Austria (EU)',
AZ: 'Azerbaijan',
BS: 'Bahamas',
BH: 'Bahrain',
BD: 'Bangladesh',
BB: 'Barbados',
BY: 'Belarus',
BE: 'Belgium (EU)',
BZ: 'Belize',
BJ: 'Benin',
BM: 'Bermuda',
BT: 'Bhutan',
BO: 'Bolivia',
BA: 'Bosnia and Herzegovina',
BW: 'Botswana',
BR: 'Brazil',
IO: 'British Indian Ocean Territory',
VG: 'British Virgin Islands',
BN: 'Brunei Darussalam',
BG: 'Bulgaria (EU)',
BF: 'Burkina Faso',
BI: 'Burundi',
KH: 'Cambodia',
CM: 'Cameroon',
CA: 'Canada',
CV: 'Cape Verde',
BQ: 'Caribbean Netherlands',
KY: 'Cayman Islands',
CF: 'Central African Republic',
TD: 'Chad',
CL: 'Chile',
CN: 'People\'s Republic of China',
CX: 'Christmas Island',
CC: 'Cocos Islands',
CO: 'Colombia',
KM: 'Comoros',
CG: 'Congo',
CK: 'Cook Islands',
CR: 'Costa Rica',
HR: 'Croatia (EU)',
CU: 'Cuba',
CW: 'Curaçao',
CY: 'Cyprus (EU)',
CZ: 'Czech Republic (EU)',
CD: 'Democratic Republic of the Congo',
DK: 'Denmark (EU)',
DJ: 'Djibouti',
DM: 'Dominica',
DO: 'Dominican Republic',
EC: 'Ecuador',
EG: 'Egypt',
SV: 'El Salvador',
GQ: 'Equatorial Guinea',
ER: 'Eritrea',
EE: 'Estonia (EU)',
ET: 'Ethiopia',
FK: 'Falkland Islands',
FO: 'Faroe Islands',
FM: 'Federated States of Micronesia',
FJ: 'Fiji',
FI: 'Finland (EU)',
FR: 'France (EU)',
GF: 'French Guiana',
PF: 'French Polynesia',
TF: 'French Southern Territories',
GA: 'Gabon',
GM: 'Gambia',
GE: 'Georgia',
DE: 'Germany (EU)',
GH: 'Ghana',
GI: 'Gibraltar',
GR: 'Greece (EU)',
GL: 'Greenland',
GD: 'Grenada',
GP: 'Guadeloupe',
GU: 'Guam',
GT: 'Guatemala',
GN: 'Guinea',
GW: 'Guinea-Bissau',
GY: 'Guyana',
HT: 'Haiti',
HN: 'Honduras',
HK: 'Hong Kong SAR',
HU: 'Hungary (EU)',
IS: 'Iceland',
IN: 'India',
ID: 'Indonesia',
IR: 'Iran',
IQ: 'Iraq',
IE: 'Ireland (EU)',
IM: 'Isle of Man',
IL: 'Israel',
IT: 'Italy (EU)',
CI: 'Ivory Coast',
JM: 'Jamaica',
JP: 'Japan',
JE: 'Jersey',
JO: 'Jordan',
KZ: 'Kazakhstan',
KE: 'Kenya',
KI: 'Kiribati',
XK: 'Kosovo',
KW: 'Kuwait',
KG: 'Kyrgyzstan',
LA: 'Laos',
LV: 'Latvia (EU)',
LB: 'Lebanon',
LS: 'Lesotho',
LR: 'Liberia',
LY: 'Libya',
LI: 'Liechtenstein',
LT: 'Lithuania (EU)',
LU: 'Luxembourg (EU)',
MO: 'Macau',
MK: 'Macedonia',
MG: 'Madagascar',
MW: 'Malawi',
MY: 'Malaysia',
MV: 'Maldives',
ML: 'Mali',
MT: 'Malta (EU)',
MH: 'Marshall Islands',
MQ: 'Martinique',
MR: 'Mauritania',
MU: 'Mauritius',
YT: 'Mayotte',
MX: 'Mexico',
MD: 'Moldova',
MC: 'Monaco',
MN: 'Mongolia',
ME: 'Montenegro',
MS: 'Montserrat',
MA: 'Morocco',
MZ: 'Mozambique',
MM: 'Myanmar',
NA: 'Namibia',
NR: 'Nauru',
NP: 'Nepal',
NL: 'Netherlands (EU)',
NC: 'New Caledonia',
NZ: 'New Zealand',
NI: 'Nicaragua',
NE: 'Niger',
NG: 'Nigeria',
NU: 'Niue',
NF: 'Norfolk Island',
KP: 'North Korea',
MP: 'Northern Mariana Islands',
NO: 'Norway',
OM: 'Oman',
PK: 'Pakistan',
PW: 'Palau',
PS: 'Palestine',
PA: 'Panama',
PG: 'Papua New Guinea',
PY: 'Paraguay',
PE: 'Peru',
PH: 'Philippines',
PN: 'Pitcairn Islands',
PL: 'Poland (EU)',
PT: 'Portugal (EU)',
PR: 'Puerto Rico',
QA: 'Qatar',
RE: 'Réunion',
RO: 'Romania (EU)',
RU: 'Russia',
RW: 'Rwanda',
SH: 'Saint Helena',
KN: 'Saint Kitts and Nevis',
LC: 'Saint Lucia',
PM: 'Saint Pierre and Miquelon',
VC: 'Saint Vincent and the Grenadines',
WS: 'Samoa',
SM: 'San Marino',
ST: 'São Tomé and Príncipe',
SA: 'Saudi Arabia',
SN: 'Senegal',
RS: 'Serbia',
SC: 'Seychelles',
SL: 'Sierra Leone',
SG: 'Singapore',
SX: 'Sint Maarten',
SK: 'Slovakia (EU)',
SI: 'Slovenia (EU)',
SB: 'Solomon Islands',
SO: 'Somalia',
ZA: 'South Africa',
GS: 'South Georgia and the South Sandwich Islands',
KR: 'South Korea',
SS: 'South Sudan',
ES: 'Spain (EU)',
LK: 'Sri Lanka',
SD: 'Sudan',
SR: 'Suriname',
SJ: 'Svalbard and Jan Mayen',
SZ: 'Eswatini',
SE: 'Sweden (EU)',
CH: 'Switzerland',
SY: 'Syria',
TW: 'Taiwan',
TJ: 'Tajikistan',
TZ: 'Tanzania',
TH: 'Thailand',
TL: 'Timor-Leste',
TG: 'Togo',
TK: 'Tokelau',
TO: 'Tonga',
TT: 'Trinidad and Tobago',
TN: 'Tunisia',
TR: 'Turkey',
TM: 'Turkmenistan',
TC: 'Turks and Caicos Islands',
TV: 'Tuvalu',
UG: 'Uganda',
UA: 'Ukraine',
AE: 'United Arab Emirates',
GB: 'United Kingdom',
US: 'United States',
UM: 'United States Minor Outlying Islands',
VI: 'United States Virgin Islands',
UY: 'Uruguay',
UZ: 'Uzbekistan',
VU: 'Vanuatu',
VA: 'Vatican City',
VE: 'Venezuela',
VN: 'Vietnam',
WF: 'Wallis and Futuna',
EH: 'Western Sahara',
YE: 'Yemen',
ZM: 'Zambia',
ZW: 'Zimbabwe'
LICENCE TERMS
The following terms apply to your access and use of the API service to the Global AI Regulation Tracker, which was developed by Raymond Sun (techie_ray) (Developer)), during the free trial period (as indicated within the relevant API key provided by Developer).
Developer retains all intellectual property rights in the API service, including the implementation code, the API key, and the outputs returned by the API (subject to any third party rights).
Outputs returned by the API may contain links to third party sources (i.e. the "href" attribute in the output). Your access to those third party sources are at your own risk. The Developer does not claim copyright to those third party sources, but owns the copyright in the summary relating to the third party source (i.e. the "desc" attribute).
You may use the API service (and its outputs), free of charge, solely for personal use or internal business use throughout the free trial period. At this stage, the API service is not designed (and therefore not allowed) for commercial use (such as use of the API service in your own services to your customers).
API service is provided on 'as is' basis, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and warranties of merchantability, fitness for a particular purpose and non-infringement. In no event will the Developer be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the API service.
The Developer may modify or cancel any part of the API service without notice. Any feedback you provide to Developer about the API service will become the intellectual property of Developer.
These terms are governed by the laws of New South Wales, Australia.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file techieray_ai_reg_tracker_api-1.0.4.tar.gz
.
File metadata
- Download URL: techieray_ai_reg_tracker_api-1.0.4.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2fc3c9c2bfa46f82adb4da60a29cd5cf3813b80c003a84e49e4d9807c196f4 |
|
MD5 | 8c8f893032f4474f3796292b93f0884f |
|
BLAKE2b-256 | d5631cb92fd35c4bd643a92884a65fa8ad33bd8800c8cc1d5aa67b0b6594b416 |
File details
Details for the file techieray_ai_reg_tracker_api-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: techieray_ai_reg_tracker_api-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5686220fee295de4c614ef3ba297f3a6fc7b553f86fe7ab33b0b8bd5acdebad9 |
|
MD5 | 5c895a4373e4f910d1db0bb58e0c1c87 |
|
BLAKE2b-256 | b9b1062a9d690b54424f4bf2c78b5de22e769673423bfc48e58e4079dee5fadd |