sieLAC API
Access the statistical information on Latin America and the Caribbean, and incorporate it into your workflow.
Get start
Send an email to sie@olacde.org with the following information:
- Full name
- Organization
- A brief description of the intended use for the API
Our team will review your request and will respond as soon as possible.
You will receive an email with the credentials (username, password) to authenticate on the API.
How it works
Request an access token using your account credentials.
| Method | POST |
|---|---|
| Url | https://sielacapi.olacde.org/token |
| Parameters | |
| grant_type | password |
| username | Your account username |
| password | Your account password |
If everything is okay, you will receive the following response.
| access_token | A sequence of alphanumeric characters. |
|---|---|
| token_type | bearer |
| expires_in | Tokens have a lifespan of 24h (86399s). |
{
"access_token":
"hOK4s5avzQVzwAav6s8Pq8fuZNzImBloA_nLkqsk6aaYUoCYSYeKeMtlw3AE6ifLCNBg0-EiE7Dodky_...",
"token_type":
"bearer",
"expires_in":
86399
}
Use the access token to authenticate requests made to the API.
In the request header include the "Authorization" option, the value is the concatenation of "token_type" and "access_token" joined with a space.
Authorization:
bearer hOK4s5avzQVzwAav6s8Pq8fuZNzImBloA_nLkqsk6aaYUoCYSYeKeMtlw3AE6ifLCNBg0-EiE7Dodky_...
For information about the requests available in the API check the docs.