{"id":25,"date":"2026-11-30T04:35:05","date_gmt":"2026-11-30T04:35:05","guid":{"rendered":"https:\/\/diningwatch.com\/?page_id=25"},"modified":"2026-11-30T17:52:08","modified_gmt":"2026-11-30T17:52:08","slug":"api-documentation","status":"publish","type":"page","link":"https:\/\/diningwatch.com\/api-documentation\/","title":{"rendered":"DiningWatch API \u2014 WordPress edition"},"content":{"rendered":"<p class=\"wp-block-paragraph\">The current edition runs inside WordPress. Public coverage and sample endpoints are available; samples remain empty until source-use and publication reviews are complete.<\/p>\n<pre class=\"wp-block-preformatted\">GET \/?rest_route=\/diningwatch\/v1\/coverage\nGET \/?rest_route=\/diningwatch\/v1\/sample<\/pre>\n<p class=\"wp-block-paragraph\">The dashboard uses authenticated WordPress REST requests with a session cookie and X-WP-Nonce. Restaurant profiles, licenses, timelines, saved leads and saved searches are scoped to the signed-in account. Free accounts receive up to ten published sample records. Admin operations require administrator capabilities.<\/p>\n<p class=\"wp-block-paragraph\">External bearer-key access, paid export quotas and full API feature parity are not yet enabled in the WordPress-only edition. The earlier FastAPI implementation is retained as an optional development artifact; it is not deployed on this website.<\/p>\n<h2 class=\"wp-block-heading\">U.S. geography and expansion sources<\/h2>\n<p class=\"wp-block-paragraph\">Search accepts any U.S. city and all 50 states plus Washington, DC. The state filter accepts a two-letter code or full state name, case-insensitively. Invalid states return HTTP 422. City matching is exact against available records; selecting a location does not establish data coverage.<\/p>\n<pre class=\"wp-block-preformatted\">GET \/wp-json\/diningwatch\/v1\/locations\nGET \/wp-json\/diningwatch\/v1\/locations?state=Texas\nGET \/wp-json\/diningwatch\/v1\/sources\nGET \/wp-json\/diningwatch\/v1\/sample?state=TX&amp;city=Austin<\/pre>\n<p class=\"wp-block-paragraph\">Locations returns geographic search support and coverage status. Sources lists the New York City, Chicago and Austin inspection evaluation pilots; these are not published opening feeds. Coverage reports the existing Florida pipeline. Sample filters apply only within the fixed preview pool of up to ten published records. Empty results do not mean no restaurants exist in that city.<\/p>\n<p class=\"wp-block-paragraph\">Administrators can use DiningWatch \u2192 U.S. expansion to check official endpoints and collect bounded private samples for review. Inspection evidence is not proof of an opening. These tools do not enable paid API access or nationwide data licensing.<\/p>","protected":false},"excerpt":{"rendered":"<p>The current edition runs inside WordPress. Public coverage and sample endpoints are available; samples remain empty until source-use and publication reviews are complete. GET \/?rest_route=\/diningwatch\/v1\/coverage GET \/?rest_route=\/diningwatch\/v1\/sample The dashboard uses authenticated WordPress REST requests with a session cookie and X-WP-Nonce. Restaurant profiles, licenses, timelines, saved leads and saved searches are scoped to the signed-in account. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"footnotes":""},"class_list":["post-25","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/pages\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":2,"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/pages\/25\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/pages\/25\/revisions\/282"}],"wp:attachment":[{"href":"https:\/\/diningwatch.com\/wp-json\/wp\/v2\/media?parent=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}