The website interface of the Freedom of Information Archive (FOIArchive) is available through the History Lab website at http://history-lab.org/search
Development version of the FOIArchive API, implemented in Python3 and Flask
Clone the repo, install the requirements and run run.py.
probe_request()
functionhttp://127.0.0.1:5001/declass/v0.4/?start_date=1947-01-01&end_date=1950-12-01 hangs and returns:
{"apiErrors":"Please contact administrator if this issue persists","error":{"code":404,"message":"Service raised an exception"}}
http://127.0.0.1:5001/declass/v0.4/?date=1945-10-02 hangs and returns:
{"apiErrors":"Please contact administrator if this issue persists","error":{"code":404,"message":"Service raised an exception"}}
http://127.0.0.1:5001/declass/v0.4/visualizations/frus/classification_countries/ returns:
{"apiErrors":"Please contact administrator if this issue persists","error":{"code":404,"message":"Service raised an exception"}}
http://127.0.0.1:5001/declass/v0.4/entity_info returns:
{"apiErrors":[{"KeyError":"invalid request;"}],"error":{"code":404,"message":"Invalid API parameters"}}
http://127.0.0.1:5001/declass/v0.4/text/ returns:
{"apiErrors":[{"KeyError":"invalid parameters; try one of the following: start_date,total_pages,end_date,page,collections,search,page_size"}],"error":{"code":404,"message":"Invalid API parameters"}}
http://127.0.0.1:5001/declass/v0.4/documents/1977ACCRA03397/similar/ returns:
Not implemented yet
http://127.0.0.1:5001/declass/v0.4/overview/ returns:
{"apiErrors":[{"KeyError":"invalid parameter value(s)"}],"error":{"code":404,"message":"Invalid API parameters"}}