Intelligent internal linking optimization API using AI.
RankVectors helps you automatically discover and implement optimal internal links across your website to improve SEO performance and user experience.
- AI-Powered Analysis: Uses OpenAI embeddings to find optimal linking opportunities
- Smart Crawling: Automatically crawls and analyzes your website content
- Automated Implementation: Implement links via webhooks or manual instructions
- Page-Based Plans: Predictable pricing by number of pages monitored
- Multi-Platform Support: Works with any CMS or platform via REST API
- Create a project with your website URL
- Start a crawl to analyze your content
- Generate AI-powered link suggestions
- Implement suggestions via API or webhook
- Track performance and manage page usage and limits
Most API endpoints support authentication using your RankVectors API key.
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Get your API key from your RankVectors dashboard: Settings → API Keys
Note: Some endpoints (marked in the documentation) support both API key authentication and web session authentication (Stack Auth). API key authentication is required for SDK usage and external integrations like WordPress plugins.
For more information, please visit https://rankvectors.com/docs.
PHP 8.1 and later.
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/rankvectors/rankvectors-php-sdk.git"
}
],
"require": {
"rankvectors/rankvectors-php-sdk": "*@dev"
}
}Then run composer install
Download the files and include autoload.php:
<?php
require_once('/path/to/rankvectors/rankvectors/vendor/autoload.php');Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\APIKeysApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$create_api_key_request = new \OpenAPI\Client\Model\CreateApiKeyRequest(); // \OpenAPI\Client\Model\CreateApiKeyRequest
try {
$result = $apiInstance->createApiKey($create_api_key_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling APIKeysApi->createApiKey: ', $e->getMessage(), PHP_EOL;
}All URIs are relative to https://api.rankvectors.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| APIKeysApi | createApiKey | POST /api/api-keys | Create API key |
| APIKeysApi | deleteApiKey | DELETE /api/api-keys/{id} | Delete API key |
| APIKeysApi | listApiKeys | GET /api/api-keys | List API keys |
| APIKeysApi | updateApiKey | PATCH /api/api-keys/{id} | Update API key |
| AnalyticsApi | getProjectAnalytics | GET /api/projects/{projectId}/analytics | Get project analytics |
| ContentVerificationApi | getPageChanges | GET /api/projects/{projectId}/changes | Get page changes |
| ContentVerificationApi | verifyContent | POST /api/projects/{projectId}/verify-content | Verify page content |
| CrawlingApi | getCrawlHistory | GET /api/projects/{projectId}/crawl | Get crawl history |
| CrawlingApi | startCrawl | POST /api/projects/{projectId}/crawl | Start website crawl |
| ImplementationsApi | getImplementation | GET /api/projects/{projectId}/implementations/{implementationId} | Get implementation details |
| ImplementationsApi | implementLinks | POST /api/projects/{projectId}/implementations | Implement link suggestions |
| ImplementationsApi | listImplementations | GET /api/projects/{projectId}/implementations | List implementations |
| ImplementationsApi | rollbackImplementation | POST /api/projects/{projectId}/implementations/{implementationId}/rollback | Rollback implementation |
| PagesApi | batchSyncPages | POST /api/projects/{projectId}/pages/batch | Batch sync pages |
| PagesApi | listPages | GET /api/projects/{projectId}/pages | List pages |
| ProjectsApi | createProject | POST /api/projects | Create a new project |
| ProjectsApi | deleteProject | DELETE /api/projects/{projectId} | Delete a project |
| ProjectsApi | getProject | GET /api/projects/{projectId} | Get project details |
| ProjectsApi | listProjects | GET /api/projects | List all projects |
| ProjectsApi | syncProject | POST /api/projects/{projectId}/sync | Sync project |
| SuggestionsApi | deleteSuggestion | DELETE /api/projects/{projectId}/suggestions/{suggestionId} | Delete suggestion |
| SuggestionsApi | generateSuggestions | POST /api/projects/{projectId}/suggestions | Generate link suggestions |
| SuggestionsApi | getSuggestions | GET /api/projects/{projectId}/suggestions | Get link suggestions |
| SuggestionsApi | updateSuggestion | PATCH /api/projects/{projectId}/suggestions/{suggestionId} | Update suggestion status |
| UserApi | getUserInfo | GET /api/user/me | Get authenticated user information |
| WebhooksApi | getImplementationInstructions | GET /api/webhook/implement-link | Get implementation instructions |
| WebhooksApi | reportImplementationStatus | POST /api/webhook/implement-link | Report implementation status |
- ApiKey
- ApiKeyResponse
- BatchSyncPages200Response
- BatchSyncPagesRequest
- ChangeResult
- ContentVerification
- Crawl
- CreateApiKeyRequest
- CreateProjectRequest
- CustomCredentials
- DeleteProject200Response
- DeleteSuggestion200Response
- Error
- GenerateSuggestions200Response
- GenerateSuggestionsRequest
- GetImplementation200Response
- GetPageChanges200Response
- GetPageChanges200ResponseSummary
- GetUserInfo200Response
- GetUserInfo200ResponseLinks
- GetUserInfo200ResponseUser
- Implementation
- ImplementationInstructions
- ImplementationRequest
- ImplementationResponse
- ImplementationResult
- ImplementationSummary
- LinkOpportunity
- ListImplementations200Response
- ListPages200Response
- Page
- PageAllowance
- PageAllowanceInfo
- PageAllowanceUsageHistoryInner
- PageChange
- PageChangePage
- PageData
- PageInfo
- PageLimitStatus
- PagePricing
- PagePricingPagePacksInner
- PagePricingTiersInner
- PeriodCharges
- Project
- ProjectAnalytics
- ProjectAnalyticsContentStats
- ProjectAnalyticsImplementationStats
- ProjectAnalyticsSuggestionStats
- ProjectAnalyticsSyncStats
- ProjectCount
- ReportImplementationStatus200Response
- ReportImplementationStatusRequest
- Rollback
- RollbackImplementation200Response
- RollbackImplementationRequest
- StartCrawlRequest
- StepByStepInstructions
- Suggestion
- SyncProject200Response
- SyncProjectRequest
- UpdateApiKeyRequest
- UpdateSuggestionRequest
- UsageHistoryItem
- VerifyContent200Response
- VerifyContentRequest
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
To run the tests, use:
composer install
vendor/bin/phpunitThis PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.3.1- Generator version:
7.16.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen