datagovsg / datagovsg-datasets

A repository to track dataset request, issues and suggestions.
87 stars 25 forks source link

Dataset request: <UEN> #1390

Open leoliuyao opened 2 years ago

leoliuyao commented 2 years ago

Please provide the name of the dataset or describe the dataset that you're requesting:

UEN Dataset String url="https://data.gov.sg/api/action/datastore_search?resource_id=5ab68aac-91f6-4f39-9b21-698610bdf3f7&q="+uen;

Do you know which agency provides/can provide this data?

( Refer to this link for a full list of agencies: https://data.gov.sg/organization ) Accounting and Corporate Regulatory Authority (ACRA)

If there's an issue with a dataset, please provide a description of the problem

The API below stopped returning JSON responses suddenly. https://data.gov.sg/api/action/datastore_search?resource_id=5ab68aac-91f6-4f39-9b21-698610bdf3f7&q=[UEN_NUMBER];

Please provide the fields expected in this dataset:

(e.g. month | country | passengers) We need the entity_name only. But before get entity_name, we need the JSON response. JSONObject jsonObject = new JSONObject(json); entityName=jsonObject.getJSONObject("result").getJSONArray("records").getJSONObject(0).getString("entity_name");

uen | entity_name TXXXXXXXX | ABC Pte Ltd

How frequently would you need this dataset to be updated?

Example:

Can you give a short explanation on how you're planning to use this dataset?

Check data entry to avoid keying the UEN wrongly. Please refer to the capture below.

Screenshot 2022-04-13 at 5 42 20 PM
codebyshennan commented 2 years ago

API requests returns Unauthorized error message

Screenshot 2022-04-24 at 15 30 31
leoliuyao commented 2 years ago

API requests returns Unauthorized error message Screenshot 2022-04-24 at 15 30 31

I got this "Unauthorized" error message as well. But before I open this issue, the API can return the JSON response without any "Unauthorized" error. What should I do to resolve this error?