PageSourceSearch

https://astrologyapi.com/_next/static/chunks/pages/developers/v1/chat-api/western-chat-3625492c33757ce7.js

js astrologyapi.com collected 2026-09-25 22:14:39 UTC 5,922 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26750],{8447:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/developers/v1/chat-api/western-chat",function(){return r(86962)}])},86962:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return u}});var s=r(85893),a=r(9008),n=r.n(a),o=r(67294),l=r(10774),i=r(8802),c=r(37601),d=r(92910),x=r(71295),p=r(79711);let m=x.R,CodeBlock=e=>{let{code:t}=e,[r,a]=(0,o.useState)(!1);return(0,s.jsxs)("div",{className:"relative rounded-lg overflow-hidden my-4",style:{background:"#0d0f14",border:"1px solid #1e242c"},children:[(0,s.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),2e3)},className:"absolute top-2.5 right-2.5 px-2 py-1 rounded-md text-[11px] font-semibold uppercase tracking-wider transition-colors",style:{background:"#161b22",border:"1px solid #232a33",color:r?"#4ade80":"#94a3b8"},title:"Copy code",children:r?"Copied":"Copy"}),(0,s.jsx)("pre",{className:"p-4 text-[13px] leading-relaxed",style:{fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace",color:"#e2e8f0",margin:0,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:(0,s.jsx)("code",{children:t})})]})},buildSampleBody=e=>Object.fromEntries(Object.entries(e||{}).map(e=>{let[t,r]=e;return[t,null==r?void 0:r.value]})),ParamsTable=e=>{let{request:t}=e;return(0,s.jsx)("div",{className:"overflow-x-auto my-4",children:(0,s.jsxs)("table",{className:"w-full text-left text-sm border-collapse",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-border-color",children:[(0,s.jsx)("th",{className:"py-2 pr-4 font-semibold text-primary-text",children:"Parameter"}),(0,s.jsx)("th",{className:"py-2 pr-4 font-semibold text-primary-text",children:"Type"}),(0,s.jsx)("th",{className:"py-2 font-semibold text-primary-text",children:"Description"})]})}),(0,s.jsx)("tbody",{children:Object.entries(t||{}).map(e=>{let[t,r]=e;return(0,s.jsxs)("tr",{className:"border-b border-border-color align-top",children:[(0,s.jsxs)("td",{className:"py-2 pr-4 whitespace-nowrap",children:[(0,s.jsx)("span",{className:"font-mono text-accent-primary bg-accent-surface rounded px-1.5 py-0.5 text-[13px]",children:t}),(null==r?void 0:r.required)&&(0,s.jsx)("span",{className:"ml-2 text-[11px] font-medium uppercase tracking-wide text-tertiary-text",children:"required"})]}),(0,s.jsx)("td",{className:"py-2 pr-4 whitespace-nowrap text-secondary-text font-mono text-[13px]",children:null==r?void 0:r.type}),(0,s.jsx)("td",{className:"py-2 text-secondary-text",children:null==r?void 0:r.description})]},t)})})]})})},KundliChatDocsPage=e=>{let{navSections:t}=e,r=(0,o.useMemo)(()=>d.AO.map(e=>{let{id:t,label:r,icon:s,pageLink:a,hidden:n}=e;return{id:t,label:r,icon:s,href:a,hidden:n}}),[]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n(),{children:[(0,s.jsx)("title",{children:"Personalized Astro Chat Documentation | AstrologyAPI Developers"}),(0,s.jsx)("meta",{name:"description",content:"Integrate our expert-trained personalized kundli chat engine into your application."})]}),(0,s.jsx)(i.Z,{items:r,activeItem:"astro-chat"}),(0,s.jsxs)(c.Z,{navSections:t,activeSectionKey:null,currentSlug:null,children:[(0,s.jsx)("div",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-tertiary-text mb-3",children:"Astro Chat API"}),(0,s.jsx)("h1",{className:"text-[32px] md:text-[36px] font-semibold tracking-tight text-primary-text mb-4",children:m.api_name}),(0,s.jsx)("div",{className:"text-[15px] leading-relaxed text-secondary-text mb-6",dangerouslySetInnerHTML:{__html:m.api_description}}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-2",children:[(0,s.jsx)("span",{className:"inline-flex items-center rounded-md bg-accent-surface text-accent-primary font-mono text-[13px] font-semibold px-2.5 py-1",children:m.api_method}),(0,s.jsxs)("code",{className:"font-mono text-[13px] text-secondary-text break-all",children:[m.api_end_point,"/",m.api_url]})]}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-primary-text mt-14 pt-8 border-t border-border-color mb-4 scroll-mt-32",children:"Personalized Astro Chat Overview"}),(0,s.jsxs)("p",{className:"text-[15px] leading-relaxed text-secondary-text mb-4",children:["Send a ",(0,s.jsx)("code",{className:"font-mono text-accent-primary",children:m.api_method})," ","request to"," ",(0,s.jsxs)("code",{className:"font-mono text-accent-primary break-all",children:[m.a
1pi_end_point,"/",m.api_url]}),". Authenticate with your API access token. The request body accepts the following parameters:"]}),(0,s.jsx)(ParamsTable,{request:m.api_request}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-primary-text mt-14 pt-8 border-t border-border-color mb-4 scroll-mt-32",children:"API Details"}),(0,s.jsx)("h3",{className:"text-base font-semibold text-primary-text mt-8 mb-2 scroll-mt-32",children:"Request"}),(0,s.jsx)("p",{className:"text-[15px] leading-relaxed text-secondary-text mb-2",children:"Example request body:"}),(0,s.jsx)(CodeBlock,{code:JSON.stringify(buildSampleBody(m.api_request),null,2)}),(0,s.jsx)("h3",{className:"text-base font-semibold text-primary-text mt-8 mb-2 scroll-mt-32",children:"Code samples"}),(0,s.jsx)(p.nZ,{endpoint:m.api_end_point,path:m.api_url,requestBody:buildSampleBody(m.api_request),useAccessToken:!0}),(0,s.jsx)("h3",{className:"text-base font-semibold text-primary-text mt-8 mb-2 scroll-mt-32",children:"Response"}),(0,s.jsx)("p",{className:"text-[15px] leading-relaxed text-secondary-text mb-2",children:"Example response:"}),(0,s.jsx)(CodeBlock,{code:JSON.stringify(m.api_response,null,2)})]})]})};KundliChatDocsPage.getLayout=e=>(0,s.jsx)(l.Z,{buttonColor:"indigo",hideSearchBar:!1,hideContactSalesButton:!0,contentPaddingTop:"",children:e});var u=!0;t.default=KundliChatDocsPage}},function(e){e.O(0,[3660,44314,49774,92888,40179],function(){return e(e.s=8447)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.