Welcome to Swipe APIs - your comprehensive solution for financial data, web search, and news aggregation. Built for developers who demand reliability, speed, and comprehensive data coverage.
Swipe APIs provides three powerful endpoints designed for production use:
- π Finance API - Real-time stock data, historical prices, and market analytics
- π Search API - Google-powered search with customizable parameters
- π° News API - Global news aggregation with sentiment analysis
https://swipeapis.vercel.app
No authentication required - all endpoints are publicly accessible.
Comprehensive financial data provider supporting thousands of global stock symbols.
GET /finance/{ticker}
- β Real-time stock prices and market data
- β Historical price data with flexible intervals
- β Market capitalization and trading volumes
- β Analyst recommendations and ratings
- β Corporate fundamentals and key metrics
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ticker |
string | β Yes | Stock ticker symbol | AAPL , TSLA , GOOGL |
Parameter | Type | Default | Description |
---|---|---|---|
fields |
string | All fields | Comma-separated list of specific fields to return |
history_days |
integer | 0 |
Number of days of historical data. Deprecated if start_date is used. |
start_date |
string | - | Start date for historical data (YYYY-MM-DD). Overrides history_days . |
end_date |
string | - | End date for historical data (YYYY-MM-DD). This date is exclusive. Defaults to today. |
interval |
string | 1d |
Data interval: 1m , 5m , 15m , 30m , 1h , 1d , 1wk , 1mo |
include_recommendations |
boolean | false |
Include analyst recommendations and price targets |
adjusted |
boolean | true |
Return dividend/split adjusted prices |
price
- Current stock pricemarket_cap
- Market capitalizationvolume
- Trading volumepe_ratio
- Price-to-earnings ratiodividend_yield
- Annual dividend yield52_week_high
- 52-week high price52_week_low
- 52-week low pricebeta
- Stock volatility measurepb_ratio
- Price-to-book ratioforward_pe
- Forward price-to-earnings ratioenterprise_value
- Enterprise valuepayout_ratio
- Payout ratioaverage_volume
- Average trading volumeopen
- Market opening priceprevious_close
- Previous day's closing price
Basic stock quote:
curl "https://swipeapis.vercel.app/finance/AAPL"
Specific fields with historical data:
curl "https://swipeapis.vercel.app/finance/TSLA?fields=price,market_cap,volume&history_days=30&interval=1d"
With analyst recommendations:
curl "https://swipeapis.vercel.app/finance/MSFT?include_recommendations=true"
With a specific date range:
curl "https://swipeapis.vercel.app/finance/NVDA?start_date=2024-08-01&end_date=2024-08-20"
Single day history (note end_date is the next day):
curl "https://swipeapis.vercel.app/finance/NVDA?start_date=2024-08-20&end_date=2024-08-21"
{
"ticker": "MSFT",
"price": 507.23,
"market_cap": 3770326974464,
"pe_ratio": 37.18695,
"52_week_high": 555.45,
"52_week_low": 344.79,
"recommendations": [
{
"date": "2024-05-13",
"firm": "Morgan Stanley",
"to_grade": "Overweight",
"from_grade": "",
"action": "main"
},
{
"date": "2024-05-10",
"firm": "Barclays",
"to_grade": "Overweight",
"from_grade": "",
"action": "main"
}
]
}
Note: The
recommendations
field is only returned wheninclude_recommendations=true
. The bug causing an error in this field was fixed on August 24, 2025.
Google-powered search engine with advanced filtering and pagination capabilities.
GET /search/
- β Google search results with high relevancy
- β Advanced filtering and pagination
- β Multi-language support (50+ languages)
- β SafeSearch controls
- β Customizable result fields
Parameter | Type | Default | Description |
---|---|---|---|
q |
string | - | Required. Search query string |
num_results |
integer | 10 |
Maximum results to return (1-100) |
start |
integer | 0 |
Starting index for pagination |
language |
string | en |
Language code (ISO 639-1) |
safe |
boolean | true |
Enable Google SafeSearch filtering |
include_rank |
boolean | false |
Include search result ranking |
fields |
string | All fields | Comma-separated field selection |
url
- Result webpage URLtitle
- Page titledescription
- Meta description or snippetsource
- Domain sourcerank
- Search result position
Code | Language | Code | Language | Code | Language |
---|---|---|---|---|---|
en |
English | es |
Spanish | fr |
French |
de |
German | ja |
Japanese | zh |
Chinese |
ru |
Russian | pt |
Portuguese | it |
Italian |
Basic search:
curl "https://swipeapis.vercel.app/search/?q=machine+learning+tutorials"
Paginated results:
curl "https://swipeapis.vercel.app/search/?q=Python+FastAPI&num_results=20&start=10"
Specific fields in Spanish:
curl "https://swipeapis.vercel.app/search/?q=inteligencia+artificial&fields=url,title&language=es"
{
"query": "machine learning tutorials",
"total_results": 1000000,
"results": [
{
"rank": 1,
"url": "https://example.com/ml-tutorial",
"title": "Complete Machine Learning Tutorial for Beginners",
"description": "Learn machine learning from scratch with practical examples...",
"source": "example.com"
}
],
"pagination": {
"current_page": 1,
"results_per_page": 10,
"has_next": true
}
}
Global news aggregation with advanced filtering and sentiment analysis capabilities.
GET /news/
- β Global news from 50,000+ sources
- β Real-time top headlines
- β Advanced search and filtering
- β Sentiment analysis powered by AI
- β Multi-language and regional support
- β Category-based filtering
Parameter | Type | Default | Description |
---|---|---|---|
q |
string | - | Search query for specific topics (optional) |
num_results |
integer | 10 |
Number of articles to return (1-100) |
start |
integer | 0 |
Starting index for pagination |
from_date |
string | - | Start date filter (YYYY-MM-DD) |
to_date |
string | - | End date filter (YYYY-MM-DD). This date is exclusive. |
language |
string | en |
Article language (ISO 639-1) |
region |
string | US |
Geographic region for news |
category |
string | - | News category filter |
include_sentiment |
boolean | false |
Enable AI sentiment analysis |
business
- Business and finance newstechnology
- Tech industry updatesscience
- Scientific discoveries and researchhealth
- Health and medical newssports
- Sports news and updatesentertainment
- Entertainment and celebrity newspolitics
- Political news and analysis
Code | Region | Code | Region | Code | Region |
---|---|---|---|---|---|
US |
United States | GB |
United Kingdom | CA |
Canada |
AU |
Australia | IN |
India | DE |
Germany |
FR |
France | JP |
Japan | BR |
Brazil |
Top headlines:
curl "https://swipeapis.vercel.app/news/"
Technology news with sentiment:
curl "https://swipeapis.vercel.app/news/?category=technology&include_sentiment=true&num_results=15"
Search for a single day (note to_date is the next day):
curl "https://swipeapis.vercel.app/news/?q=artificial+intelligence&from_date=2025-08-20&to_date=2025-08-21"
Regional news in specific language:
curl "https://swipeapis.vercel.app/news/?region=DE&language=de&category=business"
{
"query": "artificial intelligence",
"total_articles": 15420,
"articles": [
{
"title": "AI Revolution in Healthcare: New Breakthrough in Diagnosis",
"description": "Researchers announce major advancement in AI-powered medical diagnosis...",
"url": "https://example.com/ai-healthcare",
"source": "Tech News Daily",
"published_at": "2025-08-24T14:30:00Z",
"category": "technology",
"region": "US",
"language": "en",
"sentiment": {
"score": 0.85,
"label": "positive",
"confidence": 0.92
}
}
],
"metadata": {
"generated_at": "2025-08-24T15:00:00Z",
"processing_time_ms": 245
}
}
- Public API: No authentication required
- No rate limits: Use responsibly for fair access
- Production ready: Built for high availability
All endpoints return standardized error responses:
{
"error": {
"code": "INVALID_TICKER",
"message": "The provided ticker symbol is invalid or not found",
"details": "Ticker 'INVALID' not found in our database",
"timestamp": "2025-08-24T15:00:00Z"
}
}
Code | HTTP Status | Description |
---|---|---|
INVALID_TICKER |
400 | Invalid or unknown stock ticker |
MISSING_QUERY |
400 | Required query parameter missing |
RATE_LIMIT_EXCEEDED |
429 | Service temporarily unavailable |
INTERNAL_ERROR |
500 | Server processing error |
import requests
# Finance API
response = requests.get('https://swipeapis.vercel.app/finance/AAPL')
data = response.json()
# Search API
response = requests.get('https://swipeapis.vercel.app/search/',
params={'q': 'Python tutorials'})
results = response.json()
# News API
response = requests.get('https://swipeapis.vercel.app/news/',
params={'category': 'technology'})
articles = response.json()
// Using fetch API
const getStockData = async (ticker) => {
const response = await fetch(`https://swipeapis.vercel.app/finance/${ticker}`);
return response.json();
};
const searchWeb = async (query) => {
const response = await fetch(`https://swipeapis.vercel.app/search/?q=${query}`);
return response.json();
};
const getNews = async (category) => {
const response = await fetch(`https://swipeapis.vercel.app/news/?category=${category}`);
return response.json();
};
# Get stock quote
curl -H "Accept: application/json" \
"https://swipeapis.vercel.app/finance/AAPL"
# Search the web
curl -H "Accept: application/json" \
"https://swipeapis.vercel.app/search/?q=machine+learning"
# Get tech news
curl -H "Accept: application/json" \
"https://swipeapis.vercel.app/news/?category=technology"
- Choose your endpoint based on your needs
- Review the parameters and response formats
- Make your first request using cURL or your preferred HTTP client
- Implement error handling for robust applications
- Use responsibly to ensure fair access for everyone
- Issues: GitHub Issues
- Mail: iambhvshh@outlook.com
Built with β€οΈ by iambhvsh