{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gtm-api/json-schema/gtm-api-search-data-requests-request-schema.json",
  "title": "SearchDataRequestsRequest",
  "description": "Request body of `search_data_requests`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-api-data-requests-api-openapi.yml#/components/schemas/SearchDataRequestsRequest",
  "type": "object",
  "properties": {
    "filter": {
      "type": "object",
      "properties": {
        "sid": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "kind": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string",
              "enum": [
                "enrich",
                "scrape"
              ]
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "enrich",
                  "scrape"
                ]
              }
            }
          },
          "additionalProperties": false
        },
        "method": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string",
              "enum": [
                "person_lite_profile",
                "person_basic_profile",
                "person_full_profile",
                "person_experience",
                "person_skills",
                "person_education",
                "person_posts",
                "person_featured",
                "person_contact_info",
                "person_languages",
                "person_certifications",
                "person_recommendations",
                "person_comment_activity",
                "person_reaction_activity",
                "person_interests",
                "person_services",
                "company_profile",
                "company_lite_profile",
                "company_public_identifier",
                "company_posts",
                "post_details",
                "get_activity_urn_by_url",
                "search_people_by_url",
                "search_people_by_params",
                "search_sales_nav_people_by_url",
                "search_sales_nav_people_by_params",
                "search_service_providers",
                "search_service_providers_by_url",
                "similar_profiles",
                "search_jobs",
                "search_jobs_by_url",
                "search_events",
                "search_events_by_url",
                "search_groups",
                "search_groups_by_url",
                "search_courses",
                "search_courses_by_url",
                "search_products",
                "search_products_by_url",
                "search_schools",
                "search_schools_by_url",
                "search_companies_by_url",
                "search_companies_by_params",
                "search_sales_nav_companies_by_url",
                "search_sales_nav_companies_by_params",
                "similar_companies",
                "company_employees",
                "company_decision_makers",
                "search_posts",
                "search_posts_by_url",
                "get_post_comments",
                "get_post_reactors",
                "get_post_resharers",
                "search_param_id_lookup",
                "search_sales_nav_param_id_lookup",
                "search_recruiter_people_by_params",
                "search_recruiter_people_by_url",
                "search_recruiter_param_id_lookup"
              ]
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "person_lite_profile",
                  "person_basic_profile",
                  "person_full_profile",
                  "person_experience",
                  "person_skills",
                  "person_education",
                  "person_posts",
                  "person_featured",
                  "person_contact_info",
                  "person_languages",
                  "person_certifications",
                  "person_recommendations",
                  "person_comment_activity",
                  "person_reaction_activity",
                  "person_interests",
                  "person_services",
                  "company_profile",
                  "company_lite_profile",
                  "company_public_identifier",
                  "company_posts",
                  "post_details",
                  "get_activity_urn_by_url",
                  "search_people_by_url",
                  "search_people_by_params",
                  "search_sales_nav_people_by_url",
                  "search_sales_nav_people_by_params",
                  "search_service_providers",
                  "search_service_providers_by_url",
                  "similar_profiles",
                  "search_jobs",
                  "search_jobs_by_url",
                  "search_events",
                  "search_events_by_url",
                  "search_groups",
                  "search_groups_by_url",
                  "search_courses",
                  "search_courses_by_url",
                  "search_products",
                  "search_products_by_url",
                  "search_schools",
                  "search_schools_by_url",
                  "search_companies_by_url",
                  "search_companies_by_params",
                  "search_sales_nav_companies_by_url",
                  "search_sales_nav_companies_by_params",
                  "similar_companies",
                  "company_employees",
                  "company_decision_makers",
                  "search_posts",
                  "search_posts_by_url",
                  "get_post_comments",
                  "get_post_reactors",
                  "get_post_resharers",
                  "search_param_id_lookup",
                  "search_sales_nav_param_id_lookup",
                  "search_recruiter_people_by_params",
                  "search_recruiter_people_by_url",
                  "search_recruiter_param_id_lookup"
                ]
              }
            },
            "nin": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "person_lite_profile",
                  "person_basic_profile",
                  "person_full_profile",
                  "person_experience",
                  "person_skills",
                  "person_education",
                  "person_posts",
                  "person_featured",
                  "person_contact_info",
                  "person_languages",
                  "person_certifications",
                  "person_recommendations",
                  "person_comment_activity",
                  "person_reaction_activity",
                  "person_interests",
                  "person_services",
                  "company_profile",
                  "company_lite_profile",
                  "company_public_identifier",
                  "company_posts",
                  "post_details",
                  "get_activity_urn_by_url",
                  "search_people_by_url",
                  "search_people_by_params",
                  "search_sales_nav_people_by_url",
                  "search_sales_nav_people_by_params",
                  "search_service_providers",
                  "search_service_providers_by_url",
                  "similar_profiles",
                  "search_jobs",
                  "search_jobs_by_url",
                  "search_events",
                  "search_events_by_url",
                  "search_groups",
                  "search_groups_by_url",
                  "search_courses",
                  "search_courses_by_url",
                  "search_products",
                  "search_products_by_url",
                  "search_schools",
                  "search_schools_by_url",
                  "search_companies_by_url",
                  "search_companies_by_params",
                  "search_sales_nav_companies_by_url",
                  "search_sales_nav_companies_by_params",
                  "similar_companies",
                  "company_employees",
                  "company_decision_makers",
                  "search_posts",
                  "search_posts_by_url",
                  "get_post_comments",
                  "get_post_reactors",
                  "get_post_resharers",
                  "search_param_id_lookup",
                  "search_sales_nav_param_id_lookup",
                  "search_recruiter_people_by_params",
                  "search_recruiter_people_by_url",
                  "search_recruiter_param_id_lookup"
                ]
              }
            }
          },
          "additionalProperties": false
        },
        "status": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string",
              "enum": [
                "pending",
                "running",
                "completed",
                "rejected",
                "failed"
              ]
            },
            "ne": {
              "type": "string",
              "enum": [
                "pending",
                "running",
                "completed",
                "rejected",
                "failed"
              ]
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "completed",
                  "rejected",
                  "failed"
                ]
              }
            },
            "nin": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "completed",
                  "rejected",
                  "failed"
                ]
              }
            }
          },
          "additionalProperties": false
        },
        "executed_on": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string",
              "enum": [
                "own_account",
                "infra_pool"
              ]
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "own_account",
                  "infra_pool"
                ]
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "is_null:true ⇒ never dispatched (rejected / cache-served). `own_account` is what every dispatched row records. `infra_pool` is HISTORICAL: no run since 2026-08-16 produces it, so filtering on it matches only rows stored before that date."
        },
        "served_from_cache": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "ln_member_id": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "Canonical person axis; ln_id/sn_id inputs normalize to this."
        },
        "created_at": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "updated_at": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "completed_at": {
          "type": "object",
          "properties": {
            "gte": {
              "type": "string"
            },
            "lte": {
              "type": "string"
            },
            "gt": {
              "type": "string"
            },
            "lt": {
              "type": "string"
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "is_null:true = still running or never ran."
        },
        "linkedin_account_sid": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "The account that executed (or was asked to execute) the request."
        },
        "input_kind": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string",
              "enum": [
                "ln_id",
                "sn_id",
                "nickname",
                "ln_member_id",
                "url",
                "activity_urn",
                "params",
                "domain"
              ]
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "ln_id",
                  "sn_id",
                  "nickname",
                  "ln_member_id",
                  "url",
                  "activity_urn",
                  "params",
                  "domain"
                ]
              }
            }
          },
          "additionalProperties": false
        },
        "input_value": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false,
          "description": "The raw input as it was given, exact match: \"did we already fetch this url / this slug\"."
        },
        "ln_id": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "A profile URN; matches the PERSON (normalized to the member id), so a row stored under the Sales Navigator id is found too."
        },
        "sn_id": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "A Sales Navigator id; matches the person, like ln_id."
        },
        "nickname": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "cached_from_sid": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "The row a cache-served request was answered from; eq = every request one fetch has served."
        },
        "error_code": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "ne": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nin": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_null": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "Why a request failed (not_found, linkedin_429, browser_not_alive, ...); is_null:false = everything that failed."
        },
        "idempotency_key": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "description": "Exact-match retry-replay lookup."
        }
      }
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "linkedin_account",
          "cached_from"
        ]
      },
      "description": "Relations to eager-load (see entity Includes)."
    },
    "sort": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "enum": [
            "created_at",
            "completed_at"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "description": "Default desc."
        }
      },
      "required": [
        "field"
      ]
    },
    "page_size": {
      "type": "integer",
      "minimum": 0,
      "maximum": 200,
      "description": "0..200, default 50. page_size=0 = count-only, page_size=1 = getFirst."
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque forward cursor from a previous response pagination.next_cursor."
    }
  }
}