https://github.com/xxgicoxx/correst-serverless
REST Serverless Web Service for track Correios objects.
https://github.com/xxgicoxx/correst-serverless
correios correst rest serverless webservice
Last synced: 11 months ago
JSON representation
REST Serverless Web Service for track Correios objects.
- Host: GitHub
- URL: https://github.com/xxgicoxx/correst-serverless
- Owner: xxgicoxx
- License: mit
- Archived: true
- Created: 2022-04-04T19:15:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T23:43:43.000Z (about 3 years ago)
- Last Synced: 2025-07-14T20:42:08.981Z (11 months ago)
- Topics: correios, correst, rest, serverless, webservice
- Language: JavaScript
- Homepage: https://correst-serverless-xxgicoxx.vercel.app/api/correios
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Correst Serverless
Serverless Web Service for track Correios objects.
# Features
* Track Correios objects
# Prerequisites
* [Node.js](https://nodejs.org/en/)
# Running
### 1. Vercel Deploy
````
# Account
Create an Vercel account on https://vercel.com/.
# Install Vercel CLI
npm install -g vercel
# Vercel CLI login
vercel login
# Deploy
vercel
````
# Example
````
curl --location --request GET 'https://correst-serverless-{USER}.vercel.app/api/track?code=PX547037143BR'
````
# Response example
```json
{
"code": "QJ852965722BR",
"events": [
{
"event": "Objeto entregue ao destinatário",
"date": "10/01/2022",
"hour": "08:53",
"location": "Unidade de Distribuição - Pato Branco / PR"
},
{
"event": "Objeto em trânsito - por favor aguarde",
"date": "06/01/2022",
"hour": "09:43",
"origin": "Agência dos Correios - Sao Bernardo Do Campo / SP",
"destination": "Unidade de Tratamento - Cajamar / SP"
},
{
"event": "Objeto postado",
"date": "05/01/2022",
"hour": "15:47",
"location": "Agência dos Correios - Sao Bernardo Do Campo / SP"
}
]
}
```
# Built With
* [Node.js](https://nodejs.org/en/)
# Authors
* [xxgicoxx](https://github.com/xxgicoxx)