Skip to content

About

Official OpenAPI spec and guide for the Sell to State REST API: government tenders, contract awards, buyers and suppliers in 70+ countries. With llms.txt.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Sell to State API reference: government tenders and contract awards from official sources in 70+ countries

Sell to State API reference

OpenAPI spec and guide for the Sell to State REST API: government tenders, contract awards, buyers and suppliers from 70+ countries.

Website · Docs · API keys · Pricing · Support

license: MIT OpenAPI: 3.1

Ask AI about this repo

Ask Claude about this repo Ask ChatGPT about this repo Ask Gemini about this repo Ask Grok about this repo Ask Perplexity about this repo Ask Copilot about this repo


Sell to State collects government tenders and contract awards from official procurement portals in 70+ countries. It puts them in one schema: buyer, supplier, amount, dates and sector. Every record links to the official notice. Countries and data depth.

Files

File What it is
openapi.json OpenAPI spec of the REST API: 29 operations
api-guide.md Guide: authentication, search, errors, limits, agent signup
llms.txt, llms-full.txt Short and full text of the docs for LLMs and agents

The live reference is docs.selltostate.com. The files in this repo are a copy of the docs source. To report an error in the spec, open an issue.

Use the spec

  • Import openapi.json into Postman, Insomnia or Bruno.
  • Give llms-full.txt to your agent as context.
  • Generate a client with any OpenAPI generator, or use an official client from the table below.
curl -s https://app.selltostate.com/api/v1/whoami -H "x-api-key: $STS_API_KEY"

Operations

Method HTTP What it does
searchAwards GET /api/v1/awards Search awarded government tenders
exportAwardsCsv GET /api/v1/awards.csv Export awarded tenders as CSV
getPrice GET /api/v1/price Live subscription price
payAutonomously POST /api/v1/pay Activate a subscription autonomously (agent payment)
registerClient POST /api/oidc/register Dynamic Client Registration (RFC 7591)
mcp POST /api/mcp MCP-over-HTTP (JSON-RPC 2.0)
protectedResourceMetadata GET /.well-known/oauth-protected-resource Protected Resource Metadata (RFC 9728)
authorizationServerMetadata GET /.well-known/oauth-authorization-server Authorization Server Metadata (RFC 8414)
whoami GET /api/v1/whoami Self-introspection: auth, entitlement & scopes
search GET /api/v1/search Faceted full-text search (one collection)
listBuyers GET /api/v1/buyers Top buyers by spend
getBuyer GET /api/v1/buyers/{slug} Buyer (agency) detail
listSuppliers GET /api/v1/suppliers Top suppliers by awarded total
getSupplier GET /api/v1/suppliers/{slug} Supplier detail
listSectors GET /api/v1/sectors Sector taxonomy
getSector GET /api/v1/sectors/{slug} Sector detail
getTender GET /api/v1/tenders/{id} Single award (tender) detail
getLists GET /api/v1/lists List saved award lists
createList POST /api/v1/lists Create a saved list
getList GET /api/v1/lists/{id} Get a saved list + items
renameList PATCH /api/v1/lists/{id} Rename a saved list
deleteList DELETE /api/v1/lists/{id} Delete a saved list
addToList POST /api/v1/lists/{id}/items Add a tender to a list
removeFromList DELETE /api/v1/lists/{id}/items Remove a tender from a list
getSavedSearches GET /api/v1/saved-searches List saved searches
saveSearch POST /api/v1/saved-searches Save a search
getSavedSearch GET /api/v1/saved-searches/{id} Get a saved search
renameSavedSearch PATCH /api/v1/saved-searches/{id} Rename a saved search
deleteSavedSearch DELETE /api/v1/saved-searches/{id} Delete a saved search

Related

Repo What
selltostate-skills Agents: Agent skills and MCP plugin: Claude Code, Codex, Cursor, Gemini CLI
selltostate-mcp Agents: Local (stdio) MCP server with an API key
selltostate-cli API: Command-line client
selltostate-ts API: TypeScript and JavaScript client (npm selltostate)
selltostate-py API: Python client
selltostate-java API: Java client
selltostate-kotlin API: Kotlin client
selltostate-rust API: Rust client
selltostate-ror API: Ruby client
selltostate-node Examples: Node.js example
selltostate-next Examples: Next.js example (server route)
selltostate-js Examples: Browser example (URL shape only)
n8n-nodes-selltostate Automation: n8n community nodes and trigger
zapier-selltostate Automation: Zapier integration
how-governments-buy-ai Research: Notebook: rerun the study "How governments buy AI"

Support

License

MIT. The data is subject to the Sell to State terms and to the terms of each official source.

About

Official OpenAPI spec and guide for the Sell to State REST API: government tenders, contract awards, buyers and suppliers in 70+ countries. With llms.txt.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages