API Documentation

Integrate DataFinance API into your applications. Access real-time news, AI-powered market analysis, and trading quotes.

Authentication

All API endpoints require authentication using an API key. Include your key in the request header:

Authorization: Bearer YOUR_API_KEY

Contact us to receive your API key

Base URL

http://localhost:3000

Endpoints

Get Latest News

GET
GET /api/articles

Query Parameters

limitLimit results (default: 20, max: 100)
offsetPagination offset (default: 0)
filterTime filter: 30m, 1h, 2h, 4h, 8h, 16h, 1d
langLanguage: en, ru

Code Examples

curl -X GET "http://localhost:3000/api/articles?limit=10&lang=en" \
  -H "Authorization: Bearer YOUR_API_KEY"

Error Handling

Status Codes

200OK - Request successful
400Bad Request - Invalid parameters
401Unauthorized - Invalid API key
404Not Found - Resource not found
429Too Many Requests - Rate limit exceeded
500Server Error - Internal server error

Rate Limits

Free tier: 100 requests/hour. Premium tier: 10,000 requests/hour.

Support

For questions or issues, contact our developer support team. dev@data-finance.live