Repository navigation
Refresh the OpenAPI specs from the public API docs (DAT-1175) - #5
Merged
Merged
Conversation
Regenerate data-api from the current documentation and add specs for the Project API, Local Marketing API and SE Visible API, so the repo covers all four APIs served from api.seranking.com. - data-api 2.0.0: 86 operations with typed parameters, request body and response schemas, documented errors, curl samples and a link to each docs section. operationIds are unchanged; tags follow the docs sections. - project-api (121 operations), local-marketing-api (15) and se-visible-api (36): new. - Authentication is described as security schemes (Authorization: Token header, or the apikey query parameter) instead of a Postman apikey parameter. - Shared 401/402/403/429 responses with the gateway's error body. - CI lints all four specs and checks JSON/YAML sync for each. - README lists the four specs and explains authentication. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hqw2DQwrLyJXtdtoxsUQVB
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the specs in line with the public API documentation and adds the three APIs that were missing.
openapi/data-api.{yaml,json}openapi/project-api.{yaml,json}openapi/local-marketing-api.{yaml,json}openapi/se-visible-api.{yaml,json}Every operation now has:
externalDocslink to that section;required, defaults and descriptions;{"error_description": "..."}body;x-codeSamples.Authentication is described with two security schemes: the
Authorization: Token <key>header (recommended) and theapikeyquery parameter. They replace the oldapikeyparameter and its Postman placeholder{{secret_key_data}}.CI lints all four specs and checks JSON/YAML sync for each. The README lists the four specs and explains authentication.
Compatibility notes for
data-apioperationIds are unchanged.SERP Results > classicis nowSERP,backlinksisBacklinksandAccount & systemisAccount System. Generated clients that group by tag will rename classes or modules; this is why the version is bumped to 2.0.0.order_byonbacklinks/raw;statsandurlondomain/competitors;sortandsort_orderonkeywords/longtail;limitandoffsetonsite-audit/audits/issues.filter[...]parameters onai-search/prompts-by-*andsite-audit/audits/linksare replaced by the documentedfilterparameter.GET /v1/backlinks/export/status,GET /v1/ai-search/overview/aggregated/time-seriesandGET /v1/account/credit-balance.POST /v1/serp/classic/tasksrequest schema (expected_serpand its constraints) is kept from Document the SERP task request body and expected_serp (DAT-1175) #3.Other notes
POST /v1/project-management/sitestakes a JSON object. The docs example shows an array.no-ambiguous-paths, on SE Visible. It comes from the API itself:.../projects/{project_id}/prompts/move/{topic_id}and.../projects/{project_id}/prompts/{prompt_id}/resultscannot be told apart. The previousdata-apihad 86 warnings.Test plan
redocly linton all four specs: valid, 1 warning (above).🤖 Generated with Claude Code
https://claude.ai/code/session_01Hqw2DQwrLyJXtdtoxsUQVB