Sample Python Script for WorldCheck One API
I am a beginner in WorldCheck API and have several questions.
1) Is it possible to do screening via python instead of using Postman? Hope to be directed to some sample python scripts (of various methods such as Sync, Async, Zero Footprint, bulk screening) to get started.
2) Where do I retrieve my group_id? I am unable to find it when I login to WC1 UI. I have tried using a shortname which was displayed under "Groups" on a left vertical in the UI.
3) I have tried a python script from this link (https://community.developers.refinitiv.com/questions/47570/please-can-you-post-a-sample-python-file-that-can.html) using my API key and API secret. However, I am getting the below error.
MaxRetryError: HTTPSConnectionPool(host='zfs-world-check-one-api.thomsonreuters.com', port=443): Max retries exceeded with url: /v1/cases/screeningRequest (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001E68BD39C70>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
Best Answer
-
Hi @bluenceo
Thanks for reaching out to us.
Please find out comments below:1. Yes, you can use the Python for screening request. Please refer the Python code used in below link. Please note: We request you to kindly use the host name as api-worldcheck.refinitiv.com
2. Currently, you can use the API call "SEQ-pre-groups: Get my top-level groups" to get the groupId.
3. You are receiving the error as you are using the invalid host, kindly use the host api-worldcheck.refinitiv.com and then try initiating the API call and let us know if issue still persists.
0
Answers
-
Hi Vivek,
With regards to item#1, thanks for providing the link for ZFS. It is working using the group IDs (Regular API and ZFS API) using Postman retrieval. However, I have tried the python script to retrieve bulking screenings and add in secondary fields but it does not work. Need your help to provide the python scripts for regular API bulk screenings and passport screening with secondary fields.
For Item #2, yes I am able to retrieve group IDs using Postman.
For Item #3, thanks for the tip. I have amended the path and
path="https://zfs-world-check-one-api.refinitiv.com/v1/cases/screeningRequest" to
path="https://api-worldcheck.refinitiv.com/v1/cases/screeningRequest"
and
zfs_gatewayhost="zfs-world-check-one-api.refinitiv.com" to
zfs_gatewayhost="api-worldcheck.refinitiv.com"
Posting it here so that everyone can learn from it. Thanks and hope to hear from you on item#1 follow up. Thanks.
0 -
Hi @bluenceo
Unfortunately, we are not having any additional python scripts other than ScreeningRequest. Therefore, we request you to kindly leverage & amend the scripts mentioned on the below link
https://community.developers.refinitiv.com/questions/47570/please-can-you-post-a-sample-python-file-that-can.html0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛