用于检查 17 多个国家的申根签证预约可用性的现代 TypeScript 库。该库采用类型安全、速率限制和错误处理等技术。
Modern TypeScript library for checking Schengen visa appointment availability across 17+ countries. Built with type safety, rate limiting, and error handling.
This library is for educational and informational purposes only.
Always use official channels for visa appointments!
npm install schengen-randevu-checker…const { SchengenChecker } = require('schengen-randevu-checker');
const checker = new SchengenChecker({ sehir: 'ankara' });
checker.musaitRandevuKontrol('fransa').then(result => {
console.log(result);
});| Country | Code | Cities |
|---|---|---|
| France | fransa |
Ankara, Istanbul, Izmir |
| Netherlands | hollanda |
Ankara, Istanbul |
| Germany | almanya |
Ankara, Istanbul, Izmir |
| Spain | ispanya |
Ankara, Istanbul, Izmir |
| Italy | italya |
Ankara, Istanbul, Izmir |
| Sweden | isvec |
Ankara, Istanbul |
| Czech Republic | cekyarepublik |
Ankara, Istanbul |
| Croatia | hirvatistan |
Ankara |
| Bulgaria | bulgaristan |
Ankara, Istanbul |
| Finland | finlandiya |
Ankara, Istanbul |
| Slovenia | slovenya |
Ankara |
| Denmark | danimarka |
Ankara, Istanbul |
| Norway | norvec |
Ankara, Istanbul |
| Estonia | estonya |
Ankara |
| Lithuania | litvanya |
Ankara |
| Luxembourg | luksemburg |
Ankara |
| Latvia | letonya |
Ankara |
| Poland | polonya |
Ankara, Istanbul |
v2.1.0:
new SchengenChecker(options?: SchengenCheckerOptions)Options:
sehir?: string - Default city (default: 'ankara')rateLimit?: number - Delay between requests in ms (default: 2000)cache?: CacheOptions - Cache configurationenabled?: boolean - Enable/disable cache (default: true)ttl?: number - Time to live in ms (default: 300000 - 5 minutes)maxSize?: number - Maximum cache entries (default: 100)enableStatistics?: boolean - Enable statistics tracking (default: true)musaitRandevuKontrol(ulke: string, options?: KontrolOptions): PromiseCheck appointment availability for a single country.
const result = await checker.musaitRandevuKontrol('fransa', {
sehir: 'istanbul',
vizeTipi: 'turist'
});topluRandevuKontrol(ulkeler: string[], options?: KontrolOptions): PromiseCheck multiple countries with rate limiting.
const results = await checker.topluRandevuKontrol([
'fransa',
'hollanda',
'almanya'
]);tumUlkelerKontrol(options?: KontrolOptions): PromiseCheck all supported countries.
const allResults = await checker.tumUlkelerKontrol();vizeMerkeziBilgisi(ulke: string): VizeMerkezi | nullGet visa center information for a country.
const info = checker.vizeMerkeziBilgisi('fransa');
// {
// ulke: 'fransa',
// url: 'https://france-visas.gouv.fr/...',
// tip: 'vfs-global',
// sehirler: ['ankara', 'istanbul', 'izmir'],
// telefonlar: { ankara: '+90 312 455 4545', ... }
// }vizeMerkezleriListele(): ArrayList all visa centers.
const centers = checker.vizeMerkezleriListele();sehreGoreVizeMerkezleri(sehir: string): ArrayFilter visa centers by city.
const ankaraCenters = checker.sehreGoreVizeMerkezleri('ankara');getAllCountries(): CountryConfig[]Get all country configurations with detailed information.
const countries = checker.getAllCountries();
// Returns array of all 17 countries with flags, providers, URLsgetCountryById(countryId: string): CountryConfig | undefinedGet country configuration by ISO code.
const france = checker.getCountryById('fr');
// { id: 'fr', name: 'Fransa', flag: '', provider: 'TLScontact', ... }getCountryByName(countryName: string): CountryConfig | undefinedGet country configuration by name.
const spain = checker.getCountryByName('İspanya');getCountriesByProvider(provider: string): CountryConfig[]Filter countries by visa service provider.
const vfsCountries = checker.getCountriesByProvider('VFS Global');
// Returns all countries using VFS GloballistCountriesWithFlags(): ArrayGet a simplified list of countries with flags.
const list = checker.listCountriesWithFlags();
// [{ id: 'fr', name: 'Fransa', flag: '', provider: 'TLScontact' }, ...]getContactInfo(countryId: string, city?: string): ContactInfo[]Get embassy/consulate contact information.
// Get all contacts for a country
const contacts = checker.getContactInfo('fr');
// Get contacts for specific city
const ankaraContact = checker.getContactInfo('de', 'ankara');
console.log(ankaraContact[0].phone); // +90 312 455 51 00
console.log(ankaraContact[0].address);
console.log(ankaraContact[0].workingHours);getVisaRequirements(countryId: string, visaType?: string): VisaRequirementsGet detailed visa requirements.
const requirements = checker.getVisaRequirements('fr', 'tourist');
console.log(requirements.processingTime); // "15 iş günü"
console.log(requirements.visaFee); // "80 EUR (yetişkin)"
console.log(requirements.requiredDocuments); // Array of required documents
console.log(requirements.additionalInfo); // Tips and notesgetDocumentChecklist(countryId: string, visaType?: string): DocumentChecklistGet complete document checklist for visa application.
const checklist = checker.getDocumentChecklist('de', 'tourist');
console.log(checklist.mandatory); // Required documents
console.log(checklist.optional); // Optional documents
console.log(checklist.tips); // Application tips
// Example output:
// {
// name: 'Pasaport',
// description: 'En az 3 ay geçerli, 2 boş sayfa',
// format: 'Orijinal + fotokopi',
// quantity: 1
// }getCountryFullInfo(countryId: string): FullCountryInfoGet all information about a country in one call.
const fullInfo = checker.getCountryFullInfo('fr');
console.log(fullInfo.config); // Country configuration
console.log(fullInfo.contacts); // Contact information
console.log(fullInfo.requirements); // Visa requirements
console.log(fullInfo.checklist); // Document checklist
console.log(fullInfo.hasFullInfo); // true if all data availablegetCacheStats(): CacheStatsGet cache statistics.
const stats = checker.getCacheStats();
console.log(stats.size); // Current cache size
console.log(stats.hits); // Cache hits
console.log(stats.misses); // Cache misses
console.log(stats.hitRate); // Hit rate percentageclearCache(): voidClear all cached data.
checker.clearCache();setCacheEnabled(enabled: boolean): voidEnable or disable caching.
checker.setCacheEnabled(false); // Disable cache
checker.setCacheEnabled(true); // Enable cachesetCacheTTL(ttl: number): voidSet cache time-to-live in milliseconds.
checker.setCacheTTL(10 * 60 * 1000); // 10 minutesgetStatistics(): StatisticsGet comprehensive statistics.
const stats = checker.getStatistics();
console.log(stats.totalChecks);
console.log(stats.successfulChecks);
console.log(stats.averageResponseTime);
console.log(stats.mostCheckedCountries); // Top 10 countriesgetCountryStatistics(country: string): CountryStatGet statistics for a specific country.
const franceStats = checker.getCountryStatistics('fransa');
console.log(franceStats.checkCount);
console.log(franceStats.successRate);
console.log(franceStats.averageResponseTime);getSuccessRate(): numberGet overall success rate percentage.
const rate = checker.getSuccessRate(); // e.g., 85.5getCacheHitRate(): numberGet cache hit rate percentage.
const hitRate = checker.getCacheHitRate(); // e.g., 75.0resetStatistics(): voidReset all statistics.
checker.resetStatistics();…// ✅ Good: Use rate limiting
const checker = new SchengenChecker({ rateLimit: 2000 });
// ✅ Good: Handle errors
try {
const result = await checker.musaitRandevuKontrol('fransa');
} catch (error) {
console.error('Check failed:', error);
}
// ✅ Good: Use for educational purposes
const info = checker.vizeMerkeziBilgisi('fransa');
console.log('Contact:', info.telefonlar.ankara);
// ❌ Bad: Don't spam requests
// ❌ Bad: Don't use for automated booking
// ❌ Bad: Don't bypass official systems// v1.x (JavaScript)
const SchengenRandevu = require('schengen-randevu-checker');
const checker = new SchengenRandevu({ ulke: 'fransa' });
// v2.x (TypeScript)
import { SchengenChecker } from 'schengen-randevu-checker';
const checker = new SchengenChecker({ sehir: 'ankara' });If you're experiencing timeout errors with Germany:
// Result: { durum: 'timeout', mesaj: 'Site yanıt vermiyor (timeout)' }Possible Causes:
Solutions:
// 1. Increase timeout (if needed)
const checker = new SchengenChecker({
// Note: Timeout is already 30s by default
cache: {
enabled: true,
ttl: 10 * 60 * 1000 // Cache for 10 minutes
}
});
// 2. Use cache to reduce requests
const result = await checker.musaitRandevuKontrol('almanya');
// Second call will be instant from cache
// 3. Check if site is accessible
const info = checker.vizeMerkeziBilgisi('almanya');
console.log('Try accessing:', info.url);
// Open in browser to verifyAlternative Approaches:
403 Forbidden Errors:
**Rate Lim
暂无开放 Issues,或尚未同步最近议题。