Introduction
GEO AI provides a REST API for programmatically auditing content and applying quick fixes to your WordPress posts. The API is built on top of the WordPress REST API infrastructure and follows WordPress authentication standards.Base URL
All GEO AI API endpoints are prefixed with:https://example.com, the full endpoint URL would be:
Authentication
GEO AI REST API endpoints use WordPress’s built-in authentication system. You can authenticate requests using any of the following methods:Cookie Authentication
When making requests from within WordPress (e.g., from the admin dashboard), WordPress automatically handles authentication via cookies. You must include a valid nonce in your requests:Application Passwords
For external applications, use WordPress Application Passwords with HTTP Basic Authentication:OAuth or JWT
GEO AI supports any WordPress REST API authentication plugin you have installed, such as OAuth 1.0a or JWT Authentication.Permissions
All GEO AI endpoints require specific WordPress capabilities:- Audit endpoint: Requires
edit_postcapability for the specified post - Quick Fix endpoint: Requires
edit_postcapability for the specified post
403 Forbidden response.
Common Response Format
All GEO AI endpoints return JSON responses with a consistent structure:Success Response
Error Response
Error Codes
GEO AI uses standard HTTP status codes:| Status Code | Description |
|---|---|
200 | Success - Request completed successfully |
400 | Bad Request - Invalid or missing parameters |
403 | Forbidden - User lacks required permissions |
404 | Not Found - Resource doesn’t exist |
500 | Internal Server Error - Server-side error occurred |
Common Error Messages
The specified post ID does not exist or is invalid.
User does not have permission to edit the specified post.
One or more request parameters are invalid or missing.
Rate Limiting
GEO AI respects WordPress’s built-in rate limiting. If you’re making requests from external applications, be mindful of your server’s rate limits to avoid being blocked.Available Endpoints
GEO AI provides the following REST API endpoints:Audit
Run a GEO optimization audit on a post
Quick Fix
Apply automated fixes to improve GEO score
Next Steps
Audit Endpoint
Learn how to run GEO audits programmatically
Quick Fix Endpoint
Discover how to apply automated optimizations