Retrofit · JSON Structure

Retrofit Library Structure

JSON structure documenting the modules, converters, adapters, and key components of the Retrofit HTTP client library.

Type: Properties: 0
AndroidHTTP ClientJavaKotlinLibraryMobileOpen-SourceSDKSquare

Retrofit Library Structure is a JSON Structure definition published by Retrofit.

Meta-schema:

JSON Structure

retrofit-library-structure.json Raw ↑
{
  "title": "Retrofit Library Structure",
  "description": "JSON structure documenting the modules, converters, adapters, and key components of the Retrofit HTTP client library.",
  "version": "3.0.0",
  "modules": {
    "retrofit": {
      "description": "Core Retrofit library",
      "mavenCoordinates": "com.squareup.retrofit2:retrofit:3.0.0",
      "provides": ["Retrofit.Builder", "Call<T>", "Callback<T>", "Response<T>", "HttpException"]
    },
    "retrofit-converters": {
      "gson": { "artifactId": "converter-gson", "provides": ["GsonConverterFactory"] },
      "moshi": { "artifactId": "converter-moshi", "provides": ["MoshiConverterFactory"] },
      "jackson": { "artifactId": "converter-jackson", "provides": ["JacksonConverterFactory"] },
      "kotlinx-serialization": { "artifactId": "converter-kotlinx-serialization", "provides": ["KotlinSerializationConverterFactory"] },
      "jaxb": { "artifactId": "converter-jaxb", "provides": ["JaxbConverterFactory"] },
      "wire": { "artifactId": "converter-wire", "provides": ["WireConverterFactory"] },
      "scalars": { "artifactId": "converter-scalars", "provides": ["ScalarsConverterFactory"] }
    },
    "retrofit-adapters": {
      "rxjava": { "artifactId": "adapter-rxjava", "provides": ["RxJavaCallAdapterFactory"] },
      "rxjava2": { "artifactId": "adapter-rxjava2", "provides": ["RxJava2CallAdapterFactory"] },
      "rxjava3": { "artifactId": "adapter-rxjava3", "provides": ["RxJava3CallAdapterFactory"] },
      "java8": { "artifactId": "adapter-java8", "provides": ["Java8CallAdapterFactory"] },
      "guava": { "artifactId": "adapter-guava", "provides": ["GuavaCallAdapterFactory"] },
      "scala": { "artifactId": "adapter-scala", "provides": ["ScalaCallAdapterFactory"] }
    },
    "retrofit-mock": {
      "description": "Testing mock implementation",
      "provides": ["MockRetrofit", "BehaviorDelegate<T>"]
    }
  },
  "annotations": {
    "httpMethods": ["@GET", "@POST", "@PUT", "@DELETE", "@PATCH", "@HEAD", "@OPTIONS", "@HTTP"],
    "parameters": ["@Path", "@Query", "@QueryMap", "@Header", "@HeaderMap", "@Body", "@Field", "@FieldMap", "@Part", "@PartMap"],
    "declarative": ["@FormUrlEncoded", "@Multipart", "@Streaming", "@Headers", "@Url", "@Tag"]
  },
  "dependencies": {
    "required": ["okhttp3:okhttp"],
    "optional": ["okhttp3:logging-interceptor"]
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/retrofit-library-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.